/* ==========================================================================
   KASAGUADUA ULTIMATE HYBRID ENGINE (SPACE-X + NATGEO + SDB) + SKETCH
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --color-black: #000000;
    --color-dark-gray: #111111;
    --color-white: #ffffff;
    --color-light-gray: #f4f4f4;
    --color-brand-green: #73A942; /* Verde Hoja Viva (Reemplaza el Amarillo NatGeo) */
    --color-sdb-green: #1f3d2c;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-black);
    overflow-x: hidden;
    line-height: 1.6;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* TYPOGRAPHY UTILS */
.heading-caps {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
}

.yellow-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-brand-green);
    margin-bottom: 20px;
}

/* ==========================================================
   BUTTONS (SPACEX STYLE)
   ========================================================== */
.btn-sx {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    border: 2px solid var(--color-white);
    color: rgba(0, 75, 115, 1); /* Texto azul por el nuevo fondo blanco */
    background: var(--color-white); /* Fondo de los botones cambiado por blanco */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 75, 115, 1); /* Hover a azul */
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: -1;
}

.btn-sx:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-sx:hover {
    color: var(--color-white);
}

.btn-sx.dark {
    border-color: var(--color-white);
    color: rgba(0, 75, 115, 1);
    background: var(--color-white);
}

.btn-sx.dark::before {
    background-color: rgba(0, 75, 115, 1);
}

.btn-sx.dark:hover {
    color: var(--color-white);
}

/* ==========================================================
   HEADER (SKETCH BASED: LOGO | ESP/ENG | HAMBURGER)
   ========================================================== */
.header-sx {
    position: fixed;
    top: 15px; /* Barra flotante separada del tope simulando un objeto real */
    left: 2%; /* Se ajusta horizontalmente */
    width: 96%;
    padding: 10px 25px; /* Relleno optimizado para una barra de guadua más fina y estética */
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    /* Fondo transparente, la textura va en ::before */
    background: transparent;
    color: var(--color-white);
    border-radius: 30px; /* Forma natural de vara de guadua, más delgada y estilizada */
    box-shadow: 0 12px 25px rgba(0,0,0,0.8); /* Sombra en el fondo para flotar */
    border: none;
    text-shadow: 0 2px 5px rgba(0,0,0,1); /* Para que las letras resalten fuerte contra la corteza */
    overflow: visible; /* Cambiado a visible para que no corte los sub-menús desplegables */
}

/* Pseudo-elemento con la textura de guadua + filtro dorado */
.header-sx::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x;
    border-radius: inherit;
    /* Filtros para convertir verde → dorado/marrón caramelo como bambú seco */
    filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg);
    z-index: -1;
}

.header-sx.scrolled {
    top: 5px;
    padding: 6px 25px; /* Reducción elegante al hacer scroll */
    background: transparent;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.9);
    border: none;
}

.logo-sx {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}
.logo-sx:hover {
    transform: scale(1.05);
}

.logo-sx img {
    height: 65px; /* Altura optimizada y elegante de la guadua */
    transition: var(--transition-fast);
    /* Se quitó el halo blanco a petición del usuario para mejor nitidez */
}

.header-sx.scrolled .logo-sx img {
    height: 55px; /* Reducción sutil al hacer scroll para máxima ergonomía visual */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-switch {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,1); /* Fuerte contraste para no perderse contra la corteza */
}
.lang-switch a {
    opacity: 0.7;
    transition: var(--transition-fast);
}
.lang-switch a.active, .lang-switch a:hover {
    opacity: 1;
    color: var(--color-white);
}
.header-sx.scrolled .lang-switch a.active {
    color: var(--color-white);
    font-weight: 700;
}

.burger-sx {
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: none; /* Ocultar en escritorio */
    text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,1); /* Contraste fuerte */
    font-weight: 600;
}
.burger-sx:hover {
    color: rgba(255, 255, 255, 0.7);
}
.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    width: 32px;
}
.guadua-line {
    width: 100%;
    height: 5px;
    background: 
        url('../assets/images/guadua_horizontal.png') center / auto 140%;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: var(--transition-fast);
    /* Filtro para convertir verde → dorado/marrón caramelo */
    filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg);
}
.burger-sx:hover .guadua-line {
    filter: sepia(0.85) saturate(1.8) brightness(1.1) hue-rotate(-5deg);
}

/* ==========================================================
   PILL NAVIGATION (Secondary under header)
   ========================================================== */
.pill-nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 0 20px;
}

.pill-btn {
    border: none;
    background: transparent;
    padding: 5px 15px;
    font-family: var(--font-body);
    font-size: 1.05rem; /* Aumentado a 1.05rem para mayor prestancia y elegancia visual */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    overflow: visible;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.8); /* Reforzar lectura sobre corteza */
    font-weight: 600; /* Aumentado a 600 (semi-bold) para que resalten bellamente y sean legibles */
}

.pill-btn i {
    font-size: 1.1rem;
    color: var(--color-white);
    opacity: 0.8;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}

.pill-btn .left-leaf {
    margin-right: 8px;
    transform: rotate(-15deg);
}

.pill-btn .right-leaf {
    margin-left: 8px;
    transform: scaleX(-1) rotate(-15deg);
}

/* Animación de las hojas al hacer hover para abrazar el botón */
.pill-btn:hover {
    color: var(--color-white);
    font-weight: 700; /* Hover más robusto para denotar selección */
}

.pill-btn:hover .left-leaf {
    opacity: 1;
    transform: rotate(15deg) scale(1.3);
    color: #73A942; 
}

.pill-btn:hover .right-leaf {
    opacity: 1;
    transform: scaleX(-1) rotate(15deg) scale(1.3);
    color: #73A942;
}

.header-sx.scrolled .pill-btn {
    color: rgba(255, 255, 255, 0.9);
}

.header-sx.scrolled .pill-btn:hover {
    color: var(--color-white);
}

/* Responsividad para pantallas medianas de escritorio (laptops) para evitar desbordes */
@media (min-width: 1251px) and (max-width: 1400px) {
    .pill-btn {
        font-size: 0.95rem; /* Ajuste ergonómico para pantallas intermedias */
        padding: 5px 10px;  /* Espaciado más compacto */
    }
    .pill-nav-container {
        gap: 8px; /* Reducción de la separación */
    }
}

/* ==========================================================
   OFFCANVAS MENU (THE HAMBURGER CONTENT)
   ========================================================== */
.offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(0, 10, 5, 0.7), rgba(0, 10, 5, 0.7)), url('../assets/images/guadua_bg.png') center/cover repeat-y;
    z-index: 2000;
    padding: 50px 30px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    overflow-y: auto;
}

.offcanvas.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    cursor: pointer;
}

.offcanvas-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offcanvas-links a {
    font-family: var(--font-heading);
    font-size: 1.3rem; /* Aumentado de 1.1rem */
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    /* Efecto cilíndrico realista puro de bambú / guadua */
    background: 
        url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x;
    border: none;
    border-radius: 30px;
    padding: 15px 20px;
    color: var(--color-white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    /* Filtro para convertir verde → dorado/marrón caramelo */
    filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg);
}

.offcanvas-links a:hover {
    background: 
        url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x;
    filter: sepia(0.85) saturate(1.8) brightness(1.0) hue-rotate(-5deg);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

.menu-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #888;
    margin-top: -15px;
    margin-bottom: 5px;
    margin-left: 10px;
}

/* ==========================================================
   HERO FULL SCREEN (SKETCH INTEGRATION)
   ========================================================== */
.hero-sx {
    position: relative;
    width: 100vw;
    min-height: 85vh; /* Se redujo de 100vh para evitar zoom excesivo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 2, 0.4); /* subtle dark tint for forest background */
    backdrop-filter: blur(15px); /* nicely blurs the background image */
    -webkit-backdrop-filter: blur(15px);
    z-index: 1; /* above background image */
}

.hero-video-centered {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    height: 100%;
    width: 100%;
    max-width: 600px; /* Constrains it to a portrait/vertical look like Dulima Tour */
    object-fit: cover;
    z-index: 2; /* above the blurred background */
    backface-visibility: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-left: 2px solid rgba(255,255,255,0.05);
    border-right: 2px solid rgba(255,255,255,0.05); /* Soft border frame */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 3; /* above video, transparent gradient to enhance text */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4; /* above all overlays */
    padding: 0 20px;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    margin-top: 50px;
}

.hero-title {
    font-size: 7vw;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.hero-intro-william {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--color-brand-green);
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.hero-intro-william h4 {
    font-family: var(--font-heading);
    color: var(--color-brand-green);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-intro-william p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.hero-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   SECTION: NATGEO STORYTELLING (WHITE BG)
   ========================================================== */
.section-natgeo {
    background: radial-gradient(circle at center, rgba(31, 61, 44, 0.8) 0%, rgba(4, 9, 14, 1) 100%);
    color: var(--color-white);
    padding: 120px 0;
}

.container-ng {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ng-text {
    max-width: 500px;
}

.ng-title {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--color-white);
}

.ng-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.ng-img-wrapper {
    position: relative;
}

.ng-img-wrapper img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0px var(--color-light-gray);
    transition: var(--transition-slow);
}

.ng-img-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--color-brand-green);
    border-left: 4px solid var(--color-brand-green);
    z-index: -1;
}

/* ==========================================================
   SECTION: SPACEX IMMERSIVE BLOCK
   ========================================================== */
.section-sx-immersive {
    position: relative;
    min-height: 80vh; /* Reducido de 100vh para requerir menos zoom de la foto */
    width: 100vw;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    display: flex;
    align-items: flex-end;
    padding: 100px 50px;
    color: var(--color-white);
}

.section-sx-immersive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    z-index: 1;
}

.sx-imm-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.sx-imm-title {
    font-size: 4rem;
    margin-bottom: 10px;
}

.sx-imm-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================
   EXPERIENCES GRID (NATGEO x SDB)
   ========================================================== */
.section-grid {
    background: radial-gradient(circle at center, rgba(31, 61, 44, 0.8) 0%, rgba(4, 9, 14, 1) 100%);
    padding: 120px 0;
}

.grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.grid-title {
    font-size: 2.5rem;
    color: var(--color-white);
}

.ng-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ng-card {
    background: var(--color-white);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.ng-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0px solid var(--color-brand-green);
    transition: var(--transition-fast);
    z-index: 3;
    pointer-events: none;
}

.ng-card:hover::before {
    border-width: 5px;
}

.ng-card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.ng-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
    transition: transform 1s ease;
}

.ng-card:hover .ng-card-img img {
    transform: scale(1.05);
}

.ng-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-brand-green);
    color: var(--color-white); /* White text on leaf green looks better */
    font-family: var(--font-heading);
    font-size: 0.7rem;
    padding: 5px 10px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.ng-card-content {
    padding: 30px;
}

.ng-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-black);
}

.ng-card-desc {
    font-size: 0.95rem;
    color: #666;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.sx-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 60px 50px 20px;
    text-align: center;
}

.sx-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.sx-footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    transition: var(--transition-fast);
}

.sx-footer-links a:hover {
    color: var(--color-white);
}

.sx-footer-copy {
    font-size: 0.75rem;
    color: #555;
    margin-top: 40px;
}

/* ==========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   WOW FACTOR: RECORRIDOS (Topografía y Sendero)
   ========================================================== */
.topo-trail-container {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
    text-align: left;
}
.topo-line-vertical {
    position: absolute;
    top: 0;
    left: 15px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-brand-green), transparent);
    z-index: 1;
}
.topo-node {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}
.topo-node::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -42px;
    width: 15px;
    height: 15px;
    background-color: var(--color-black);
    border: 3px solid var(--color-brand-green);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-fast);
}
.topo-node:hover::before {
    transform: scale(1.5);
    background-color: var(--color-brand-green);
    box-shadow: 0 0 15px var(--color-brand-green);
}

/* ==========================================================
   WOW FACTOR: ALOJAMIENTO (Night Mode / Bio-Glow)
   ========================================================== */
.section-night-mode {
    background-color: #030a14;
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-night-mode::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background-image: radial-gradient(circle at 50% 50%, rgba(9, 30, 48, 0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulseNight 6s infinite alternate;
}
@keyframes pulseNight {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
.bio-glow-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(115, 169, 66, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
}
.bio-glow-card:hover {
    border-color: rgba(115, 169, 66, 0.8);
    box-shadow: 0 0 30px rgba(115, 169, 66, 0.15), inset 0 0 20px rgba(115, 169, 66, 0.05);
    transform: translateY(-5px);
}
.bio-glow-text {
    color: #a3e635; /* Neón sutil */
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.3);
}

/* ==========================================================
   WOW FACTOR: AUTOTOUR (Radial Radar)
   ========================================================== */
.radar-card {
    background: var(--color-white);
    border: 1px solid #eee;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    cursor: crosshair;
}
.radar-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.radar-scanner {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent 0deg, rgba(115, 169, 66, 0.05) 90deg, transparent 90deg);
    animation: radarSweep 4s infinite linear;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.radar-card:hover .radar-scanner {
    opacity: 1;
}
@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.radar-icon {
    font-size: 3rem;
    color: var(--color-brand-green);
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.radar-card:hover .radar-icon {
    transform: scale(1.2) rotate(15deg);
}

/* ==========================================================
   WOW FACTOR: NOSOTROS (Árbol de Tiempo)
   ========================================================== */
.historical-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 20px;
}
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
    border-left: 2px dashed rgba(0,0,0,0.1);
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 10px;
    height: 10px;
    background-color: var(--color-brand-green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(115, 169, 66, 0.2);
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-brand-green);
    margin-bottom: 10px;
    line-height: 1;
}

/* ==========================================================
   WOW FACTOR: FLORA FAUNA (Pokedex Zoom)
   ========================================================== */
.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.pokedex-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1/1;
}
.pokedex-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: grayscale(30%);
}
.pokedex-card:hover .pokedex-img {
    transform: scale(1.15);
    filter: grayscale(0%);
}
.pokedex-scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 10px rgba(115,169,66,0.8);
    opacity: 0;
    z-index: 2;
}
.pokedex-card:hover .pokedex-scan-line {
    animation: scanLine 1.5s infinite;
    opacity: 1;
}
@keyframes scanLine {
    0% { top: 0%; }
    100% { top: 100%; }
}
.pokedex-info {
    position: absolute;
    bottom: -100%; left: 0; width: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px;
    transition: bottom 0.4s ease;
    text-align: left;
    border-top: 2px solid var(--color-brand-green);
}
.pokedex-card:hover .pokedex-info {
    bottom: 0;
}

/* ==========================================================
   WOW FACTOR: RECOMENDACIONES (Survival Dashboard)
   ========================================================== */
.survival-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.glass-panel {
    background: rgba(4, 9, 14, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(115, 169, 66, 0.2);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-fast);
}
.glass-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(115, 169, 66, 0.2);
    border-color: rgba(115, 169, 66, 0.5);
}
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 50px; height: 50px;
    background: linear-gradient(135deg, transparent 50%, var(--color-brand-green) 50%);
    opacity: 0.1;
    transition: var(--transition-fast);
}
.glass-panel:hover::after {
    opacity: 1;
}

/* ==========================================================
   HOMEPAGE MASTERPIECES: 1. RELOJ BIOLÓGICO
   ========================================================== */
.bio-clock-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--color-white); 
    font-size: 0.85rem;
    margin-right: 15px;
    transition: var(--transition-fast);
}
.bio-clock-container:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.bio-clock-icon {
    color: var(--color-white);
    animation: pulseIcon 3s infinite;
}
@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
#bioText {
    display: inline-block;
    color: #e2f4c9; /* Verde muy claro */
    animation: organicBreathe 5s infinite ease-in-out;
}
@keyframes organicBreathe {
    0% { opacity: 0.8; text-shadow: 0 0 5px rgba(115, 169, 66, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(115, 169, 66, 0.9); }
    100% { opacity: 0.8; text-shadow: 0 0 5px rgba(115, 169, 66, 0.2); }
}

/* ==========================================================
   HOMEPAGE MASTERPIECES: 2. AUDIO INMERSIVO
   ========================================================== */
.audio-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(115, 169, 66, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-bounce);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.audio-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-brand-green);
    border-color: var(--color-brand-green);
}
.audio-toggle-btn.playing {
    background: var(--color-brand-green);
    animation: floatingSound 2.5s infinite ease-in-out;
}
@keyframes floatingSound {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 10px rgba(115,169,66,0.5); }
    50% { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 25px rgba(115,169,66,0.9); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 10px rgba(115,169,66,0.5); }
}

/* ==========================================================
   HOMEPAGE MASTERPIECES: 3. MÉTRICAS PARALLAX 3D
   ========================================================== */
.parallax-metrics-section {
    background-image: url('../assets/images/hero.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0;
    position: relative;
}
.parallax-metrics-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 9, 14, 0.7); /* Capa oclusor oscuro oscuro del brand blue */
}
.metric-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.glass-metric-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.glass-metric-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-brand-green);
}
.metric-value {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--color-brand-green);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.metric-label {
    font-size: 1rem;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================
   FAUNA VIVA: LA LEGIÓN DEL QUINDÍO (8 ESPECIES MASIVAS)
   ========================================================== */

/* 1. Cóndor de los Andes (Parallax Fly) */
.fauna-condor { position: absolute; top: 20%; left: -30%; width: 600px; height: 600px; background-image: url('../assets/images/condor.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; opacity: 0.15; z-index: 1; pointer-events: none; animation: condorFly 40s linear infinite; filter: grayscale(100%) contrast(200%); }
@keyframes condorFly { 0% { transform: translateX(0) translateY(0) scale(0.8) rotate(5deg); } 50% { transform: translateX(70vw) translateY(-50px) scale(1) rotate(-5deg); } 100% { transform: translateX(130vw) translateY(100px) scale(0.8) rotate(10deg); } }

/* 2. Mono Aullador (Offcanvas Hanger) */
.fauna-monkey { position: absolute; top: -10px; right: 20px; width: 150px; height: 150px; background-image: url('../assets/images/mono.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; opacity: 0.25; pointer-events: none; transform-origin: top center; animation: monkeySwing 8s ease-in-out infinite; z-index: 0; transition: var(--transition-fast); }
@keyframes monkeySwing { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } 100% { transform: rotate(-5deg); } }

/* 3. Barranquero (El Péndulo) */
.fauna-bird { position: absolute; bottom: -15px; right: 5%; width: 120px; height: 120px; background-image: url('../assets/images/ave.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; opacity: 0.2; pointer-events: none; transform-origin: bottom center; animation: birdTail 3s ease-in-out infinite; }
@keyframes birdTail { 0% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } 100% { transform: rotate(-3deg); } }

/* 4. Ranita Nocturna (Alojamiento) */
.fauna-frog { position: absolute; bottom: 20px; left: 10%; width: 80px; height: 80px; background-image: url('../assets/images/rana.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; opacity: 0.3; pointer-events: auto; cursor: pointer; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 5; }
.fauna-frog:hover { transform: translateY(-80px) translateX(40px) scale(1.2) rotate(20deg); opacity: 0; }

/* 5. Oso de Anteojos (Recorridos) */
.fauna-bear { position: absolute; bottom: 0; right: -20%; width: 300px; height: 250px; background-image: url('../assets/images/oso.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: multiply; opacity: 0.08; pointer-events: none; animation: bearWalk 50s linear infinite; z-index: 0; }
@keyframes bearWalk { 0% { transform: translateX(0); } 100% { transform: translateX(-150vw); } }

/* 6. Colibrí Paramuno (Recorridos / Header) */
.fauna-hummingbird { position: absolute; top: 10%; left: 10%; width: 100px; height: 100px; background-image: url('../assets/images/colibri.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; opacity: 0.2; pointer-events: none; animation: humHover 2s infinite alternate, humFly 15s linear infinite; z-index: 2; }
@keyframes humHover { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes humFly { 0% { left: -10%; } 100% { left: 110%; } }

/* 7. Perezoso (Historia / Timeline) */
.fauna-sloth { position: absolute; top: 30%; right: 15%; width: 180px; height: 180px; background-image: url('../assets/images/perezoso.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: multiply; opacity: 0.15; pointer-events: none; animation: slothHang 10s ease-in-out infinite; z-index: 0; }
@keyframes slothHang { 0% { transform: rotate(0deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(0deg); } }

/* 8. Mariposas Morpho (Autotour / Botánica) */
.fauna-butterfly { position: absolute; top: 50%; right: -10%; width: 80px; height: 80px; background-image: url('../assets/images/mariposas.png'); background-size: contain; background-repeat: no-repeat; mix-blend-mode: multiply; opacity: 0.3; pointer-events: none; animation: butterflyFlutter 6s ease-in-out infinite; z-index: 4; }
@keyframes butterflyFlutter { 0% { transform: translateY(0) translateX(0) scale(1) rotate(-10deg); right: -10%; } 50% { transform: translateY(-50px) translateX(-40vw) scale(1.1) rotate(20deg); } 100% { transform: translateY(20px) translateX(-110vw) scale(0.9) rotate(-10deg); right: 110%; } }

/* ==========================================================
   MEDIA QUERIES (Mobile & Tablets Optimization)
   ========================================================== */
@media (max-width: 1250px) {
    /* HEADER RE-LAYOUT ESTILO DULIMA FOR MOBILE */
    /* HEADER RE-LAYOUT ESTILO NATGEO FOR MOBILE */
    .header-sx { 
        position: relative; 
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; /* Permite que las píldoras bajen a la Fila 2 */
        justify-content: space-between; /* Logo a la izquierda, Elementos a la derecha */
        align-items: center;
        padding: 8px 15px; /* Relleno optimizado en móvil para que la barra de guadua sea más fina y estética */
        border-radius: 15px; /* Redondear en móvil también con bordes más finos */
        margin: 10px; /* Margen para que sea flotante en móvil */
        width: calc(100% - 20px);
        background: transparent !important;
        box-shadow: 
            0 10px 20px rgba(0,0,0,0.8);
        border: none;
        overflow: visible; /* Cambiado a visible para coherencia y evitar cortes en elementos extendidos */
    }

    .header-sx::before {
        content: '' !important;
        display: block !important;
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x;
        border-radius: inherit;
        filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg);
        z-index: -1;
    }
    
    .logo-sx { 
        position: static; 
        order: 1; 
        transform: none;
        display: flex;
        align-items: center;
        margin: 0; 
    }
    .logo-sx img { height: 50px; } /* Logo elegante y nítido alineado a la izquierda con tamaño optimizado */

    /* Al no haber espacio horizontal, ocultamos los botones y activamos el menú hamburguesa */
    .pill-nav-container { 
        display: none !important; 
    }
    
    .burger-sx {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .header-right { 
        position: static;
        order: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        gap: 15px;
    }

    /* BURGER MENU INTEGRADO EN LA CABECERA (Lado Derecho) */
    .burger-sx { 
        position: static;
        display: flex;
        align-items: center;
        padding: 0;
        background: transparent;
        color: var(--color-white);
        width: auto; height: auto;
        border-radius: 0; box-shadow: none; border: none;
        font-size: 1.8rem;
    }
    .burger-sx::after {
        content: 'MENÚ';
        font-family: var(--font-heading);
        font-size: 0.70rem;
        letter-spacing: 1px;
        margin-left: 5px;
        font-weight: 300;
        opacity: 0.8;
    }

    #bioText { display: none; }
    .bio-clock-container {
        padding: 10px;
        border-radius: 50%;
        margin-right: 0;
    }

    .lang-switch { font-size: 1rem; }

    /* OFFCANVAS MEJORADO CON ANIMALES */
    .offcanvas { 
        width: 100%; right: -100%; 
        padding: 80px 40px; 
        background: rgba(31, 61, 44, 0.98); /* Verde profundo corporativo */
        backdrop-filter: blur(20px);
        overflow: hidden; /* Cuidar bordes de animales */
    }
    
    /* Colibrí volando dentro del Menú Abierto */
    .offcanvas::before {
        content: '';
        position: absolute;
        top: 15%;
        left: -100px;
        width: 90px;
        height: 90px;
        background-image: url('../assets/images/colibri.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.15;
        z-index: 0;
        pointer-events: none;
        animation: humHover 2s infinite alternate, humOffcanvasFly 12s linear infinite;
    }
    
    /* Mono colgado en el Menú Abierto */
    .offcanvas::after {
        content: '';
        position: absolute;
        bottom: -20px;
        right: 10%;
        width: 150px;
        height: 150px;
        background-image: url('../assets/images/mono.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.1;
        transform-origin: top center;
        animation: monkeySwing 6s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes humOffcanvasFly { 0% { left: -100px; } 100% { left: 120%; } }

    .offcanvas-links {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Estira los contenedores al ancho completo */
        text-align: left;
        gap: 6px; /* Espaciado muy compacto para que queden uno debajo del otro */
        position: relative; /* Por encima de la fauna */
        z-index: 2;
        padding-left: 5vw; /* Margen respirable a la izquierda */
        padding-right: 5vw;
        margin-top: 40px;
        width: 100%;
    }

    .offcanvas-links a {
        font-family: var(--font-heading);
        font-size: 1.9rem; /* Tamaño optimizado para encajar perfectamente dentro del tubo de guadua */
        font-weight: 600;
        letter-spacing: 0.5px;
        line-height: 1.2;
        color: var(--color-white) !important;
        text-align: left !important; /* Alineación izquierda pura */
        display: flex !important;
        align-items: center;
        width: 100% !important;
        background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x !important; /* ¡Textura hermosa de guadua restaurada! */
        box-shadow: 0 5px 10px rgba(0,0,0,0.5) !important; /* Sombra tridimensional */
        border-radius: 30px !important; /* Forma cilíndrica de bambú */
        filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg) !important; /* Filtro dorado caramelo */
        padding: 10px 20px !important; /* Relleno ergonómico */
        margin: 4px 0 !important; /* Espaciado muy limpio */
        text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important; /* Fuerte contraste */
        border-bottom: none !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .offcanvas-links a:hover {
        filter: sepia(0.85) saturate(1.8) brightness(1.05) hue-rotate(-5deg) !important; /* Brillo dorado al interactuar */
        transform: translateX(6px) !important; /* Desplazamiento 3D ultra suave acelerado por hardware */
        color: var(--color-white) !important;
    }

    /* GRIDS Y CONTENEDOR PRINCIPAL */
    .container-ng { grid-template-columns: 1fr; gap: 40px; }
    .ng-grid { grid-template-columns: 1fr; gap: 25px; }
    
    /* HERO TYPOGRAPHY Y TAMAÑOS */
    .hero-title { font-size: 14vw; margin-bottom: 10px; }
    .hero-subtitle { font-size: 1.1rem; padding: 0 10px; margin-bottom: 30px; }
    .hero-intro-william { padding: 20px; font-size: 0.85rem; }

    .section-sx-immersive { padding: 50px 20px; min-height: 60vh; }
    .sx-imm-title { font-size: 2.5rem; }
    
    /* ANIMALES DECORATIVOS: Solo inhabilitamos los de fondo masivo que generen scroll descontrolado, 
       pero reactivamos los que dan vida al ecosistema si el body tiene overflow-x hidden */
    .fauna-bear { display: none; } /* El oso camina muy horizontalmente */
    /* El resto de animales como mariposas, ranas y aves se preservan para dar el efecto de "Reserva viva" */
    
    /* MÉTRICAS */
    .metric-grid-3d { gap: 20px; }
    .metric-value { font-size: 3rem; }
}

/* ==========================================================
   BESTIARY 3D GRID
   ========================================================== */
.bestiary-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.bestiary-3d-card {
    background: rgba(10, 20, 15, 0.9);
    border: 1px solid rgba(115, 169, 66, 0.2);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-slow);
}

.bestiary-3d-card:hover {
    border-color: rgba(115, 169, 66, 0.6);
    box-shadow: 0 15px 40px rgba(115, 169, 66, 0.2);
    transform: translateY(-5px);
}

.model-container {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle at center, rgba(31, 61, 44, 0.6) 0%, rgba(5, 10, 8, 0.9) 100%);
    position: relative;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    outline: none;
}

.model-loading-ui {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-brand-green);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    opacity: 0.8;
}

.model-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bestiary-info {
    padding: 25px;
    position: relative;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.bestiary-scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--color-brand-green);
    box-shadow: 0 0 10px var(--color-brand-green);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.bestiary-3d-card:hover .bestiary-scan-line {
    transform: scaleX(1);
    animation: scanPulse 2s infinite alternate;
}

@keyframes scanPulse {
    0% { opacity: 0.5; box-shadow: 0 0 5px var(--color-brand-green); }
    100% { opacity: 1; box-shadow: 0 0 15px var(--color-brand-green); }
}

/* ==========================================================
   CÓDICE NATURAL (3D FLIPBOOK)
   ========================================================== */
.flip-book {
    box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 50px rgba(0,0,0,0.5);
    display: none; /* St.PageFlip lo mostrará */
    width: 900px;
    height: 600px;
}

.book-page {
    background-color: #0c1a13;
    color: #e0e0e0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.05); /* Simular bordes de hojas */
}

.page-cover {
    background: linear-gradient(135deg, rgba(31,61,44,1) 0%, rgba(10,20,15,1) 100%);
    color: var(--color-brand-green);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(115, 169, 66, 0.5);
}
.page-cover .page-content {
    border: 2px solid rgba(115, 169, 66, 0.3);
    width: 90%; height: 90%;
    margin: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.page-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-text {
    padding: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 8%);
}
.page-text h3 {
    font-family: var(--font-heading);
    color: var(--color-brand-green);
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height:1.1;
}
.page-text h4 {
    font-family: var(--font-body);
    color: #a3e635;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.9;
}
.page-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d1d1d1;
    margin-bottom: 15px;
}
.page-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    opacity: 0.08;
    font-size: 6rem;
    pointer-events: none;
    color: var(--color-brand-green);
}
.page-nav {
    position: absolute;
    bottom: 30px;
    left: 40px;
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.page-number {
    font-weight: bold;
    color: var(--color-brand-green);
}


/* ==========================================================
   REALISMO CÓDICE NATURAL & RESPONSIVE
   ========================================================== */
.flip-book {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-book { padding: 20px 10px !important; }
    .book-controls span { font-size: 1.1rem !important; margin: 0 10px !important; }
    .book-controls button { padding: 8px 12px !important; font-size: 0.85rem !important; }
    
    .page-text { padding: 25px !important; }
    .page-text h3 { font-size: 1.8rem !important; }
    .page-text h4 { font-size: 0.95rem !important; margin-bottom: 10px !important; }
    .page-text p { font-size: 0.95rem !important; line-height: 1.5 !important; }
    .page-badge { font-size: 4rem !important; bottom: 15px !important; right: 15px !important; }
}

.book-page {
    /* Textura de papel antiguo incrustada sutilmente mediantes SVGs data-URI directamente */
    background-image: 
        radial-gradient(ellipse at center, rgba(31,61,44,0.1) 0%, rgba(10,20,15,0.85) 100%),
        url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.05" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.03"/></svg>');
    border-radius: 2px 8px 8px 2px; /* Esquinas de página más redondas afuera */
    box-shadow: inset -5px 0 20px rgba(0,0,0,0.5), inset 5px 0 10px rgba(255,255,255,0.03); /* Lomo natural */
}

/* Efectos de lomo más profundos */
.page-img {
    box-shadow: inset 15px 0 30px rgba(0,0,0,0.9), inset -2px 0 10px rgba(0,0,0,0.3) !important;
}

.page-text {
    box-shadow: inset -15px 0 30px rgba(0,0,0,0.9), inset 2px 0 10px rgba(0,0,0,0.3) !important;
}

.page-cover {
    border-radius: 4px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.9), 0 5px 15px rgba(0,0,0,0.8) !important;
    background-image: linear-gradient(135deg, rgba(31,61,44,1) 0%, rgba(8,15,10,1) 100%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.08"/></svg>') !important;
}


/* ==========================================================
   FUNDADORES DUAL CARD
   ========================================================== */
.founder-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    transition: var(--transition-slow);
}
.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(115, 169, 66, 0.2);
    border-color: rgba(115, 169, 66, 0.6);
}
.founder-card:hover .founder-media {
    filter: brightness(1.1);
}

/* ==========================================================
   EXPERIENCIAS SWIPER CAROUSEL (3D COVERFLOW)
   ========================================================== */
.tourSwiper {
    width: 100%;
}
.swiper-slide {
    width: 380px !important; /* Base size */
}
.swiper-card-sx {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}
.swiper-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 10s linear;
}
.swiper-card-sx:hover .swiper-bg {
    transform: scale(1.1);
}
.swiper-overlay-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(4,9,14,1) 0%, rgba(4,9,14,0.7) 40%, transparent 100%);
    z-index: 2;
    padding: 50px 30px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: all 0.5s ease;
}
.sw-tag {
    color: var(--color-brand-green);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 500;
}
.sw-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
}
.sw-desc {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 1rem;
}
/* Style Swiper Controls */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.3 !important;
}
.swiper-pagination-bullet-active {
    background: var(--color-brand-green) !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .tourSwiper { height: 500px; padding-top: 10px; padding-bottom: 20px; }
    .swiper-slide { width: 260px; height: 420px; }
    .sw-title { font-size: 1.6rem; }
    .swiper-button-next, .swiper-button-prev { display: flex !important; transform: scale(0.6); background: rgba(0,0,0,0.5); border-radius: 50%; width: 44px; height: 44px; align-items: center; justify-content: center; margin-top: -20px; }
}


/* ==========================================================
   DROPDOWN MENUS (PILL NAV & OFFCANVAS)
   ========================================================== */
.pill-dropdown {
    position: relative;
    display: inline-block;
}
.pill-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(4, 9, 14, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.9);
    z-index: 999;
    border-radius: 10px;
    border: 1px solid rgba(115, 169, 66, 0.3);
    backdrop-filter: blur(10px);
}
.pill-dropdown-content a {
    color: #e0e0e0;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.95rem;
    transition: background 0.3s;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pill-dropdown-content a:last-child {
    border-bottom: none;
}
.pill-dropdown-content a:hover {
    background-color: rgba(115, 169, 66, 0.2);
    color: var(--color-brand-green);
}
.pill-dropdown:hover .pill-dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.offcanvas-dropdown {
    display: block;
    width: 100%;
    text-align: left;
}
.offcanvas-dropdown-toggle {
    display: flex !important;
    justify-content: flex-start !important; /* Icono junto al texto para alineación limpia */
    gap: 12px;
    align-items: center;
    cursor: pointer;
    font-size: 1.9rem !important; /* Mismo tamaño que categorías directas para orden visual */
    font-weight: 600 !important;
    padding: 10px 20px !important; /* Relleno de vara de guadua */
    margin: 4px 0 !important;
    text-transform: uppercase;
    width: 100% !important;
    background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x !important; /* Textura de guadua */
    box-shadow: 0 5px 10px rgba(0,0,0,0.5) !important;
    border-radius: 30px !important;
    filter: sepia(0.85) saturate(1.8) brightness(0.9) hue-rotate(-5deg) !important;
    color: var(--color-white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.offcanvas-dropdown-toggle i {
    font-size: 1.4rem;
    opacity: 0.7;
}
.offcanvas-dropdown-toggle:hover {
    filter: sepia(0.85) saturate(1.8) brightness(1.05) hue-rotate(-5deg) !important;
    transform: translateX(6px) !important;
}
.offcanvas-dropdown-content {
    display: none;
    background: transparent !important; /* Sin fondo oscuro para estilo natural */
    border-left: none !important; /* No requiere guía porque las varas escalonadas marcan la jerarquía */
    margin: 0 !important;
    padding: 0 !important;
}
.offcanvas-dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.offcanvas-dropdown-content a {
    font-size: 1.4rem !important; /* Jerarquía visual impecable para las sub-secciones en móvil */
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: none !important; /* Nombre natural, no todo en mayúsculas */
    display: block !important;
    padding: 8px 15px !important;
    margin: 3px 0 !important;
    margin-left: 20px !important; /* Sangría de segundo nivel: vara desplazada */
    width: calc(100% - 20px) !important;
    background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x !important; /* Vara de guadua más fina */
    box-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
    border-radius: 20px !important;
    filter: sepia(0.85) saturate(1.8) brightness(0.95) hue-rotate(-5deg) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
    border-bottom: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.offcanvas-dropdown-content a:hover {
    filter: sepia(0.85) saturate(1.8) brightness(1.1) hue-rotate(-5deg) !important;
    transform: translateX(6px) !important;
    color: var(--color-white) !important;
}

/* Nested Submenus Pill Nav */
.pill-dropdown-submenu {
    position: relative;
    display: block;
}
.pill-submenu-content {
    display: none;
    position: absolute;
    top: -1px;
    left: 100%;
    margin-left: 0;
    background-color: rgba(4, 9, 14, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.9);
    z-index: 1000;
    border-radius: 10px;
    border: 1px solid rgba(115, 169, 66, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.pill-dropdown-submenu:hover > .pill-submenu-content {
    display: block;
    animation: fadeIn 0.3s ease;
}
.pill-dropdown-submenu > a {
    position: relative;
    padding-right: 30px !important;
}

/* Nested Submenus Offcanvas */
.offcanvas-subdropdown {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 !important; 
}
.offcanvas-subdropdown-toggle {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem !important; /* Mismo tamaño que sub-categorías */
    font-weight: 500 !important;
    padding: 8px 15px !important;
    margin: 3px 0 !important;
    margin-left: 20px !important;
    width: calc(100% - 20px) !important;
    background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
    border-radius: 20px !important;
    filter: sepia(0.85) saturate(1.8) brightness(0.95) hue-rotate(-5deg) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
    text-transform: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.offcanvas-subdropdown-toggle i {
    font-size: 1.2rem;
    opacity: 0.7;
}
.offcanvas-subdropdown-toggle:hover {
    filter: sepia(0.85) saturate(1.8) brightness(1.1) hue-rotate(-5deg) !important;
    transform: translateX(6px) !important;
}
.offcanvas-subdropdown-content {
    display: none;
    background: transparent !important;
    border-left: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.offcanvas-subdropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.offcanvas-subdropdown-content a {
    font-size: 1.2rem !important; /* Letra de tercer nivel fina y elegante */
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    padding: 6px 12px !important;
    margin: 2px 0 !important;
    margin-left: 35px !important; /* Sangría de tercer nivel: vara de guadua desplazada */
    width: calc(100% - 35px) !important;
    background: url('../assets/images/guadua_horizontal.png') left center / auto 140% repeat-x !important; /* Vara de guadua extra fina */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    border-radius: 15px !important;
    filter: sepia(0.85) saturate(1.8) brightness(1.0) hue-rotate(-5deg) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
    display: block !important;
    border-bottom: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.offcanvas-subdropdown-content a:hover {
    filter: sepia(0.85) saturate(1.8) brightness(1.15) hue-rotate(-5deg) !important;
    transform: translateX(6px) !important;
    color: var(--color-white) !important;
}



/* ==========================================================
   FUNDADORES DUAL CARD
   ========================================================== */
.founder-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    transition: var(--transition-slow);
}
.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(115, 169, 66, 0.2);
    border-color: rgba(115, 169, 66, 0.6);
}
.founder-card:hover .founder-media {
    filter: brightness(1.1);
}

/* ==========================================================
   EXPERIENCIAS SWIPER CAROUSEL (3D COVERFLOW)
   ========================================================== */
.tourSwiper {
    width: 100%;
    height: 600px;
    padding-top: 25px;
    padding-bottom: 25px;
}
.swiper-slide {
    width: 350px; /* Base size */
    height: 550px;
}
.swiper-card-sx {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}
.swiper-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 10s linear;
}
.swiper-card-sx:hover .swiper-bg {
    transform: scale(1.1);
}
.swiper-overlay-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(4,9,14,1) 0%, rgba(4,9,14,0.7) 40%, transparent 100%);
    z-index: 2;
    padding: 50px 30px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: all 0.5s ease;
}
.sw-tag {
    color: var(--color-brand-green);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 500;
}
.sw-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
}
.sw-desc {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 1rem;
}
/* Style Swiper Controls */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.3 !important;
}
.swiper-pagination-bullet-active {
    background: var(--color-brand-green) !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .tourSwiper { height: 500px; padding-top: 10px; padding-bottom: 20px; }
    .swiper-slide { width: 260px; height: 420px; }
    .sw-title { font-size: 1.6rem; }
    .swiper-button-next, .swiper-button-prev { display: flex !important; transform: scale(0.6); background: rgba(0,0,0,0.5); border-radius: 50%; width: 44px; height: 44px; align-items: center; justify-content: center; margin-top: -20px; }
}


/* ==========================================================
   ALIANZAS Y CERTIFICACIONES CSS
   ========================================================== */
.aliado-card {
    width: 350px !important;
    height: auto;
    position: relative;
    padding-top: 50px; /* Espacio para que el circulo flote arriba */
}
.aliado-logo-container {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Temporal green gradient until images are uploaded */
    background: linear-gradient(135deg, rgba(115, 169, 66, 1) 0%, rgba(31, 61, 44, 1) 100%);
}
.aliado-text-box {
    background: rgba(31, 61, 44, 0.6); /* Verde oscuro semitransparente como la foto */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 60px 25px 30px 25px; /* Relleno superior para no tapar el logo */
    text-align: center;
    position: relative;
    z-index: 1;
    height: 100%;
}
.aliado-text-box p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .aliado-card { width: 300px !important; }
}


/* ==========================================================
   FLOATING SOCIAL BUBBLE
   ========================================================== */
.floating-social-bubble {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: transparent; /* Totalmente transparente */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 40px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    transition: all 0.5s ease;
}

.floating-social-bubble a {
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Ligeramente más grande */
    height: 48px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición elástica muy fluida */
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.5); /* Fondo redondeado semitransparente como burbuja base */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Colores de Marca Originales para Redes Sociales */
.floating-social-bubble a[data-tooltip="WhatsApp"] { color: #25D366; }
.floating-social-bubble a[data-tooltip="Instagram"] i { 
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.floating-social-bubble a[data-tooltip="TikTok"] { 
    color: #fff;
    filter: drop-shadow(1.5px 1.5px 0px #ff0050) drop-shadow(-1.5px -1.5px 0px #00f2fe);
}
.floating-social-bubble a[data-tooltip="Facebook"] { color: #1877F2; }
.floating-social-bubble a[data-tooltip="Google Business"] { color: #EA4335; }
.floating-social-bubble a[data-tooltip="Airbnb"] { color: #FF5A5F; }
.floating-social-bubble a[data-tooltip="Booking"] { color: #003580; }

.floating-social-bubble a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50px;
    background: var(--color-brand-green);
    color: #000;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    pointer-events: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.floating-social-bubble a:hover {
    transform: translateX(-5px) scale(1.15); /* Rotación removida para texto horizontal */
}

.floating-social-bubble a[data-tooltip="WhatsApp"]:hover { box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); border-color: #25D366; }
.floating-social-bubble a[data-tooltip="Instagram"]:hover { box-shadow: 0 0 15px rgba(225, 48, 108, 0.6); border-color: #E1306C; }
.floating-social-bubble a[data-tooltip="TikTok"]:hover { box-shadow: 0 0 15px rgba(255, 0, 80, 0.6); border-color: #00f2fe; }
.floating-social-bubble a[data-tooltip="Facebook"]:hover { box-shadow: 0 0 15px rgba(24, 119, 242, 0.6); border-color: #1877F2; }
.floating-social-bubble a[data-tooltip="Google Business"]:hover { box-shadow: 0 0 15px rgba(234, 67, 53, 0.6); border-color: #EA4335; }
.floating-social-bubble a[data-tooltip="Airbnb"]:hover { box-shadow: 0 0 15px rgba(255, 90, 95, 0.6); border-color: #FF5A5F; }
.floating-social-bubble a[data-tooltip="Booking"]:hover { box-shadow: 0 0 15px rgba(0, 53, 128, 0.6); border-color: #003580; }

.floating-social-bubble a:hover::after {
    opacity: 1;
    visibility: visible;
    right: 58px;
}

@media (max-width: 768px) {
    .floating-social-bubble {
        top: auto;
        bottom: 25px;
        right: 15px;
        transform: translateY(0);
        padding: 10px 8px;
        gap: 10px;
        background: transparent;
    }
    .floating-social-bubble a {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }
    .floating-social-bubble a::after {
        display: none; /* Quitamos tooltips en movil para no obstruir */
    }
}

/* ==========================================================
   ESTADOS DE NAVEGACIÓN ACTIVA Y BOTÓN VOLVER DINÁMICO
   ========================================================== */

/* Resaltado del botón activo en la barra superior (Pills) */
.pill-btn.active-link {
    color: var(--color-brand-green) !important;
    font-weight: 700 !important;
}
.pill-btn.active-link .left-leaf {
    opacity: 1 !important;
    transform: rotate(15deg) scale(1.3) !important;
    color: var(--color-brand-green) !important;
}
.pill-btn.active-link .right-leaf {
    opacity: 1 !important;
    transform: scaleX(-1) rotate(15deg) scale(1.3) !important;
    color: var(--color-brand-green) !important;
}

/* Resaltado de enlaces activos en el menú hamburguesa (Offcanvas) */
.offcanvas-links a.active-link,
.offcanvas-dropdown-content a.active-link,
.offcanvas-subdropdown-content a.active-link {
    color: var(--color-brand-green) !important;
    font-weight: 700 !important;
    filter: sepia(0) saturate(2.5) brightness(1.2) hue-rotate(50deg) !important; /* Convierte guadua en verde brillante */
    box-shadow: 0 0 15px rgba(115, 169, 66, 0.45) !important;
    border: 1px solid rgba(115, 169, 66, 0.7) !important;
    transform: translateX(8px) !important; /* Desplaza el elemento para denotar selección */
}

/* Indicación de que una categoría padre tiene una página activa adentro */
.offcanvas-dropdown-toggle.parent-active,
.offcanvas-subdropdown-toggle.parent-active {
    border: 1.5px solid rgba(115, 169, 66, 0.5) !important;
    box-shadow: 0 0 12px rgba(115, 169, 66, 0.25) !important;
    font-weight: 700 !important;
}

/* Botón flotante dinámico de volver (para páginas internas) */
.floating-back-btn {
    position: fixed;
    bottom: 25px;
    left: 20px;
    background: rgba(4, 9, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(115, 169, 66, 0.45);
    color: var(--color-brand-green);
    padding: 12px 22px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.floating-back-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}
.floating-back-btn:hover {
    background: var(--color-brand-green);
    color: #04090e;
    box-shadow: 0 15px 30px rgba(115, 169, 66, 0.45);
    transform: translateY(-4px) scale(1.05);
}
.floating-back-btn:hover i {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .floating-back-btn {
        bottom: 20px;
        left: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ================= WHATSAPP MODAL ================= */
.wa-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 9, 14, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.wa-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.wa-modal-content {
    background: #0f1c16;
    border: 1px solid var(--color-brand-green, #73a942);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.wa-modal-overlay.active .wa-modal-content {
    transform: translateY(0);
}
.wa-modal-header {
    background: rgba(115, 169, 66, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(115, 169, 66, 0.2);
}
.wa-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-modal-header h3 i {
    color: #25D366;
    font-size: 1.5rem;
}
.wa-close-btn {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.wa-close-btn:hover {
    color: var(--color-brand-green, #73a942);
}
.wa-modal-body {
    padding: 20px;
}
.wa-modal-body p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.wa-option-btn {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wa-option-btn:last-child {
    margin-bottom: 0;
}
.wa-option-btn:hover {
    background: rgba(115, 169, 66, 0.15);
    border-color: var(--color-brand-green, #73a942);
    transform: translateX(5px);
}
.wa-avatar {
    width: 45px;
    height: 45px;
    background: var(--color-brand-green, #73a942);
    color: #0f1c16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}
.wa-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.wa-details strong {
    color: #fff;
    font-size: 1.1rem;
}
.wa-details span {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.wa-option-btn i.ri-arrow-right-line {
}
.pill-btn.active-link .left-leaf {
    opacity: 1 !important;
    transform: rotate(15deg) scale(1.3) !important;
    color: var(--color-brand-green) !important;
}
.pill-btn.active-link .right-leaf {
    opacity: 1 !important;
    transform: scaleX(-1) rotate(15deg) scale(1.3) !important;
    color: var(--color-brand-green) !important;
}

/* Resaltado de enlaces activos en el menú hamburguesa (Offcanvas) */
.offcanvas-links a.active-link,
.offcanvas-dropdown-content a.active-link,
.offcanvas-subdropdown-content a.active-link {
    color: var(--color-brand-green) !important;
    font-weight: 700 !important;
    filter: sepia(0) saturate(2.5) brightness(1.2) hue-rotate(50deg) !important; /* Convierte guadua en verde brillante */
    box-shadow: 0 0 15px rgba(115, 169, 66, 0.45) !important;
    border: 1px solid rgba(115, 169, 66, 0.7) !important;
    transform: translateX(8px) !important; /* Desplaza el elemento para denotar selección */
}

/* Indicación de que una categoría padre tiene una página activa adentro */
.offcanvas-dropdown-toggle.parent-active,
.offcanvas-subdropdown-toggle.parent-active {
    border: 1.5px solid rgba(115, 169, 66, 0.5) !important;
    box-shadow: 0 0 12px rgba(115, 169, 66, 0.25) !important;
    font-weight: 700 !important;
}

/* Botón flotante dinámico de volver (para páginas internas) */
.floating-back-btn {
    position: fixed;
    bottom: 25px;
    left: 20px;
    background: rgba(4, 9, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(115, 169, 66, 0.45);
    color: var(--color-brand-green);
    padding: 12px 22px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.floating-back-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}
.floating-back-btn:hover {
    background: var(--color-brand-green);
    color: #04090e;
    box-shadow: 0 15px 30px rgba(115, 169, 66, 0.45);
    transform: translateY(-4px) scale(1.05);
}
.floating-back-btn:hover i {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .floating-back-btn {
        bottom: 20px;
        left: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ================= WHATSAPP MODAL ================= */
.wa-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 9, 14, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.wa-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.wa-modal-content {
    background: #0f1c16;
    border: 1px solid var(--color-brand-green, #73a942);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.wa-modal-overlay.active .wa-modal-content {
    transform: translateY(0);
}
.wa-modal-header {
    background: rgba(115, 169, 66, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(115, 169, 66, 0.2);
}
.wa-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-modal-header h3 i {
    color: #25D366;
    font-size: 1.5rem;
}
.wa-close-btn {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.wa-close-btn:hover {
    color: var(--color-brand-green, #73a942);
}
.wa-modal-body {
    padding: 20px;
}
.wa-modal-body p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.wa-option-btn {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wa-option-btn:last-child {
    margin-bottom: 0;
}
.wa-option-btn:hover {
    background: rgba(115, 169, 66, 0.15);
    border-color: var(--color-brand-green, #73a942);
    transform: translateX(5px);
}
.wa-avatar {
    width: 45px;
    height: 45px;
    background: var(--color-brand-green, #73a942);
    color: #0f1c16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}
.wa-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.wa-details strong {
    color: #fff;
    font-size: 1.1rem;
}
.wa-details span {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.wa-option-btn i.ri-arrow-right-line {
    color: var(--color-brand-green, #73a942);
    font-size: 1.2rem;
}

/* ==========================================================
   MOBILE RESPONSIVE FIXES (Global Overrides)
   ========================================================== */
@media (max-width: 768px) {
    /* Huge inline headings clamp */
    h1[style*="font-size"],
    h2[style*="font-size"],
    h3[style*="font-size"],
    .heading-caps[style*="font-size"] {
        font-size: clamp(3.5rem, 14vw, 5rem) !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
    }
    
    /* Document/video section descriptions fix */
    p[style*="max-width"] {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Floating social icons overlapping fix */
    .floating-social-bubble {
        right: 10px !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        z-index: 9999 !important;
    }
    
    .video-showcase-wrapper {
        border-radius: 12px !important;
        width: 92% !important;
    }
}

/* ==========================================================
   MOBILE RESPONSIVE FIXES (Final Overrides)
   ========================================================== */
@media (max-width: 768px) {
    /* Restore grid layouts properly */
    .container-ng { grid-template-columns: 1fr !important; }
    .ng-grid { grid-template-columns: 1fr !important; }

    /* Let main flex sections stack vertically */
    .modal-content, .footer-content, .founder-content, .book-controls {
        flex-direction: column !important;
    }

    /* Feature cards: keep side by side if space allows, stack if not */
    .feature-card, .aliado-card {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    /* Founders & donadores: stack vertically for best photo display */
    .founder-card, .donador-card {
        padding: 10px !important;
        margin: 5px auto !important;
        flex: 1 1 100% !important;
        max-width: 420px !important;
    }

    /* Founders photo-card: single column, portrait aspect */
    .founders-dual-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 16px !important;
    }
    .founder-card.photo-card {
        aspect-ratio: 4/5 !important;
        min-height: 360px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    /* Show info on mobile without hover */
    .photo-card .founder-info-content {
        transform: translateY(0) !important;
    }
    .photo-card .founder-desc {
        opacity: 1 !important;
        transform: none !important;
    }
    .photo-card .decor-corner {
        opacity: 1 !important;
    }

    /* Reduce font size for readability */
    body, p, a, span { font-size: 0.88rem !important; line-height: 1.5 !important; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.1rem !important; }

    .section-ng, .container-ng { padding: 15px 10px !important; }

    /* Menú hamburguesa y offcanvas */
    .offcanvas-links { flex-direction: column !important; }
    .burger-lines { flex-direction: column !important; }
}

/* ================= RESERVATION FORM ================= */
.glass-form-container {
    margin-top: 40px;
    padding: 40px;
    background: rgba(10, 25, 15, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 195, 74, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .half {
    flex: 1;
}
.glass-form label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}
.glass-form input,
.glass-form select,
.glass-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
    outline: none;
    border-color: var(--color-brand-green);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.2);
}
.glass-form input::placeholder,
.glass-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.glass-form select option {
    background-color: #1a1a1a;
    color: #fff;
}
.btn-submit-glass {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}
