/* Variables de Color basadas en la paleta institucional y de tus capturas */
:root {
    --primary-color: #0d47a1; /* Azul UNAM aproximado */
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
    --accent-green: #16a085;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* --- BARRA DE NAVEGACIÓN (NAVBAR) CORREGIDA --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #ebebeb;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Más ancho para que quepan holgadamente los elementos */
    margin: 0 auto;
    padding: 10px 24px;
}

/* Área del Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px; /* Ajusta la altura del logo PNG automáticamente */
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-weight: 600;
    color: #1e3a8a; /* Azul obscuro institucional */
    font-size: 1.3rem;
}

/* Menú de enlaces principales */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568; /* Gris estético */
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

/* Efecto hover y link activo */
.nav-menu a:hover, 
.nav-menu a.active {
    color: #1a56db; /* Cambio suave a azul activo */
}

/* Clase auxiliar para recortar texto largo si es necesario */
.truncate-text {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* --- MENÚ DESPLEGABLE (DROPDOWN) --- */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

/* Botón "Más" */
.dropdown-btn {
    background: transparent;
    color: #4a5568;
    padding: 5px 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.dropdown-btn .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

/* Hover sobre el botón Más */
.dropdown:hover .dropdown-btn {
    color: #1a56db;
}

.dropdown:hover .dropdown-btn .arrow {
    transform: rotate(180deg);
}

/* Caja del Menú flotante (Se abre abajo a la derecha) */
.dropdown-content {
    display: none; 
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 280px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 0;
    z-index: 1200;
}

/* Enlaces internos del menú desplegable */
.dropdown-content a {
    color: #374151 !important;
    padding: 10px 16px;
    margin: 0 !important;
    display: block;
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Hover de los links de adentro */
.dropdown-content a:hover {
    background-color: #f9fafb;
    color: #1a56db !important;
}

/* Desplegar al pasar el cursor */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- SECCIÓN HERO (PORTADA CON FOTO DE DRON) --- */
.hero {
    margin-top: 66px; /* Evita que la navbar fija tape la parte superior de la foto */
    
    /* CORRECCIÓN DE TAMAÑO: Subimos de 65vh a 75vh para igualar la proporción de Google Sites */
    height: 75vh; 
    width: 100%;
    
    /* Filtro oscuro con el degradado */
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), 
                url('assets/xcunya.JPG') no-repeat center center / cover;
    
    /* EFECTO PARALLAX DE GOOGLE SITES: Esta propiedad fija la imagen de fondo en su lugar */
    background-attachment: fixed;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    padding: 0 20px;
    max-width: 900px;
}

/* Título Principal (Corregido y Asegurado en Blanco) */
.hero-overlay h1 {
    font-family: 'Georgia', serif;
    font-size: 2.2rem; /* Reducido de 2.8rem a 2.2rem para igualar a Google Sites */
    font-weight: bold;
    color: #ffffff !important; /* El !important obliga al navegador a mantenerlo blanco pase lo que pase */
    margin-bottom: 12px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); 
}

/* Subtítulo (Corregido y Asegurado en Blanco) */
.hero-overlay p {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.1rem; /* Reducido de 1.25rem a 1.1rem */
    color: #ffffff !important; /* Asegura el color blanco */
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

/* Ajuste responsivo para celulares */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }
    .hero-overlay p {
        font-size: 1rem;
    }
}

/* Contenedores y Secciones */
.content-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- SECCIÓN "EL PROYECTO" (ESTILO GOOGLE SITES CENTRADO) --- */
.info-section.central-project {
    text-align: center;         /* Centra absolutamente todo el texto */
    padding: 60px 40px;         /* Da esa amplitud vertical y espacio a los lados */
    max-width: 950px;           /* Limita el ancho para que las líneas de texto no sean infinitas y se canse la vista */
    margin: 0 auto;             /* Centra el bloque contenedor en la pantalla */
}

/* Título EL PROYECTO */
.info-section.central-project h2 {
    color: #0b6655;             /* El tono verde esmeralda obscuro de la captura original */
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    letter-spacing: 1px;        /* Separa ligeramente las letras como en Google Sites */
    margin-bottom: 30px;        /* Espacio holgado entre el título y el primer párrafo */
    font-weight: bold;
}

/* Todos los párrafos de esta sección */
.info-section.central-project p {
    font-family: 'Georgia', serif;
    font-style: italic;         /* Todo el cuerpo de texto va en cursiva */
    font-size: 1.15rem;         /* Tamaño estilizado y equilibrado, no tan gigante */
    color: #333333;             /* Gris muy obscuro para lectura cómoda */
    line-height: 1.6;           /* Separación interlineal idéntica a la original */
    margin-bottom: 25px;        /* Separación marcada entre cada bloque de párrafo */
    text-align: center;         /* Asegura que los párrafos se justifiquen al centro */
}

/* Quitar el margen al último párrafo para no romper el padding inferior */
.info-section.central-project p:last-child {
    margin-bottom: 0;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* --- SECCIÓN MOSAICO 4 CUADRANTES (CONOCE XCUNYÁ) --- */
.xcunya-mosaic-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

/* El contenedor principal se divide en 2 columnas iguales */
.mosaic-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 35px; /* Separación estética entre cuadrantes */
    align-items: start;
}

.quadrant {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Ajustes exclusivos para el texto del cuadrante 1 */
.quadrant-text h2 {
    color: #0b6655; /* Mismo verde institucional de Google Sites */
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.quadrant-text p {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify; /* Justificado como se ve en la captura original */
}

/* Cuadrantes multimedia (Imágenes y Mapas) */
.quadrant-media {
    align-items: center;
    text-align: center;
}

.mosaic-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover; /* Recorta la imagen armónicamente para mantener la proporción fija */
    border-radius: 4px; /* Un borde sutil y limpio */
}

.mosaic-caption {
    font-size: 0.85rem;
    color: #555555;
    margin-top: 8px;
    text-align: center;
}

/* --- SECCIÓN HISTORIA (TEXTO COMPLETO ABAJO) --- */
.history-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.history-container h3 {
    color: #0b6655;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.history-container p {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: justify;
}

/* Responsivo: Si se ve desde un celular, los cuadrantes se apilan uno abajo del otro en fila */
@media (max-width: 768px) {
    .mosaic-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    border-radius: 4px;
}

.caption {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 10px;
}

.credits {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #7f8c8d;
}
/* --- ESTILOS EXCLUSIVOS PARA LA PÁGINA DE INFOGRAFÍA --- */

.page-padding {
    margin-top: 100px !important; /* Da un colchón de espacio para que no la tape la navbar fija */
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

/* Bloques de texto individuales */
.text-block {
    max-width: 900px;
    margin: 0 auto 35px auto;
}

.text-block h2 {
    color: #0b6655;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 5px;
}

.text-block h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 25px 0 10px 0;
}

.text-block h4 {
    color: #475569;
    font-size: 1.05rem;
    margin: 15px 0 5px 0;
}

.sub-block {
    margin-left: 15px;
    margin-top: 10px;
}

/* Caja especial para los testimonios/citas de Nicte-Há */
.quote-box {
    background-color: #f8fafc;
    border-left: 4px solid #0b6655;
    padding: 15px 20px;
    margin: 15px 0;
    font-style: italic;
    color: #334155;
    border-radius: 0 6px 6px 0;
}

/* Lista de curiosidades */
.curiosities-list {
    margin-left: 20px;
    margin-top: 10px;
}

.curiosities-list li {
    margin-bottom: 10px;
    color: #334155;
}

/* Contenedor de la Imagen de la Infografía */
.infografia-display-section {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.infografia-image-wrapper {
    max-width: 750px; /* Tamaño ideal de lectura en web */
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.full-infografia-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ESTILOS EXCLUSIVOS PARA LA PÁGINA DEL CATÁLOGO FOTOGRÁFICO --- */

/* Texto de introducción centrado */
.catalog-intro-section {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 40px auto;
}

.catalog-intro-section h1 {
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.catalog-intro-section p {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Sección del mapa de QGIS */
.catalog-map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.map-wrapper {
    max-width: 680px; /* Tamaño optimizado basado en catalog1.png */
    width: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.qgis-map-img {
    width: 100%;
    height: auto;
    display: block;
}

.map-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

/* Conector de texto intermedio */
.catalog-text-connector {
    max-width: 950px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.catalog-text-connector p {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.6;
    text-align: center;
}

/* Contenedor de Google Slides incrustado */
.slides-embed-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    width: 100%;
}

.slides-container {
    max-width: 950px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #000000; /* Fondo negro elegante por si tarda un segundo en cargar */
}

.slides-container iframe {
    display: block;
    border: none;
}

/* Ajuste fino para celulares en la altura de las diapositivas */
@media (max-width: 768px) {
    .slides-container iframe {
        height: 300px;
    }
}
/* --- ESTILOS EXCLUSIVOS PARA LA PÁGINA DE HERRAMIENTAS --- */

.main-tools-title {
    text-align: center;
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.category-subtitle {
    text-align: center;
    color: #333333;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Forzar las dos columnas simétricas de Google Sites */
    gap: 50px 40px; /* Mucho espacio vertical y horizontal entre herramientas */
    margin-bottom: 5px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Envoltura para encuadrar los logos parejos sin importar su forma original */
.tool-logo-wrapper {
    width: 100%;
    max-width: 320px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.tool-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita que los logos se estiren feo */
}

/* Títulos individuales en verde esmeralda */
.tool-card h3 {
    color: #0b6655;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.tool-slogan {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: normal;
}

.tool-description, .tool-features {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center; /* Centrado como en la captura original */
    max-width: 500px;
}

/* Responsive para que en pantallas de celular se acomode en una sola columna */
@media (max-width: 850px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tool-logo-wrapper {
        height: 140px;
    }
}
/* --- ESTILOS EXCLUSIVOS PARA LA PÁGINA DE HERRAMIENTAS APLICADAS --- */

.applied-header {
    text-align: center;
    margin-bottom: 40px;
}

.applied-header h1 {
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    max-width: 900px;
    margin: 0 auto 15px auto;
    line-height: 1.4;
}

.applied-header h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 35px;
}

/* Bloques generales */
.applied-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.applied-block h3 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.applied-block h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

/* Listas con estilo limpio de viñetas de Google Sites */
.styled-list {
    margin-left: 24px;
    margin-bottom: 20px;
}

.styled-list li {
    margin-bottom: 8px;
    color: #334155;
    list-style-type: square; /* Viñeta cuadrada clásica */
}

/* Envolturas multimedia */
.center-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.main-collage-img {
    max-width: 380px;
    width: 100%;
    height: auto;
}

.mid-size-img {
    max-width: 550px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.large-display-img {
    max-width: 650px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Caja de enlaces estilizada */
.links-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.links-box p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.links-box p:last-child {
    margin-bottom: 0;
}

.links-box a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
}

.links-box a:hover {
    text-decoration: underline;
}

/* Flexbox para las pantallas de trabajo de QGIS */
.qgis-workspace-flex {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

.qgis-work-img {
    width: 48%; /* Ocupan la mitad del espacio cada una */
    height: auto;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- REJILLA DE EVIDENCIAS (3 COLUMNAS SIMÉTRICAS) --- */
.evidence-gallery-section {
    max-width: 1000px;
    margin: 40px auto;
}

.gallery-title {
    text-align: center;
    margin-bottom: 35px;
    color: #0b6655;
}

.gallery-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Tres columnas perfectas */
    gap: 30px 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 220px;
    height: 160px;
    object-fit: cover; /* Mantiene el tamaño homogéneo de las miniaturas */
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
}

/* Ajuste responsive para tabletas y celulares */
@media (max-width: 768px) {
    .gallery-grid-3col {
        grid-template-columns: 1fr 1fr; /* Pasa a 2 columnas en pantallas medianas */
    }
    .qgis-workspace-flex {
        flex-direction: column;
        align-items: center;
    }
    .qgis-work-img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid-3col {
        grid-template-columns: 1fr; /* 1 sola columna en celulares chicos */
    }
}
/* --- ESTILOS EXCLUSIVOS PARA LA PÁGINA DEL MAPA DE AFECTACIONES --- */

.map-analysis-text {
    max-width: 950px;
    margin: 0 auto 40px auto;
}

.map-analysis-text h1 {
    text-align: center;
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.map-analysis-text p {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* Grid contenedor para las dos imágenes de abajo */
.map-display-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* El mapa toma un poco más de espacio que la simbología */
    gap: 30px;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto 50px auto;
}

.map-grid-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

.map-visual-img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.map-legend-img {
    width: 100%;
    height: auto;
    max-width: 420px; /* Evita que la simbología se estire de más */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Responsive: si se reduce el tamaño de la pantalla, se apilan verticalmente */
@media (max-width: 768px) {
    .map-display-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .map-legend-img {
        max-width: 100%;
    }
}
/* --- ESTILOS PARA MELIPONICULTURA Y VIDEO --- */

.melipona-intro-text, .video-section-wrapper {
    max-width: 950px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.melipona-intro-text h1, .video-section-wrapper h1 {
    color: #0b6655;
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.melipona-intro-text p, .video-section-wrapper p {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.canva-link-text a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
}

.canva-link-text a:hover {
    text-decoration: underline;
}

/* Envoltura para encuadrar la infografía de abejas */
.melipona-display-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.melipona-image-wrapper {
    max-width: 750px; /* Anchura balanceada de lectura */
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.full-melipona-img {
    width: 100%;
    height: auto;
    display: block;
}


.video-card-block {
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.video-card-block h2 {
    color: #0b6655;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.video-desc {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: left !important;
}

/* ==========================================================================
   🎯 OPTIMIZACIÓN COMPLETA PARA DISPOSITIVOS MÓVILES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 768px) {
    
    /* 1. Ajustes del contenedor general de la Navbar */
    .nav-container {
        padding: 8px 12px;
        flex-direction: column; 
        gap: 8px;
    }

    .logo-img {
        height: 32px; 
    }

    .project-title {
        font-size: 1.05rem;
    }

    /* Menú amontonado en filas */
    .nav-menu {
        width: 100%;
        justify-content: center; 
        flex-wrap: wrap;       
        gap: 6px;
    }

    .nav-menu a, .dropdown-btn {
        font-size: 0.8rem;        
        padding: 4px 6px;
        margin-left: 0 !important;
    }

    /* 2. CORRECCIÓN DE TÍTULOS TAPADOS (Aumentamos drásticamente el colchón superior) */
    .page-padding {
        margin-top: 150px !important; /* Añade suficiente espacio libre para que la navbar de 2 filas no tape nada */
    }

    /* Reducción estética de los títulos en móvil */
    .info-section.central-project h2,
    .map-analysis-text h1,
    .main-tools-title,
    .meliponicultura-intro-text h1,
    .video-section-wrapper h1,
    .page-header h1 {
        font-size: 1.5rem !important; 
        line-height: 1.3;
    }
}
/* Estilo complementario para reproductor nativo de video */
.video-player-container-native {
    max-width: 340px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: #000;
}

.video-player-container-native video {
    width: 100%;
    height: auto;
    display: block;
}
/* ==========================================================================
   🎬 REPRODUCTOR VERTICAL TOTALMENTE AJUSTABLE (PC Y MÓVIL)
   ========================================================================== */

/* ==========================================================================
   🎬 REPRODUCTOR VERTICAL MEJORADO CON ASPECT-RATIO DIRECTO (9:16)
   ========================================================================== */

.video-player-container {
    width: 100%;
    max-width: 320px;           /* Un ancho ideal y estilizado para video vertical en PC */
    aspect-ratio: 9 / 16;       /* Mantiene la proporción exacta de tus videos verticales */
    margin: 30px auto 50px auto;/* Centra el reproductor y le da aire con los textos */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background-color: #000000;
}

/* El iframe simplemente se expande para llenar la proporción exacta */
.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Ajuste fino para celulares muy pequeños */
@media (max-width: 480px) {
    .video-player-container {
        max-width: 280px;       /* Lo encoge ligeramente a los lados si la pantalla es muy angosta */
    }
}

/* ==========================================================================
   ✨ SECCIÓN GENIALLY INTERACTIVO (PC Y MÓVIL)
   ========================================================================== */

.genially-interactive-section {
    max-width: 950px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.genially-title {
    color: #0b6655;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.genially-desc {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
}

/* Contenedor responsivo con la proporción estándar de Genially (16:9) */
.genially-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9; /* Mantiene el formato panorámico perfecto */
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

/* El iframe se estira de manera exacta dentro del contenedor */
.genially-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Ajuste fino para celulares (en móvil el Genially se adapta mejor con menos altura) */
@media (max-width: 768px) {
    .genially-container {
        aspect-ratio: 4 / 3; /* Proporción más cuadrada para que los botones interactivos no se vean diminutos en cel */
        max-width: 100%;
    }
}