/* Estilos generales de la sección */
.section {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.section-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Contenedor de las filas */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* Estilo de la Tarjeta */
.card {
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    width: 340px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
}

/* AJUSTE PARA FOTOS VERTICALES */
.card-image img {
    width: 100%;
    height: 450px;
    /* Altura aumentada para mostrar fotos verticales */
    object-fit: cover;
    display: block;
}

.card-content {
    flex: 1;
    padding: 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.3em;
    margin: 0 0 8px 0;
    color: #00c4ff;
    font-weight: bold;
}

.card-content p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
}

/* Acción de la tarjeta */
.card-action {
    padding: 15px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    text-align: center;
}

.card-action a {
    color: #00c4ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.card-action a:hover {
    text-decoration: underline;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cards-row {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 360px;
    }

    .card-image img {
        height: 400px;
        /* Un poco más bajo en móvil para que no ocupe toda la pantalla */
    }
}