/* =========================================
   SECCIÓN CENTENARIO (ESTILO PREMIUM)
   ========================================= */
.centenario-section {
    /* Fondo degradado suave en tonos 'papel histórico' */
    background: linear-gradient(135deg, #f9f7f2 0%, #ede8dd 100%);
    padding: 5rem 0;
    border-top: 1px solid #e0d8c0;
    border-bottom: 1px solid #e0d8c0;
    margin-bottom: 4rem; /* Separación con la siguiente sección */
}

.centenario-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr; /* 3 Columnas: Logo | Texto | Mapa */
    gap: 3rem;
    align-items: center;
}

/* --- COLUMNA 1: LOGO --- */
.centenario-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-centenario {
    /* CONTROL DE TAMAÑO: Esto evita que la imagen gigante rompa la web */
    width: 100%;
    max-width: 280px; /* Tamaño máximo visual */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); /* Sombra suave */
    transition: transform 0.3s ease;
}

.logo-centenario:hover {
    transform: scale(1.05); /* Efecto zoom al pasar ratón */
}

/* --- COLUMNA 2: TEXTO --- */
.centenario-content .badge-event {
    background-color: var(--ea-red, #AD2E1C);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(173, 46, 28, 0.3);
}

.centenario-content h2 {
    font-size: 2.5rem;
    color: var(--ea-blue, #183860);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.centenario-content p {
    color: #4a4a4a;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.btn-centenario {
    margin-top: 1rem;
    background-color: transparent;
    color: var(--ea-blue, #183860);
    border: 2px solid var(--ea-blue, #183860);
}

.btn-centenario:hover {
    background-color: var(--ea-blue, #183860);
    color: white;
}

/* --- COLUMNA 3: MAPA --- */
.centenario-map-col figure {
    margin: 0;
}

.mapa-plus-ultra {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg); /* Ligera inclinación para darle dinamismo */
    transition: transform 0.3s ease;
}

.centenario-map-col:hover .mapa-plus-ultra {
    transform: rotate(0deg) scale(1.02);
}

.centenario-map-col figcaption {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    margin-top: 0.8rem;
    font-style: italic;
    font-family: serif; /* Toque clásico para el pie de foto */
}

/* --- RESPONSIVE (Móvil y Tablet) --- */
@media (max-width: 1024px) {
    .centenario-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        text-align: center;
        gap: 2.5rem;
    }

    /* En móvil, cambiamos el orden para que el logo salga primero, luego texto, luego mapa */
    .centenario-logo-col { order: 1; }
    .centenario-content  { order: 2; }
    .centenario-map-col  { order: 3; }

    .logo-centenario {
        max-width: 200px; /* Más pequeño en móvil */
    }

    .mapa-plus-ultra {
        transform: rotate(0deg); /* Sin rotación en móvil para ganar espacio */
        max-width: 100%;
    }
}


/* =========================================
   GALERÍA GIRA CENTENARIO (ESTILO PÓSTER)
   ========================================= */

.tour-gallery-grid {
    margin-top: 5rem; /* Separación con el texto de arriba */
    display: grid;
    /* 3 Columnas iguales con un mínimo de seguridad para móvil */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; /* Espacio entre las fotos */
}

.tour-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* SOMBRA ELEGANTE */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    background-color: #000; /* Fondo negro de seguridad */
}

/* EFECTO HOVER: La tarjeta flota */
.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* CONTENEDOR DE IMAGEN (Ratio Vertical 2:3) */
.tour-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; 
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el hueco sin deformar */
    transition: transform 0.5s ease;
}

/* EFECTO HOVER: Zoom suave en la foto */
.tour-card:hover .tour-image img {
    transform: scale(1.05);
}

/* DEGRADADO OSCURO (Para que se lea el texto) */
.tour-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* INFORMACIÓN (TEXTO) */
.tour-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2; /* Encima del degradado */
    color: white;
}

.tour-country {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ea-yellow, #FABD00);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.tour-city {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tour-date {
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 0.5rem;
    margin-top: 0.2rem;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tour-gallery-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        max-width: 400px; /* Limitamos el ancho para que no sean pósters gigantes */
        margin-left: auto; margin-right: auto;
    }
}