/* Style.css - Variables y Configuración Global */
:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --primary-gold: #D4AF37;
    --primary-gold-hover: #B5952F;
    --text-light: #F5F5F7;
    --text-dim: #A0A0A0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

/* =============================================================
   NAVBAR — Clean Rebuild (Mobile-first, production-ready)
   Z-INDEX MAP:
     .encabezado        → 100   (fixed header)
     .nav-overlay       → 200   (semi-transparent backdrop)
     .nav-menu-panel    → 300   (slide-out drawer, fixed to body)
     .hamburger         → 400   (always on top)
   ============================================================= */

/* ---- 1. HEADER SHELL ---- */
.encabezado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    background: transparent;
    /* NO overflow:hidden — would trap the slide-out panel */
}

.encabezado.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 5%;
}

/* Mobile: always show dark background */
@media (max-width: 1024px) {
    .encabezado {
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
        padding: 12px 20px;
    }
}

/* ---- 2. LOGO AREA ---- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    transition: height 0.3s ease, width 0.3s ease;
}

.encabezado.scrolled .logo {
    height: 42px;
    width: 42px;
}

.titulo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.eslogan {
    display: none;
    /* Hidden globally for clean header */
}

/* ---- 3. DESKTOP NAV LINKS ---- */
nav {
    display: flex;
    align-items: center;
    /* No background, no border, no overflow tricks */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0;
    padding: 0;
}

nav::after {
    display: none;
    /* Kill the brown gradient artifact from general.css */
    content: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    display: block;
}

nav ul li a:hover,
nav ul li a.active-link {
    color: var(--primary-gold, #D4AF37);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

/* ---- 4. HAMBURGER BUTTON ---- */
.hamburger {
    /* Hidden on desktop */
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    /* Fixed on body — always above everything */
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 400;
    transition: background 0.3s ease, border-color 0.3s ease;
    /* Force visible */
    pointer-events: auto;
}

.hamburger:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f5e6d3;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease;
    transform-origin: center;
}

/* X animation */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- 5. OVERLAY BACKDROP ---- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: pointer;
    /* NO backdrop-filter: avoids stacking context traps */
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---- 6. SLIDE-OUT MENU PANEL ---- */
.nav-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    height: 100dvh;
    /* dynamic viewport height — handles mobile address bar */
    background: #0e0e0e;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    /* Panel scroll independent of page */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding: 80px 0 40px;
    visibility: hidden;
    pointer-events: none;
}

.nav-menu-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Panel nav links */
.nav-menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu-panel ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu-panel.is-open ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entrance */
.nav-menu-panel.is-open ul li:nth-child(1) {
    transition-delay: 0.06s;
}

.nav-menu-panel.is-open ul li:nth-child(2) {
    transition-delay: 0.11s;
}

.nav-menu-panel.is-open ul li:nth-child(3) {
    transition-delay: 0.16s;
}

.nav-menu-panel.is-open ul li:nth-child(4) {
    transition-delay: 0.21s;
}

.nav-menu-panel.is-open ul li:nth-child(5) {
    transition-delay: 0.26s;
}

.nav-menu-panel.is-open ul li:nth-child(6) {
    transition-delay: 0.31s;
}

.nav-menu-panel.is-open ul li:nth-child(7) {
    transition-delay: 0.36s;
}

.nav-menu-panel ul li a {
    display: block;
    width: 100%;
    padding: 16px 10px;
    color: #f0e0cc;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    background: transparent;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.nav-menu-panel ul li a:hover,
.nav-menu-panel ul li a.active-link {
    color: #D4AF37;
    padding-left: 18px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* ---- 7. MOBILE BREAKPOINT (≤ 1024px) ---- */
@media (max-width: 1024px) {

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide desktop nav links completely */
    nav ul {
        display: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ---- 8. BODY SCROLL LOCK ---- */
body.menu-open {
    overflow: hidden;
}



/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 100px;
    /* Compensation for fixed header */
}

/* Compensación para otras páginas con diferentes clases Hero */
.hero-experiencia,
.hero-central,
.hero-cultura,
.hero-biodiv,
.hero-novedades,
.hero-contacto {
    padding-top: 120px !important;
    /* Un poco más para asegurar */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.1);
    /* Ken Burns effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: applied;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gold);
    color: #000;
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: #000;
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 20px 15px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 18px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}

/* MOBILE SPECIFIC - 480px */
@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 15px 10px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Ensure no horizontal overflow */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Presentation Section (Redesign - Light Theme) --- */
.presentacion {
    padding: 100px 5%;
    background: #fdfbf7;
    /* Cream/Light background as requested */
    text-align: center;
    color: #333;
    /* Dark text for contrast */
}

.titulo-seccion {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #1a1a1a;
    /* Darker heading for better contrast on light bg */
    font-weight: 700;
}

.presentacion-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    /* Increased gap */
    max-width: 1400px;
    margin: 0 auto;
}

.presentacion-texto {
    max-width: 800px;
    text-align: left;
}

.parrafo-movimiento {
    background: #ffffff;
    /* White card background */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.parrafo-movimiento p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    /* Dark gray text */
    font-weight: 400;
}

/* Quote styling */
.cita-alma {
    margin-top: 35px;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-gold);
    /* Keep gold accent */
    font-weight: 600;
    text-align: center;
}

.llamada-accion {
    margin-top: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

/* Image Redesign - Larger & Impactful */
.presentacion-imagen {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.presentacion-imagen img {
    width: 100%;
    max-width: 100%;
    /* Allow full width */
    height: auto;
    max-height: 700px;
    /* Limit height if it gets too tall */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Desktop layout for Presentation */
@media (min-width: 992px) {
    .presentacion-contenido {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 80px;
    }

    .presentacion-texto {
        flex: 1;
        order: 1;
        /* Text on left */
    }

    .presentacion-imagen {
        flex: 1;
        order: 2;
        /* Image on right */
    }
}

/* === FOOTER SECTION === */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    padding: 60px 5% 30px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.iconos-redes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.icono.redondo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.icono.redondo:hover {
    background: var(--primary-gold, #c5a059);
    border-color: var(--primary-gold, #c5a059);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
}

.footer-contacto {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contacto a {
    color: var(--primary-gold, #c5a059);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacto a:hover {
    color: #ffffff;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 15px 0 0;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px 25px;
    }

    .iconos-redes {
        gap: 15px;
    }

    .icono.redondo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}