:root {
    --primary-blue: #0583F2;
    --dark-blue: #000069;
    --accent-yellow: #F19F07;
    --text-dark: #333333;
    --text-light: #FDFFFC;
    --bg-light: #FDFFFC;
    --font-main: 'Manrope', sans-serif;
    --font-headings: 'Neuton', serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6, 
.hero-title, .section-title, .page-title {
    font-family: var(--font-headings);
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   HEADER & NAVEGACIÓN (Con Logo y Estilos)
   ========================================= */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 80px; /* Altura ideal para que encaje perfecto en la barra */
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li {
    position: relative;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5); /* Opacidad al 50% para el menú inactivo */
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Efecto hover: pasa a blanco completo al pasar el mouse */
nav ul li:hover {
    color: rgba(255, 255, 255, 1);
}

/* Botón activo (INICIO): Blanco fijo */
nav ul li.nav-active {
    color: #FFFFFF;
    opacity: 1;
    font-weight: 600;
}

/* Excepción para que el botón de donar no pierda su color original */
nav ul li:has(.btn-donate), 
nav ul li .btn-donate {
    opacity: 1 !important;
    color: var(--dark-blue) !important;
}
.btn-donate {
    background-color: var(--accent-yellow);
    color: var(--dark-blue) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.2s ease;
    display: inline-block;
    opacity: 1 !important;
}

.btn-donate:hover {
    transform: scale(1.05);
}

/* =========================================
   MENÚ DESPLEGABLE CORREGIDO
   ========================================= */
.has-dropdown {
    position: relative;
}

/* Espacio invisible para que el cursor no pierda el enlace al viajar al menú */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; 
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 6px;
    z-index: 1100;
}

/* Muestra el menú al hacer hover sobre el elemento padre */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid #eee;
    opacity: 1 !important;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* Estilo para los enlaces internos del dropdown para que abarquen toda el área clickeable */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: var(--text-dark) !important;
}

/* =========================================
   HERO SECTION (CARRUSEL)
   ========================================= */
.hero {
    margin-top: 80px;
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: var(--dark-blue);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición suave entre imágenes */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    margin-bottom: 80px; /* Deja espacio para los botones */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s; /* Pequeño retardo para animar el texto */
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h2 {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
}

.hero-buttons {
    position: absolute;
    bottom: 25%;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    border: none;
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* Controles manuales (Flechas y Puntos) */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-hero { left: 40px; }
.next-hero { right: 40px; }

.hero-dots {
    position: absolute;
    bottom: 10%;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.h-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.h-dot.active {
    background-color: var(--accent-yellow);
}

/* =========================================
   ESTADÍSTICAS
   ========================================= */
.stats-section {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-text {
    flex: 1;
    font-size: 16px;
    padding-right: 50px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stats-numbers {
    flex: 2;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
}

.stat-item p {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* =========================================
   GUÍA (NIQUI)
   ========================================= */
.guide-section {
    padding: 80px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.guide-content {
    flex: 1;
    padding-right: 40px;
}

.guide-content h4 {
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.guide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.guide-content span {
    color: var(--primary-blue);
    font-style: italic;
}

.guide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.guide-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   MUSEO INTERACTIVO
   ========================================= */
.interactive-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.interactive-section h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}

.card {
    width: 300px;
    height: 200px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background-image: url('https://via.placeholder.com/300x200?text=Sala');
    background-size: cover;
    background-position: center; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.interactive-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   GALERÍA SONORA
   ========================================= */
.sound-gallery {
    padding: 80px 40px;
    background-color: var(--bg-light);
    text-align: center;
    position: relative;
}

.sound-gallery .subtitle {
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.sound-gallery h2 {
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.sound-gallery .description {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #555;
}

.sound-gallery .niqui-dialogue-container {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.sound-gallery .niqui-tooltip {
    border: 1px solid #eaeaea;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-nav {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-dark);
    transition: background 0.3s;
}

.carousel-nav:hover {
    background: #f1f1f1;
}

.gallery-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 800px;
    text-align: left;
}

.card-image-wrapper {
    flex: 1;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    background-image: url('https://via.placeholder.com/400x500?text=Imagen+Sala');
    background-size: cover;
    background-position: center;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

.card-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.card-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-text {
    color: #555;
    margin-bottom: 30px;
}

.podcast-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.podcast-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.podcast-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.podcast-icon {
    background-color: #e0f2e9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.podcast-details h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.podcast-details p {
    font-size: 13px;
    color: #777;
}

.play-btn {
    margin-left: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.w-full {
    width: 100%;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--accent-yellow);
}

.carousel-track {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch;
}


.gallery-card.sound-panel {
    grid-row: 1;
    grid-column: 1;
    display: flex !important; 
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease; 
    width: 100%;
    

    padding: 0 !important; 
    align-items: stretch !important;
    min-height: auto !important; 
}

.gallery-card.sound-panel.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.gallery-card.sound-panel .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; 
    height: 100%;
}

.gallery-card.sound-panel .podcast-box {
    margin-top: auto; 
}


/* =========================================
   ALIADOS & FOOTER
   ========================================= */
.partners-strip {
    background-color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 20px;
}

.main-footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 40px 20px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.brand-col {
    flex: 2;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon-small {
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.brand-col p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

.links-col, .contact-col {
    flex: 1;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #aaa;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.links-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-col p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 12px;
    color: #aaa;
}

/* =========================================
   CARRUSEL AUTOMÁTICO DE ALIADOS (LOGOS)
   ========================================= */
.partners-carousel-section {
    background-color: white;
    padding: 30px 0;
    border-top: 1px solid #eee;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
    align-items: center;
}

.partners-carousel-section:hover .partners-track {
    animation-play-state: paused;
}

.partner-slide {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-slide img {
    height: 75px; 
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-slide img:hover {
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   ANIMACIONES GLOBALES PARA TODOS LOS BOTONES
   ========================================= */
.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   ESTILOS PARA EL DIÁLOGO Y AVATAR DE NIQUI
   ========================================= */
.niqui-dialogue-container {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.niqui-avatar-wrapper {
    width: 65px;
    height: 65px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    overflow: hidden;
}

.niqui-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.niqui-tooltip {
    background-color: white;
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.niqui-tooltip h5 {
    color: #F5A623;
    margin-bottom: 5px;
    font-size: 13px;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-dark);
}

.page-hero {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 60px 20px;
}

.page-hero .hero-subtitle { 
    font-size: 14px; 
    letter-spacing: 2px; 
    color: var(--accent-yellow); 
    margin-bottom: 10px; 
}

.page-title { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.page-title em { 
    font-style: italic; 
    font-weight: normal; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.text-center { text-align: center; }
.section-subtitle { color: var(--primary-blue); letter-spacing: 1.5px; font-weight: 600; margin-bottom: 10px; }
.section-title { font-size: 2.5rem; color: var(--dark-blue); margin-bottom: 20px; }

/* Intro Museo */
.museum-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.responsive-img { width: 100%; border-radius: 12px; object-fit: cover; }

/* Línea de Tiempo Vertical (Museo) */
.timeline-v { position: relative; max-width: 800px; margin: 40px auto; }
.timeline-v::after { content: ''; position: absolute; width: 4px; background: var(--accent-yellow); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--dark-blue); border: 4px solid var(--accent-yellow);
    border-radius: 50%; top: 15px; right: -14px; z-index: 1;
}
.timeline-item.right::after { left: -14px; }
.timeline-content { padding: 20px; background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Estadísticas Banner */
.action-btn-container { margin-bottom: 60px; }

/* Línea de tiempo Horizontal (Colegio) */
.timeline-nav { display: flex; gap: 20px; border-bottom: 2px solid #ddd; margin-bottom: 30px; overflow-x: auto; }
.year-btn { background: none; border: none; font-size: 1.2rem; padding: 10px 20px; cursor: pointer; color: #999; font-weight: 600; }
.year-btn.active { color: var(--primary-blue); border-bottom: 4px solid var(--primary-blue); }
.timeline-panel { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.timeline-panel.active { display: grid; }
.year-large { font-size: 4rem; color: var(--primary-blue); margin: 0; line-height: 1; }

/* Archivo Histórico */
.bg-blue { background-color: var(--primary-blue); padding: 60px 0; }
.light-text { color: white !important; }
.archive-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.carousel-controls button { background: transparent; border: 1px solid white; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.archive-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; }
.archive-card { background: var(--dark-blue); min-width: 300px; border-radius: 12px; overflow: hidden; color: white; }
.card-img { position: relative; height: 180px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 15px; left: 15px; background: var(--accent-yellow); color: var(--dark-blue); padding: 5px 10px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.card-content { padding: 20px; }
.card-content h4 { color: var(--accent-yellow); margin-bottom: 10px; }

/* Alineación de Niqui a la derecha */
.page-niqui-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

/* Efectos para la línea de tiempo interactiva */
.moment-item .timeline-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.moment-item .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Modal solo de texto para la historia */
.text-only-modal {
    max-width: 800px !important;
    margin: 0 auto;
}

.niqui-dialogue-container-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Banner de estadísticas redondeado */
.stats-banner {
    background-color: var(--primary-blue);
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 50px 20px;
    margin: 40px auto 80px auto;
    max-width: 1000px;
    border-radius: 16px;
}

.stats-banner h2 { 
    font-size: 3rem; 
    color: var(--accent-yellow); 
    margin-bottom: 5px; 
}

.stats-banner p { 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase;
}
/* Forzar tamaño idéntico para todas las imágenes de la línea de tiempo */
.timeline-image img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Obliga a que todas las imágenes tengan la misma proporción */
    object-fit: cover; /* Recorta el sobrante sin deformar la imagen */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra elegante opcional */
    display: block;
}

/* =========================================
   SOLUCIÓN DEFINITIVA MENÚ MÓVIL (MODAL FLOTANTE)
   ========================================= */
@media (max-width: 768px) {
    .logo-container .header-logo-img {
        height: 45px !important;
        width: auto !important;
    }

    header {
        overflow: visible !important;
        position: fixed !important;
        padding: 0 10px !important;
    }
    
    nav {
        width: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
        padding-bottom: 5px;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px !important;
        padding-right: 15px !important;
        white-space: nowrap !important;
    }

    .has-dropdown {
        position: relative !important;
    }

    .has-dropdown .dropdown-menu {
        position: fixed !important;
        display: none !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
        width: 85% !important;
        max-width: 300px !important;
        padding: 20px 0 !important;
        z-index: 999999 !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .has-dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #eee !important;
        padding: 5px 0 !important;
    }

    .dropdown-menu li:last-child {
        border-bottom: none !important;
    }

    .dropdown-menu li a {
        color: #234B75 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        display: block !important;
    }

    main {
        margin-top: 80px !important;
    }
    .hero {
        margin-top: 80px !important;
        height: 75vh;
        min-height: 480px;
        position: relative;
    }
    .hero-content {
        margin-bottom: 0 !important;
        padding: 0 20px;
    }
    .hero-nav {
        display: none !important;
    }
    .hero-content h2 { font-size: 14px; }
    .hero-content h1 { font-size: 32px; line-height: 1.2; }
    .hero-content p { font-size: 16px; }
    .hero-buttons {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 85% !important;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 10;
    }
    .btn-primary, .btn-secondary {
        width: 100% !important;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }
    .hero-dots { bottom: 130px !important; }

    .stats-section { flex-direction: column; text-align: center; padding: 40px 20px; }
    .stats-text { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; margin-bottom: 20px; }
    .stats-numbers { flex-wrap: wrap; gap: 20px; }
    .stat-item { width: 45%; }

    .guide-section { flex-direction: column-reverse; text-align: center; padding: 40px 20px; }
    .guide-content { padding-right: 0; margin-top: 30px; }
    .guide-content h2 { font-size: 36px; }

    .niqui-dialogue-container,
    .sound-gallery .niqui-dialogue-container,
    .page-niqui-container {
        position: relative;
        top: 0; left: 0;
        margin: 0 auto 30px auto;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    .niqui-tooltip, .sound-gallery .niqui-tooltip { max-width: 100%; }
    .niqui-dialogue-container-right { justify-content: center; flex-direction: column; }
    .page-niqui-container { margin-top: -20px; }

    .cards-container { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 320px; height: 220px !important; }
    .interactive-buttons { flex-direction: column; width: 100%; }

    .gallery-card { flex-direction: column; width: 100%; }
    .card-image-wrapper { height: 250px; }
    .card-content h3 { font-size: 24px; }
    .carousel-nav { display: none; }

    .museum-intro, .timeline-panel { grid-template-columns: 1fr; }
    .timeline-v::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; text-align: left; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-item::after, .timeline-item.right::after { left: 10px; }
    .page-title { font-size: 2.2rem; }
    .timeline-nav { white-space: nowrap; padding-bottom: 10px; }
    .archive-header { flex-direction: column; text-align: center; gap: 15px; }
    .archive-card { min-width: 280px; }
    .stats-banner { grid-template-columns: 1fr 1fr; gap: 30px; max-width: 100%; margin: 20px 10px; }

    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
    .brand-col { max-width: 100%; }
    .footer-logo { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

/* =========================================
   GALERÍA VISUAL (GRID Y MODAL)
   ========================================= */
.gallery-category {
    margin-bottom: 60px;
}

.category-desc {
    color: #555;
    max-width: 800px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.mural-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mural-item img {
    width: 100%;
    height: 100%;
    object-fit: none;
    display: block;
    transition: transform 0.3s ease;
}

.mural-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.mural-item:hover img {
    transform: scale(1.05);
}
.mural-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px 15px 10px 15px;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mural-item:hover .mural-title-overlay {
    transform: translateY(0);
}

.mural-modal {
    display: none;
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mural-modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-image {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esta es la clave para que NO se corte la imagen */
    display: block;
}
.modal-author {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #777;
    margin-top: 0px; 
    margin-bottom: 20px;
    font-style: italic;
}

.modal-author strong {
    color: var(--primary-blue);
    font-style: normal;
    font-weight: 700;
}

.modal-text {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.modal-text h3 {
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-text p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-image {
        min-height: 250px;
        flex: none;
    }
    
    .modal-text {
        padding: 25px;
        flex: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

/* =========================================
   MENÚ HAMBURGUESA MEJORADO
   ========================================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        font-size: 15px !important;
        padding: 5px 0;
        width: 100%;
    }

    .has-dropdown .dropdown-menu {
        position: static !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 8px 0 !important;
        border-radius: 8px !important;
        margin-top: 10px;
    }

    .has-dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: none !important;
        padding: 4px 0 !important;
    }

    .dropdown-menu li a {
        color: white !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        padding: 6px 15px !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* =========================================
   GALERÍA SONORA (PODCAST Y RELATOS)
   ========================================= */
.spotify-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.relatos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.relato-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.relato-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.relato-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 25px;
}

.relato-info {
    flex: 1;
}

.relato-meta {
    font-size: 12px;
    font-weight: 700;
    color: #E05D2A;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.relato-info h3 {
    font-family: var(--font-headings);
    font-size: 22px;
    color: var(--text-dark);
    margin: 5px 0;
}

.relato-mural {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.relato-tags {
    font-size: 13px;
    color: #999;
}

.relato-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    gap: 8px;
}

.relato-time {
    font-size: 12px;
    color: #888;
}

.play-audio-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #E05D2A;
    color: white;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    padding-left: 4px;
}

.play-audio-btn:hover {
    background-color: #c94f1f;
    transform: scale(1.05);
}
#seccion-podcast,
#seccion-relatos {
    scroll-margin-top: 100px;
}

@media (max-width: 600px) {
    .relato-card {
        flex-direction: column;
        text-align: center;
        position: relative;
    }
    
    .relato-img {
        margin-right: 0;
        margin-bottom: 15px;
        width: 120px;
        height: 120px;
    }

    .relato-action {
        margin-top: 15px;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
}

/* =========================================
   CAROUSEL DE PODCASTS Y LAYOUT NIQUI
   ========================================= */
.podcast-layout {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 40px;
}

.podcast-niqui-col {
    position: absolute;
    left: 20px;
    top: 0;
    width: 320px;
    z-index: 10;
}

.podcast-content-col {
    width: 100%;
    max-width: 900px;
}

.episode-indicator {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.podcast-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.podcast-carousel-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 352px;
}

.podcast-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.podcast-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1100px) {
    .podcast-layout {
        flex-direction: column;
        align-items: center;
    }
    .podcast-niqui-col {
        position: relative;
        left: 0;
        width: 100%;
        max-width: 400px;
        margin-bottom: 40px;
    }
}

/* =========================================
   MAQUETACIÓN PÁGINA APÓYANOS
   ========================================= */
.apoyanos-section {
    padding: 30px 20px 50px;
    box-sizing: border-box;
}

.apoyanos-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.apoyanos-left-col {
    flex: 1.2;
}

.apoyanos-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.apoyanos-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.aportes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.aporte-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.aporte-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.aporte-card h3 {
    font-size: 0.85rem;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.aporte-card p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.btn-quiero-aportar {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 22px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.apoyanos-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-img-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 260px;
}

.library-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-aportes {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #ffb703;
    color: var(--dark-blue);
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    line-height: 1;
}

.badge-num {
    font-size: 1.4rem;
}

.badge-text {
    font-size: 0.65rem;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.proyecto-cultural-card {
    background-color: #f0f4f8;
    border: 1px solid #d0deeb;
    border-radius: 12px;
    padding: 22px;
}

.proyecto-cultural-card h4 {
    color: var(--primary-blue);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.proyecto-cultural-card p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-quiero-participar {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 18px;
    border-radius: 6px;
}

/* =========================================
   BANNER PRE-FOOTER (CALLOUT)
   ========================================= */
.callout-banner {
    background-color: #3A78C4;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
}

.callout-content {
    max-width: 800px;
    margin: 0 auto;
}

.callout-banner h2 {
    font-family: var(--font-headings);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.callout-banner h2 em {
    font-style: italic;
    font-weight: 400;
    opacity: 0.85;
}

.callout-banner p {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.5;
}

.callout-btn {
    display: inline-block;
    background-color: #FFA800;
    color: #234B75;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 14px 28px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.callout-btn:hover {
    transform: scale(1.04);
    background-color: #ff9900;
}

@media (max-width: 992px) {
    .apoyanos-layout {
        flex-direction: column;
        gap: 35px;
    }

    .apoyanos-left-col,
    .apoyanos-right-col {
        width: 100%;
    }

    .apoyanos-title {
        font-size: 2rem;
        word-break: break-word;
    }

    .btn-quiero-aportar {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .callout-banner {
        padding: 50px 20px;
    }
    .callout-banner h2 {
        font-size: 2.2rem;
    }
    .callout-banner p {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .apoyanos-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .apoyanos-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .aportes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .aporte-card {
        padding: 16px;
    }

    .aporte-card h3 {
        font-size: 0.9rem;
    }

    .aporte-card p {
        font-size: 0.85rem;
    }

    .library-img-card {
        height: 220px;
    }

    .badge-aportes {
        padding: 8px 14px;
    }

    .badge-num {
        font-size: 1.2rem;
    }

    .badge-text {
        font-size: 0.6rem;
    }
}

/* =========================================
   NUEVA SECCIÓN: PÁGINA DE CONTACTO Y GOOGLE FORMS
   ========================================= */
.contact-page-container {
    padding: 60px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* Columna Izquierda: Información de Contacto */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact-info-title em {
    font-style: italic;
    font-weight: 400;
}

.info-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.info-icon-box {
    width: 42px;
    height: 42px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-details h4 {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 800;
    color: #8899a6;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-details p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.social-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--accent-yellow);
}

.social-card h4 {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.social-badges {
    display: flex;
    gap: 10px;
}

.social-badge-btn {
    background-color: #3b74b4;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Columna Derecha: Contenedor Tarjeta y Google Forms */
.contact-form-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.contact-form-card h2 {
    font-family: var(--font-headings);
    font-size: 3rem;
    color: #3b74b4;
    margin-bottom: 20px;
}

.google-forms-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.google-forms-container iframe {
    width: 100%;
    height: 650px;
    border: none;
}
/* =========================================
   ESTILOS DEL FORMULARIO DE CONTACTO
   ========================================= */
.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 800;
    color: #8899a6;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Al hacer clic en un campo (focus) */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 131, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-send-message {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-top: 10px;
    width: 100%;
}

.btn-send-message:hover {
    transform: scale(1.02);
    background-color: #e09306;
}

/* Adaptación responsive para celulares */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Adaptación responsive para la página de contacto */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        padding: 20px;
    }
    .contact-form-card h2 {
        font-size: 2.2rem;
    }
    .google-forms-container iframe {
        height: 700px;
    }
}

@media (max-width: 768px) {
    /* Permitir que los elementos se acomoden en varias líneas */
    .podcast-carousel-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 10px !important;
    }
    
    /* Obligar al reproductor de Spotify a ponerse arriba y tomar TODO el ancho */
    .podcast-carousel-track {
        order: -1; 
        min-width: 100%; 
        flex: none;
        margin-bottom: 10px;
    }

    /* Mostrar las flechas debajo con un buen tamaño para los dedos */
    .podcast-carousel-wrapper .carousel-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 15px; /* Separación entre la flecha izquierda y derecha */
        font-size: 18px;
    }
}

/* =========================================
   MODAL DE DONACIONES (POPUP GLOBAL)
   ========================================= */
.donate-modal {
    display: none;
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-modal.active {
    display: flex;
    opacity: 1;
}

.donate-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.donate-modal.active .donate-modal-content {
    transform: translateY(0);
}

.donate-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.donate-close-btn:hover {
    color: #ffffff;
}

.donate-modal-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 30px 30px 30px;
    text-align: center;
}

.donate-modal-header h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.donate-modal-header p {
    font-family: var(--font-main);
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.5;
}

.donate-modal-body {
    display: flex;
    padding: 40px 30px;
    gap: 30px;
    align-items: center;
}

.qr-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8fafc;
    border: 2px dashed #d0deeb;
    border-radius: 12px;
}

.qr-container img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.donate-instructions {
    flex: 1.2;
}

.donate-instructions h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.donate-instructions ol {
    margin-left: 20px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.donate-instructions ol li {
    margin-bottom: 8px;
}

.donate-thankyou {
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 768px) {
    .donate-modal-body {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .donate-modal-header {
        padding: 30px 20px 20px 20px;
    }
    
    .donate-modal-header h2 {
        font-size: 2rem;
    }
    
    .qr-container img {
        max-width: 180px;
    }
}

/* =========================================
   SECCIÓN HÉCTOR ABAD GÓMEZ (VIDEO)
   ========================================= */
.hector-abad-section {
    background-color: white; 
    border-radius: 12px; 
    padding: 40px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: center;
}

.video-container {
    flex: 1; 
    min-width: 300px; 
    position: relative; 
    padding-bottom: 56.25%; /* Proporción 16:9 para videos de YouTube */
    height: 0; 
    overflow: hidden; 
    border-radius: 12px;
}

.video-container iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}

.hector-text-content {
    flex: 1; 
    min-width: 300px;
}

.hector-text-content h2 {
    font-family: var(--font-headings); 
    font-size: 2.5rem; 
    color: var(--primary-blue); 
    margin-bottom: 20px;
}

.niqui-inline-quote {
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
    background-color: #f8fafc; 
    padding: 20px; 
    border-radius: 12px; 
    border-left: 4px solid var(--accent-yellow);
}

.niqui-inline-avatar {
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    flex-shrink: 0;
}

.niqui-inline-quote h5 {
    color: #F5A623; 
    margin-bottom: 5px; 
    font-size: 13px; 
    letter-spacing: 1px; 
    font-family: var(--font-main);
}

.niqui-inline-quote p {
    font-size: 0.95rem; 
    color: #555; 
    line-height: 1.5; 
    margin: 0;
}

.hector-text-content p.hector-desc {
    color: var(--text-dark); 
    font-size: 1.05rem; 
    line-height: 1.7; 
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hector-abad-section {
        padding: 20px;
    }
}
/* =========================================
   DETRÁS DE LOS MURALES (CARRUSEL DE VIDEOS)
   ========================================= */
.detras-murales-section {
    padding: 80px 20px 40px 20px;
}

.detras-murales-section .section-desc {
    max-width: 800px;
    margin: 0 auto 20px auto; /* Reducido de 40px a 20px para juntarlo con lo de abajo */
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.video-carousel-layout {
    max-width: 900px;
    margin: 0 auto;
}

.video-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.video-carousel-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.video-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.video-slide.active {
    display: block;
}

.video-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 10px; 
    font-family: var(--font-headings);
}
/* Contenedor responsivo para mantener proporción 16:9 de YouTube */
.video-container-responsive {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .video-carousel-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 10px;
    }
    .video-carousel-track {
        order: -1;
        min-width: 100%;
        flex: none;
        margin-bottom: 10px;
    }
    .video-carousel-wrapper .carousel-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 15px;
    }
}

/* =========================================
   ESTILOS DE LA TRIVIA (KAHOOT STYLE)
   ========================================= */
.trivia-main-container {
    max-width: 880px;
    margin: 0 auto;
}

.niqui-card {
    background-color: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
    border: 2px solid #e2e8f0;
}

.niqui-img-wrapper {
    flex-shrink: 0;
    background-color: #eff6ff;
    padding: 8px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
}

.niqui-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.niqui-speech {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    position: relative;
    flex-grow: 1;
}

.niqui-name {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.start-box, .quiz-card, .results-box {
    background-color: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.start-box h2 {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.btn-start, .btn-next {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 9999px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.btn-start:hover, .btn-next:hover {
    transform: translateY(-2px);
    background-color: #e09306;
}

.timer-box, .progress-box {
    background-color: white;
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #e2e8f0;
}

.timer-bar-track, .progress-track {
    flex-grow: 1;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%; width: 100%;
    background-color: var(--primary-blue);
    transition: width 1s linear, background-color 0.3s ease;
}

.progress-fill {
    height: 100%; width: 0%;
    background-color: var(--accent-yellow);
    transition: width 0.4s ease;
}

.question-number {
    color: var(--accent-yellow);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.question-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.75rem;
}

.question-image-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative;
}

.question-image-wrapper::after {
    content: '🔍 Clic para ampliar';
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7); color: white;
    padding: 6px 12px; border-radius: 20px;
    font-size: 0.8rem; pointer-events: none;
}

.question-image {
    width: 100%; height: 320px; object-fit: cover;
}

.options-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.option-btn {
    border: none; border-radius: 12px; padding: 1.2rem;
    font-family: var(--font-main); font-size: 1.05rem; font-weight: 700;
    color: white; cursor: pointer; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.2); text-align: left;
}
.option-btn:nth-child(1) { background-color: #e21b3c; }
.option-btn:nth-child(2) { background-color: #1368ce; }
.option-btn:nth-child(3) { background-color: #d89e00; }
.option-btn:nth-child(4) { background-color: #26890c; }

.option-prefix {
    background-color: rgba(255,255,255,0.25);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.option-btn.correct { background-color: #10b981 !important; outline: 4px solid #059669; }
.option-btn.wrong { background-color: #ef4444 !important; opacity: 0.4; }
.option-btn.disabled { pointer-events: none; }

.explanation-box {
    margin-top: 1.5rem; background-color: #eff6ff;
    border: 1px solid #bfdbfe; border-radius: 14px;
    padding: 1.25rem 1.5rem; display: none;
}

.score-badge {
    width: 145px; height: 145px; border-radius: 50%;
    background-color: var(--accent-yellow); color: var(--dark-blue);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 1.5rem auto;
}
.score-number { font-size: 3rem; font-weight: 800; line-height: 1; }

.image-modal {
    display: none; position: fixed; z-index: 99999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center; align-items: center; padding: 20px;
}
.modal-img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }

@media (max-width: 640px) {
    .options-grid { grid-template-columns: 1fr; }
    .niqui-card { flex-direction: column; text-align: center; }
}
/* =========================================
   ESTILOS PANTALLA FINAL DE TRIVIA
   ========================================= */
.results-box {
    text-align: center; /* Centra los textos y el contenido */
}

.btn-restart {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 9999px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 1.5rem;
}

.btn-restart:hover {
    transform: translateY(-2px);
    background-color: #e09306;
}

/* Quitar la barra fija únicamente en la página de Museo Interactivo y solo en móviles */
@media (max-width: 768px) {
    body.page-museo-interactivo header {
        position: absolute !important;
    }
}