/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Sección Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1516382799247-87df95d790b7?q=80&w=2070') no-repeat center center/cover;
    color: white;
}

/* Capa oscura para que el texto resalte */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 53, 0.75); /* Azul muy oscuro semitransparente */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: #c5a059; /* Un tono dorado sutil para elegancia */
    margin: 20px auto;
}

.hero-tagline {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-details {
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.separator {
    margin: 0 15px;
    color: #c5a059;
}

/* Botón */
.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: white;
    color: #0f2035;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-tagline { font-size: 1.1rem; }
}


/* inicio sección 2 */

/* Sección Sobre el Homenaje */
.about {
    padding: 100px 20px;
    background-color: #f9f9f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    display: block;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #0f2035;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}

.quote-box {
    border-left: 4px solid #c5a059;
    padding-left: 20px;
    margin-top: 30px;
    font-style: italic;
    color: #0f2035;
    font-size: 1.2rem;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 20px 20px 0px 0px rgba(197, 160, 89, 0.2); /* Detalle decorativo en dorado */
}

/* Ajuste para móviles */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1; /* La imagen sube en móviles */
    }
    
    .section-title {
        font-size: 2rem;
    }
}


/* seccion 3 */

/* Sección Programa */
.schedule {
    padding: 100px 20px;
    background-color: #ffffff;
}

.schedule-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* El círculo de la línea de tiempo */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -57px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #c5a059;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c5a059;
}

.timeline-time {
    font-weight: bold;
    color: #c5a059;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0f2035;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    font-size: 1rem;
}

/* Efecto hover sutil */
.timeline-item:hover .timeline-content h3 {
    color: #c5a059;
    transition: color 0.3s ease;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .timeline {
        padding-left: 30px;
    }
    .timeline-item::before {
        left: -37px;
    }
}


/* seccion 4 *7

/* Sección Galería Voces en Memoria */
.gallery {
    padding: 100px 20px;
    background-color: #0f2035; /* Fondo oscuro para que resalten las fotos */
    color: white;
    overflow: hidden; /* Importante para que las fotos que salen no creen scroll */
}

.gallery-header {
    text-align: center;
    margin-bottom: 80px;
}

.gallery-header .section-title {
    color: white;
}

.gallery-header p {
    color: rgba(255,255,255,0.7);
}

/* Contenedor principal del abanico */
.fan-gallery-container {
    position: relative;
    width: 100%;
    height: 450px; /* Altura de la galería */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fan-gallery {
    position: relative;
    width: 300px; /* Ancho de la foto "central" visible */
    height: 400px;
}

/* Estilo base de cada tarjeta/foto */
.gallery-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Transición suave */
    opacity: 0;
    transform: translateX(100px) scale(0.8) rotate(10deg); /* Estado inicial (ocultas a la derecha) */
    z-index: 1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el espacio sin deformarse */
    display: block;
}

/* Pie de foto */
.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

/* --- ESTADOS DE LA ANIMACIÓN (JavaScript cambiará estas clases) --- */

/* 1. Tarjeta Activa (La que se ve en el centro) */
.gallery-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    z-index: 10;
}

/* 2. Tarjeta Siguiente (Asomándose a la derecha) */
.gallery-card.next {
    opacity: 0.8;
    transform: translateX(120px) scale(0.9) rotate(5deg);
    z-index: 5;
}

/* 3. Tarjeta Siguiente de la Siguiente (Aún más a la derecha) */
.gallery-card.next-next {
    opacity: 0.4;
    transform: translateX(200px) scale(0.8) rotate(10deg);
    z-index: 2;
}

/* 4. Tarjeta Saliendo (Hacia la izquierda) */
.gallery-card.prev {
    opacity: 0;
    transform: translateX(-150px) scale(0.8) rotate(-10deg);
    z-index: 1;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .fan-gallery-container { height: 350px; }
    .fan-gallery { width: 220px; height: 300px; }
    
    .gallery-card.next { transform: translateX(60px) scale(0.9) rotate(5deg); }
    .gallery-card.next-next { display: none; } /* Ocultamos la tercera en móvil */
}

/* seccion 5 */

/* Sección Legado Académico */
.legacy {
    padding: 100px 20px;
    background-color: #f4f4f4;
}

.legacy-header {
    text-align: center;
    margin-bottom: 50px;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.legacy-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legacy-card.highlight {
    border-top: 4px solid #c5a059;
}

.legacy-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #0f2035;
    margin-bottom: 20px;
}

.legacy-card ul {
    list-style: none;
}

.legacy-card ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.legacy-card ul li::before {
    content: '•';
    color: #c5a059;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: -5px;
}

.legacy-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-text {
    display: inline-block;
    margin-top: 20px;
    color: #c5a059;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text:hover {
    color: #0f2035;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #0f2035;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .legacy-grid {
        grid-template-columns: 1fr;
    }
}