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

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

/* ===== 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%;
    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: #3e2723;
    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: #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;
}

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