/* ── RESET & VARIABLES ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold:       #c9a84c;
    --gold-light: #e8d5a3;
    --navy:       #050c1a;
    --cream:      #f5f0e8;
}

html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--cream);
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow-x: hidden;
    cursor: none;
}

/* ── CURSOR ────────────────────────────────────────────────────────── */
#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.6);
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

/* ── VIDEO DE FONDO ────────────────────────────────────────────────── */
#bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.55;
}

/* ── OVERLAY LINTERNA ──────────────────────────────────────────────── */
#torch-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%,
        transparent 0px,
        rgba(5, 10, 25, 0.96) 320px);
}

/* ── CONTENIDO ─────────────────────────────────────────────────────── */
#content {
    position: relative;
    z-index: 2;
}

/* ── NAV ───────────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 10;
    padding: 20px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gradiente que evita que el texto de la página se mezcle con el nav */
    background: linear-gradient(to bottom,
        rgba(5, 10, 25, 0.92) 0%,
        rgba(5, 10, 25, 0.5) 70%,
        transparent 100%);
    padding-bottom: 32px;
}

.nav-home {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gold-light);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
    transition: opacity 0.4s;
}

.nav-home:hover { opacity: 1; cursor: none; }

/* logo pequeño en nav (páginas secundarias) */
.nav-logo {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.25));
}

.nav-links {
    display: flex;
    gap: 44px;
}

.nav-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.45;
    transition: opacity 0.4s, color 0.4s;
}

.nav-links a:hover  { opacity: 1; color: var(--gold); cursor: none; }
.nav-links a.active { opacity: 0.85; color: var(--gold); }

/* ── SEPARADOR ─────────────────────────────────────────────────────── */
.divider {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    margin: 0 auto 52px;
    opacity: 0.35;
}

/* ── REVEAL EN SCROLL ──────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 70px 24px 50px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    color: var(--gold);
    opacity: 0.3;
    text-transform: uppercase;
}

/* ── MENÚ HAMBURGUESA ──────────────────────────────────────────────── */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 11;
}

#menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold-light);
    opacity: 0.65;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease;
    transform-origin: center;
}

nav.open #menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open #menu-toggle span:nth-child(2) { opacity: 0; width: 0; }
nav.open #menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    nav { padding: 22px 20px; }

    /* Sin ratón: overlay fijo y más oscuro para que el texto sea legible */
    #torch-overlay {
        background: rgba(5, 10, 25, 0.82) !important;
        pointer-events: none;
    }

    #menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(5, 10, 25, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 9;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    nav.open .nav-links {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.28em;
        opacity: 0 !important;
        transform: translateY(12px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.4s;
    }

    nav.open .nav-links a:nth-child(1) { opacity: 0.65 !important; transform: translateY(0); transition-delay: 0.06s; }
    nav.open .nav-links a:nth-child(2) { opacity: 0.65 !important; transform: translateY(0); transition-delay: 0.12s; }
    nav.open .nav-links a:nth-child(3) { opacity: 0.65 !important; transform: translateY(0); transition-delay: 0.18s; }
    nav.open .nav-links a:nth-child(4) { opacity: 0.65 !important; transform: translateY(0); transition-delay: 0.24s; }

    nav.open .nav-links a.active { opacity: 1 !important; }
}
