:root {
    --gold: #D4AF37;
    --gold-light: #F0C040;
    --gold-glow: rgba(212, 175, 55, 0.5);
    --dark: #000;
    --dark-soft: #080808;
    --glass: rgba(0, 0, 0, 0.95);
    --glass-border: rgba(212, 175, 55, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ── Scrollbar dorada ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ── Layout base ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section { padding: 130px 0; position: relative; }

/* ── Header ── */
header {
    position: fixed; width: 100%; padding: 20px 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    transition: padding 0.4s, background 0.4s;
}
header.scrolled {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.98);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* ── Logo ── */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; font-weight: 900;
    letter-spacing: 4px; color: #fff;
    text-decoration: none; user-select: none;
}
.logo span { color: var(--gold); }

/* ── Nav links ── */
.nav-links { display: flex; gap: 15px; align-items: center; }

.nav-section-link {
    font-family: 'Orbitron'; font-size: 0.7rem; color: rgba(255,255,255,0.75);
    text-decoration: none; letter-spacing: 2px; padding: 10px 12px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

/* Línea inferior animada */
.nav-section-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 12px; right: 12px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-section-link:hover,
.nav-section-link.active {
    color: var(--gold);
    text-shadow: 0 0 12px var(--gold-glow), 0 0 25px rgba(212,175,55,0.2);
}

.nav-section-link:hover::after,
.nav-section-link.active::after {
    transform: scaleX(1);
}

/* Punto dorado cuando está activo */
.nav-section-link.active {
    color: var(--gold-light);
}

/* ── Botones nav ── */
.btn-nav {
    padding: 10px 22px;
    font-family: 'Orbitron'; font-size: 0.68rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-nav:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 12px rgba(212,175,55,0.2);
}

.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 900;
}
.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

/* ── Divider nav ── */
.nav-divider {
    width: 1px; height: 20px;
    background: var(--glass-border);
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column; gap: 6px;
    cursor: pointer; z-index: 1100;
    padding: 5px;
}
.hamburger span {
    display: block; width: 28px; height: 2px;
    background: var(--gold);
    transition: transform 0.35s ease, opacity 0.3s;
    transform-origin: center;
}

/* Hamburger → X cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Botón X en menú móvil ── */
.nav-close {
    display: none;
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 46px; height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    z-index: 10;
}
.nav-close:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
}

/* ── Hero ── */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-photo {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&q=80') center/cover fixed;
    filter: brightness(0.62);
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
}

/* ── Título principal ── */
.hero-title {
    font-family: 'Orbitron';
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--gold-light);
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 50px rgba(212, 175, 55, 0.4),
        0 2px 8px rgba(0,0,0,0.6);
}

/* ── Subtítulo ── */
.sub-text {
    letter-spacing: 5px;
    color: #ffffff;
    margin-top: 18px;
    font-weight: 600;
    font-size: clamp(0.6rem, 2vw, 0.9rem);
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
    opacity: 0.95;
}

/* ── Indicador de scroll ── */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes scrollPulse {
    0%   { opacity: 1; transform: translateY(0) scaleY(1); }
    60%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(14px) scaleY(0.6); }
}

/* ── Footer ── */
#main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.footer-sub {
    opacity: 0.45; margin-top: 10px; font-size: 0.82rem;
}
.footer-tagline {
    color: var(--gold);
    font-family: 'Orbitron';
    font-size: 0.6rem;
    letter-spacing: 4px;
    margin-top: 8px;
}

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active { right: 0; }

    .nav-close { display: flex; }

    /* Links más grandes en móvil */
    .nav-section-link {
        font-size: 1rem;
        letter-spacing: 4px;
        padding: 14px 20px;
        color: rgba(255,255,255,0.85);
    }

    /* Botones más grandes y anchos en móvil */
    .btn-nav {
        padding: 16px 40px;
        font-size: 0.8rem;
        min-width: 220px;
        text-align: center;
        letter-spacing: 2px;
    }

    /* Divider horizontal en móvil */
    .nav-divider {
        width: 80px;
        height: 1px;
        background: var(--glass-border);
    }
}

@media (max-width: 480px) {
    .logo { font-size: 1.4rem; }

    .hero-title {
        font-size: clamp(2rem, 11vw, 3rem);
        letter-spacing: 3px;
    }

    .sub-text {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .btn-nav {
        min-width: 190px;
        padding: 15px 30px;
    }
}