/* --- RESET Y BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: transparent;
    color: #fff;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- ESTRUCTURA GLOBAL DE SECCIONES --- */
section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.section-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.01);
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-relative {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

section:not(.hero):not(.memoria-ejecafetero) {
    padding: 80px 20px;
}

/* --- HERO --- */
.hero {
    width: 100%;
    padding: 0 !important; /* Asegura que ninguna regla externa le meta espacio */
    margin: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    line-height: 0;
    /* Forzamos a que el contenedor NO tenga alturas fijas (así se adapta al tamaño real del <img>) */
    height: auto !important;      
    min-height: unset !important; 
    max-height: unset !important;
}

.hero-container .overlay-img {
    width: 100%;
    height: auto;
    /* El !important aquí es OBLIGATORIO para ganarle al display:none global de la línea 15 */
    display: block !important;    
    vertical-align: bottom;
}


/* --- SECCIÓN BIENVENIDA / CONTEXTO --- */
.memoria-ejecafetero {
    position: relative;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
    background-image: url('/es/Paginas/CompareSer/2026/Proceso-Eje-Cafetero/IMG/FONDOS/Contexto_1920_1080.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    height: auto;
}

.memoria-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 25px;
    text-align: center;
}

.memoria-title {
    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    color: #4caf50; /* Verde brillante cafetal */
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.memoria-text {
    font-size: clamp(1.15rem, 1.7vw, 1.65rem);
    line-height: 1.9;
    margin-bottom: 28px;
    color: #3e2723; /* Marrón/Café oscuro para texto legible */
    font-style: italic;
    text-shadow: 0 2px 8px rgba(255, 255, 255, .12);
}

/* --- TIMELINE --- */
.timeline-embed {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
}

/* --- CARRUSEL HISTORIAS --- */
.carousel-container {
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: flex-start;
}

.card {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 15px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 125, 50, 0.9); /* Verde selva para botones */
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-btn:hover {
    background: #1b5e20;
    transform: translateY(-50%) scale(1.08);
}

.nav-btn.prev { left: -70px; }
.nav-btn.next { right: -70px; }

/* --- AUDIOS --- */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.audio-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #1a0f0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    cursor: pointer;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

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

.audio-content {
    margin-top: 18px;
    padding: 0 5px;
}

.audio-title {
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
}

.audio-summary {
    margin-top: 15px;
    font-size: 1.3rem;
    color: #4e342e;
}

/* ===================================================================
   GRILLA DE CARTAS (Reemplaza al carrusel)
=================================================================== */
.cartas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas */
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.carta-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.carta-item:hover {
    transform: translateY(-5px);
}

.carta-titulo {
    margin-top: 15px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: #2e7d32;
    line-height: 1.3;
}

.carta-texto {
    margin-top: 10px; 
    font-size: 1.05rem; 
    color: #4e342e;
    flex-grow: 1; /* Permite empujar el botón al fondo si hay más texto */
}

.btn-modal {
    margin-top: 15px;
    background: none;
    border: none;
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.btn-modal:hover {
    color: #1b5e20;
}

/* ===================================================================
   MODAL PARA PDF / IMÁGENES
=================================================================== */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 99999;
    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;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    height: 85vh; /* Ocupa el 85% del alto de la pantalla */
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e53935;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.close-modal:hover {
    background: #b71c1c;
}

.modal-body {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #f4f4f4; /* Por si demora en cargar */
}

/* --- RESPONSIVE PARA LA GRILLA DE CARTAS --- */
@media (max-width: 1100px) {
    .cartas-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .cartas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cartas-grid { grid-template-columns: 1fr; }
    .modal-content { height: 70vh; width: 95%; }
}

/* ===== SECCIÓN GALERÍA ===== */
.gallery-section {
    background-image: url('/es/Paginas/CompareSer/2026/Proceso-Eje-Cafetero/IMG/FONDOS/Proceso_Restaurativo_1920_1080.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
}

.gallery-item {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ===== IMÁGENES ===== */
.gallery-item img {
    display: block;
    width: 100%;
    height: 600px;       /* Ajusta este valor según la altura deseada */
    object-fit: cover;   /* Llena el contenedor sin deformarse */
}

.gallery-caption {
    width: 100%;
    padding: 25px 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: #3e2723;
    font-style: italic;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background: #2e7d32;
}

.gallery-arrow.left {
    left: 15px;
}

.gallery-arrow.right {
    right: 15px;
}

/* --- TIPOGRAFÍA GLOBAL --- */
h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.9;
    margin-bottom: 20px;
}



/* Colores semánticos regionales */
.color-verde   { color: #4caf50; }
.color-verdedk { color: #2e7d32; }
.color-cafe    { color: #3e2723; }
.color-cafelt  { color: #5d4037; }

/* --- FOOTER --- */
footer {
    background: #2e7d32;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    border-top: 1px solid #1b5e20;
}

/* --- APOYO FINAL --- */
.apoyo-final {
    width: 100%;
    text-align: center;
    padding: 70px 20px 50px;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apoyo-texto {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.apoyo-texto::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, #4caf50, #3e2723);
    border-radius: 20px;
}

/* ===================================================================
   SECCIONES NUEVAS (agregadas para seguir la estructura del PDF)
   No se elimina ni modifica ninguna regla existente arriba; solo se
   añaden clases nuevas usadas por los bloques nuevos del HTML.
=================================================================== */

/* --- Barra de cifras (13 / 192 / 295 / 2024-2026) --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

.stat-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    color: #3e2723;
}

/* ===================================================================
   CONTENEDOR DE NUEVAS FOTOS (4 EN FILA)
=================================================================== */

/* Contenedor principal en fila */
.photo-row {
    display: flex;
    gap: 15px; /* Espacio entre cada tarjeta */
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
}

/* Tarjeta individual (es un label clickable) */
.photo-card {
    flex: 1; /* Hace que las 4 ocupen el mismo ancho equitativamente */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

/* Ocultamos el input de archivo feo por defecto */
.photo-input {
    display: none;
}

/* El recuadro de la foto */
.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporción rectangular armoniosa */
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden; /* Evita que la imagen se salga de las esquinas redondeadas */
}

/* Efecto visual al pasar el mouse por encima */
.photo-card:hover .photo-placeholder {
    background-color: #e5e5e5;
    border-color: #2e7d32; /* Cambia al verde de tu paleta */
}

/* Fuerza a que la imagen se muestre y llene el contenedor (vence al display:none global) */
.uploaded-image {
    display: block !important; /* OBLIGATORIO para ganarle al display:none del body */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Recorta la imagen para que no se estire */
    border-radius: 6px;
}

/* Estilo del texto debajo de la foto */
.photo-text {
    margin-top: 10px;
    font-size: 0.95rem !important; /* Tamaño legible */
    color: #5d4037 !important;    /* Color café oscuro de tu paleta */
    line-height: 1.4;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

/* --- Grilla de 6 fotos para "¿Qué es la restauración...?" --- */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.puzzle-grid .photo-placeholder {
    aspect-ratio: 1 / 1;
    font-size: 0.9rem;
}

/* --- "Este proceso restaurativo quiere:" como grilla de tarjetas --- */
.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 20px auto 40px;
}

.objetivo-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.objetivo-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.objetivo-card p {
    color: #5d4037;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* --- Tarjetas descargables (Boletines "Dignificando Vidas" y Relatorías) --- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 30px;
    width: 100%;
}

.doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .4s ease;
    overflow: visible;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,.15);
}

.doc-preview {
    position: relative;
    width: 100%;
}

.doc-image {
    width: 100%;
    border-radius: 15px;
    transition: .4s ease;
}

.pdf-hover {
    position: absolute;
    width: 170px;
    height: 220px;
    background: white;
    border-radius: 12px;
    padding: 8px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -40%)
        scale(.7);

    opacity: 0;

    box-shadow: 0 15px 35px rgba(0,0,0,.25);

    transition: .4s ease;
    z-index: 5;
}

.pdf-hover img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}


.pdf-hover span {
    display:block;
    text-align:center;
    margin-top:8px;
    font-size:14px;
    font-weight:bold;
    color:#2e7d32;
}


.doc-card:hover .pdf-hover {

    opacity:1;

    transform:
        translate(-50%, -55%)
        scale(1);

}

html {
    scroll-behavior: smooth;
}

.doc-title{
    font-size:1.15rem;
    font-weight:700;
    color:#2e7d32;
    text-align:center;
    margin-bottom:8px;
}

.doc-subtitle{
    text-align:center;
    color:#666;
    margin-bottom:20px;
}

.doc-date {
    font-size: 0.9rem;
    color: #8d6e63;
    font-style: italic;
}

.doc-btn {

    margin-top:20px;

    padding:12px 25px;

    background:#2e7d32;

    color:white;

    border-radius:30px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s ease;

}

.doc-btn:hover {

    background:#1b5e20;

    transform:scale(1.05);

}
/* --- Placeholders de video (Reel / Video del proceso restaurativo) --- */
.media-placeholder {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    margin: 25px auto;
    border: 2px dashed rgba(46, 125, 50, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ==========================================
   STICKERS
========================================== */

.sticker-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
    margin:40px auto;
}

.sticker-item{
    flex:1;
    max-width:320px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.sticker-img{
    display:block !important;
    width:100%;
    height:auto;
    transition:transform .3s ease;
}

.sticker-img:hover{
    transform:scale(1.05);
}

.video-container{
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.video-container iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Responsive */
/* Responsive */
@media (max-width:768px){

    .sticker-row{
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .sticker-item{
        width: 100%;
        max-width: 280px; /* Ajusta el tamaño si los quieres más grandes o pequeños */
        flex: none;
    }

}

/* --- RESPONSIVES Y QUERIES --- */
@media (max-width: 992px) {
    .card { min-width: 50%; }
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
    .memoria-wrapper { padding: 110px 40px; }
    .objetivos-grid { grid-template-columns: repeat(2, 1fr); }
    .puzzle-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 5%; }
    .card { min-width: 100%; }
    .timeline-embed { height: 450px; }
    .audio-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem !important; }
    p { font-size: 1rem !important; }

    .hero-container { height: 55vw; min-height: 180px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .photo-row { flex-direction: column; } /* Cambia a columna en móviles para que no se aplasten */
    .objetivos-grid { grid-template-columns: 1fr; }
    .puzzle-grid { grid-template-columns: repeat(2, 1fr); }
}



/* Grilla de 6 fotos para "¿Qué es la restauración...?" (dos series de 6) */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.puzzle-grid .photo-placeholder {
    aspect-ratio: 1 / 1;
    font-size: 0.9rem;
}

/* --- "Este proceso restaurativo quiere:" como grilla de tarjetas --- */
.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 20px auto 40px;
}

.objetivo-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.objetivo-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.objetivo-card p {
    color: #5d4037;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* --- Tarjetas descargables (Boletines "Dignificando Vidas" y Relatorías) --- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 30px;
    width: 100%;
}

.doc-card {
    background: #fff;
    border-radius: 15px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

html {
    scroll-behavior: smooth;
}

.doc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
}

.doc-subtitle {
    font-size: 1rem;
    color: #5d4037;
}

.doc-date {
    font-size: 0.9rem;
    color: #8d6e63;
    font-style: italic;
}

.doc-btn {
    margin-top: auto;
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background .3s ease;
}

.doc-btn:hover {
    background: #1b5e20;
}

/* --- APOYO FINAL --- */
.apoyo-final {
    width: 100%;
    text-align: center;
    padding: 70px 20px 50px;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* NUEVA REGLA: Forzar a que el logo sea visible y no se deforme */
.logo-apoyo img {
    display: inline-block !important; /* <--- OBLIGATORIO para ganarle al display:none global */
    max-width: 220px;                 /* Ajusta este ancho en píxeles según qué tan grande quieras el logo */
    height: auto;
}

/* --- Placeholder de video (Reel / Video del proceso restaurativo) --- */
.media-placeholder {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    margin: 25px auto;
    border: 2px dashed rgba(46, 125, 50, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
}

/* --- RESPONSIVES Y QUERIES --- */
@media (max-width: 992px) {
    .card { min-width: 50%; }
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
    .memoria-wrapper { padding: 110px 40px; }
    .objetivos-grid { grid-template-columns: repeat(2, 1fr); }
    .puzzle-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 5%; }
    .card { min-width: 100%; }
    .timeline-embed { height: 450px; }
    .audio-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem !important; }
    p { font-size: 1rem !important; }

    .hero-container { height: 55vw; min-height: 180px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .photo-row { grid-template-columns: 1fr; }
    .objetivos-grid { grid-template-columns: 1fr; }
    .puzzle-grid { grid-template-columns: repeat(2, 1fr); }
}