/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #838642; /* Mismo fondo verde oliva */
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
}

/* --- MENÚ SUPERIOR CENTRADO --- */
.navbar-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* --- SECCIÓN DE TARJETAS (GRID/FLEXBOX) --- */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Hace que todas las tarjetas tengan la misma altura */
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* --- ESTILO DE CADA TARJETA --- */
.tradition-card {
    background-color: #dbe7b5; /* Tono verde claro/pistache de las tarjetas */
    border-radius: 40px; /* Bordes muy redondeados característicos del diseño */
    flex: 1;
    max-width: 360px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contenedor de la imagen para aplicar el recorte redondeado */
.card-image-wrapper {
    width: 100%;
    height: 200px; /* Altura fija para que se vean uniformes */
    overflow: hidden;
    border-radius: 30px; /* Bordes redondeados de la foto */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
}
/* --- ESTILO DE CADA TARJETA (ACTUALIZADO) --- */
.tradition-card {
    background-color: #dbe7b5; /* Tono verde claro/pistache */
    border-radius: 40px; 
    flex: 1;
    max-width: 360px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    /* EFECTO SUAVE: Transición para que los cambios no sean bruscos */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s ease, 
                filter 0.4s ease;
    
    cursor: pointer; /* Cambia el cursor a una mano para indicar que es interactivo */
}

/* --- EFECTO AL PASAR EL MOUSE (HOVER) --- */
.tradition-card:hover {
    /* 1. EXPANSIÓN: Escala la tarjeta un 5% (1.05) */
    transform: scale(1.05);
    
    /* 2. BRILLO INTERNO/EXTERNO: Cambiamos la sombra por una más amplia, clara y difuminada */
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4), 
                0 5px 15px rgba(219, 231, 181, 0.6);
    
    /* 3. EFECTO DE LUZ: Resalta sutilmente los colores de la tarjeta aumentando el brillo del elemento */
    filter: brightness(1.1); 
}

/* --- TEXTOS DENTRO DE LA TARJETA --- */
.card-content {
    color: #838642; /* Texto en el verde oscuro del fondo */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
    text-align: justify; /* Alineación justificada como se ve en la imagen original */
    text-justify: inter-word;
}

/* --- DISEÑO ADAPTABLE (RESPONSIVO) --- */
@media (max-width: 968px) {
    body {
        padding: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .cards-container {
        flex-direction: column; /* Se apilan verticalmente en pantallas chicas */
        align-items: center;
        gap: 2rem;
    }

    .tradition-card {
        max-width: 450px;
        width: 100%;
    }
}