/* --- 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);
}

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

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

/* --- HERO --- */
.hero {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    line-height: 0;
}

.hero-container .overlay-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

/* --- SECCIÓN BIENVENIDA / CONTEXTO --- */
.memoria-antioquia {
    position: relative;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
    background-image: url('/es/Paginas/CompareSer/2026/Proceso-Antioquia/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: #2e7d32; /* Verde bosque representativo */
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.memoria-text {
    font-size: clamp(1.15rem, 1.7vw, 1.65rem);
    line-height: 1.9;
    margin-bottom: 28px;
    color: #212121; /* Gris carbón profundo para máxima legibilidad en fondo claro */
    font-style: italic;
    text-shadow: 0 2px 8px rgba(255, 255, 255, .1);
}

/* --- 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;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.02);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FCCA03; /* Verde oscuro */
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: black;
    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.prev { left: -70px; }
.nav-btn.next { right: -70px; }

/* ===========================================
   BOTONES CARRUSEL - MÓVIL
=========================================== */

@media (max-width: 768px) {

    .nav-btn {

        width: 42px;
        height: 42px;

        top: 58%;

    }

    .nav-btn.prev {

        left: 10px;

    }

    .nav-btn.next {

        right: 10px;

    }

}

/* --- 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: #111111;
    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: #1b5e20;
}

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

/* ===========================
   LIBROS
=========================== */

.libros-container{

    display:flex;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:wrap;

    gap:35px;

    margin-top:60px;

}

.libro-card{

    width:240px;

    cursor:pointer;

    transition:.35s;

    border-radius:10px;

    overflow:hidden;

    box-shadow:
    0 8px 20px rgba(0,0,0,.18);

    background:white;

}

.libro-card img{

    width:100%;

    display:block;

}

.libro-card:hover{

    transform:
    translateY(-8px)
    rotate(-1deg)
    scale(1.03);

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

}


/* ===========================
   MODAL
=========================== */

.modal-libro{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.82);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

    padding:30px;

}

.modal-libro.activo{

    display:flex;

}

.modal-contenido{

    position:relative;

    width:95%;

    max-width:1200px;

    height:90vh;

    background:white;

    border-radius:10px;

    overflow:hidden;

}

.modal-contenido iframe{

    width:100%;

    height:100%;

    border:none;

}

.cerrar-modal{

    position:absolute;

    top:15px;

    right:15px;

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:#1b5e20;

    color:white;

    font-size:24px;

    cursor:pointer;

    z-index:10;

    transition:.25s;

}

.cerrar-modal:hover{

    transform:scale(1.08);

}


/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

    .libros-container{

        gap:25px;

    }

    .libro-card{

        width:180px;

    }

}

@media(max-width:600px){

    .libros-container{

        gap:20px;

    }

    .libro-card{

        width:42%;

        min-width:140px;

    }

    .modal-contenido{

        width:100%;

        height:100vh;

        border-radius:0;

    }

    .modal-libro{

        padding:0;

    }

}

/* ===== SECCIÓN GALERÍA ===== */
.gallery-section {
    background-image: url('/es/Paginas/CompareSer/2026/Proceso-Antioquia/IMG/FONDOS/Galeria_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%;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

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

.gallery-arrow {
    position: absolute;
    top: 40%;
    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: #1b5e20;
}

.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;
}

.apoyo-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 50px 20px;
    text-align: center;
}

.apoyo-texto {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3e2723;
    margin: 0;
}

.logo-apoyo img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.apoyo-disclaimer {
    max-width: 900px;
    margin: 10px auto 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5f5f5f;
    font-style: italic;
}

@media (max-width: 768px) {
    .logo-apoyo img {
        max-width: 220px;
    }

    .apoyo-disclaimer {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 10px;
    }
}

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

/* --- 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: #1b5e20;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

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

.logo-apoyo img {
    max-width: 240px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- 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; }
}

@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; }
}