:root {
    --primary-green: #2A4033;

    --accent-gold: #C2A378;
    --off-white: #E2D9C5;
    --btn-orange: #B35124;
    --orange-accent: #A6401B;
    --green-light: #D9B68B;
    --btn-hover: #46401B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* NAVBAR BASE (Transparente por defecto) */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 25px 0;
    background-color: transparent;
    transition: background 0.5s ease, padding 0.4s ease, color 0.4s ease;
}

/* ESTADOS DINÁMICOS DEL NAVBAR */
#navbar.scrolled {
    background-color: #243529;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Estado intermedio: Degradado difuminado en Nosotros */
#navbar.state-nosotros {
    background: linear-gradient(to bottom, var(--primary-green) 0%, var(--orange-accent) 100%);
    padding: 15px 0;
}

/* Estado definitivo: Todo hacia abajo se queda con este fondo y letras blancas */
#navbar.state-abajo {
    background-color: var(--orange-accent) !important;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Forzar letras blancas y reajuste de hamburguesa/links hacia abajo */
#navbar.state-abajo .nav-menu a,
#navbar.state-abajo .brand,
#navbar.state-abajo .hamburger span {
    color: #ffffff !important;
    opacity: 0.9;
}

#navbar.state-abajo .nav-menu a:hover,
#navbar.state-abajo .nav-menu a.active {
    color: var(--accent-gold) !important;
    opacity: 1;
}

/* CONTENEDOR PRINCIPAL */
.nav-wrapper {
    max-width: 1600px; /* Más amplio para distribuir mejor los links */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}

/* 1. LOGO CONFIGURACIÓN */
.logo-box {
    display: flex;
    align-items: center;
    max-width: 180px; /* Evita que ocupe espacio excesivo */
    transition: transform 0.3s ease;
}
.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 2. DISTRIBUCIÓN DE LINKS EN ESCRITORIO */
.nav-menu-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}
.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-between; /* Distribuye equitativamente en el ancho */
    max-width: 850px;
}
.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
    padding: 5px 0;
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
    opacity: 1;
    color: var(--accent-gold);
}

/* Elementos exclusivos de móvil ocultos en escritorio */
.mobile-menu-logo, .mobile-menu-footer { display: none; }

/* 3. BOTÓN RESERVAR (END) */
.nav-cta {
    background-color: var(--btn-orange);
    padding: 12px 26px;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background-color: var(--btn-hover);
    transform: scale(1.03);
}

/* 5. HAMBURGUESA (A LA IZQUIERDA) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    order: -1; /* Forzar orden a la izquierda del logo */
    z-index: 2100;
    padding: 10px 0;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    transform-origin: left center;
}

/* ANIMACIÓN HAMBURGUESA A "X" */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(2px, -1px); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(2px, 1px); }

/* HERO RESPONSIVO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 100px 20px 60px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 10;
    width: 100%;
    max-width: 1000px;
}

.since {
    color: var(--accent-gold);
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

/* TÍTULO METALIZADO */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4.8rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 30px;
}

.top-word {
    color: var(--off-white);
    display: block;
    font-size: 7rem;
}

.bottom-word {
    display: block;
    background: linear-gradient(75deg, #a17231 0%, #fff 45%, #fff 55%, #c2a378 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 5.5rem;
    -webkit-text-fill-color: transparent;
    animation: metalFlow 4s linear infinite;
}

@keyframes metalFlow {
    0% {
        background-position: -150% center;
    }

    100% {
        background-position: 150% center;
    }
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--off-white);
    margin-bottom: 10px;
}

.sub-tagline {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    min-width: 180px;
}

.btn-solid {
    background-color: var(--btn-orange);
    color: #fff;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
}

.btn:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
}

/* STATS Y TITILEO */
.hero-footer {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 8vw, 80px);
}

.stat-item h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.blink-container {
    margin-top: 15px;
    animation: titilear 2s infinite;
}

.discover {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.line-blink {
    width: 1px;
    height: 35px;
    margin: 8px auto 0;
    background-color: currentColor;
}

@keyframes titilear {

    0%,
    100% {
        color: var(--blink-color);
    }

    50% {
        color: var(--silver);
    }
}

/* ==========================================
   RESPONSIVO / COMPORTAMIENTO MÓVIL
   ========================================== */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    
    .logo-box img {
        display: none;
    }

    .nav-cta { display: none; } /* Se quita de la barra principal */

    /* Menú desplegable móvil estilo pantalla completa */
    .nav-menu-container {
        position: fixed;
        top: 0;
        left: -100%; /* Escondido a la izquierda */
        width: 100%;
        height: 100vh;
        background: var(--orange-accent);
        margin: 0;
        padding: 40px 20px;
        flex-direction: column;
        justify-content: space-between; /* Espacia el logo arriba, links en medio, footer abajo */
        align-items: center;
        transition: left 0.5s cubic-bezier(0.77,0.2,0.05,1);
        z-index: 2050;
    }

    .nav-menu-container.active {
        left: 0; /* Despliega el menú hacia la derecha */
    }

    /* Logo superior centrado en menú abierto */
    .mobile-menu-logo {
        display: block;
        max-width: 60px;
        margin-top: 20px;
        
    }
    .mobile-menu-logo img { width: 100%; height: auto; }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        max-height: 50vh;
        justify-content: center;
        font-family: 'Cinzel', serif;
    }

    .nav-menu a {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    /* Footer con créditos de WhatsApp */
    .mobile-menu-footer {
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }
    .mobile-menu-footer a {
        color: var(--accent-gold);
        font-size: 0.75rem;
        text-decoration: none;
        letter-spacing: 1px;
        opacity: 0.8;
        transition: opacity 0.3s;
    }
    .mobile-menu-footer a:hover { opacity: 1; }
}