:root {
    --bg: #161618; 
    --card: #080808;
    --text: #ffffff;
    --text-muted: #666666;
    --accent: #DEC68D;
    --accent-glow: rgba(222, 198, 141, 0.15);
    --danger: #f43f5e;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    /* Suavizado extremo: 6 pasos de color para una transición sedosa */
    background-image: 
        radial-gradient(circle at 0% 0%, 
            #2F2F31 0%,
            #28282a 20%,
            #212123 40%,
            #1c1c1e 60%,
            #18181a 80%,
            #161618 100%);
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

nav {
    display: block;
    z-index: 50;
}

.nav-container {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem; /* Un poco más grande para legibilidad */
    letter-spacing: 0.4em;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem; /* Aumenta el área de toque en móviles */
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after { width: 100%; }

nav a:hover {
    color: #fff;
}

nav a.active {
    color: #fff;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}
.hero-section {
    text-align: center;
    padding: 8rem 0;
    animation: reveal 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 10vw, 18rem);
    margin: 0;
    color: #fff;
    line-height: 0.9;
}

p {
    line-height: 1.8;
}

section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
    position: relative;
    z-index: 10;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .section-layout {
        grid-template-columns: 280px 1fr;
        gap: 4rem;
    }
}
.section-title {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

@keyframes reveal {
    from { opacity: 0; transform: scale(0.95) translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Optimización para pantallas muy pequeñas */
@media (max-width: 380px) {
    nav ul {
        gap: 1rem;
    }
    .nav-link {
        letter-spacing: 0.2em;
    }
}

/* ==========================================
   EFECTO BRUMA (SMOKE EFFECT)
   ========================================== */
.mist-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1; /* Elevado para ser visible sobre el fondo */
    overflow: hidden;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.mist-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 50% 50%, 
            rgba(222, 198, 141, 0.15) 0%, 
            rgba(222, 198, 141, 0.03) 40%, 
            transparent 70%);
    filter: blur(80px);
}

.mist-1 {
    animation: drift 40s linear infinite;
}

.mist-2 {
    animation: drift 60s linear infinite reverse;
    opacity: 0.7;
}

.mist-3 {
    animation: drift 90s ease-in-out infinite;
    transform-origin: center;
}

@keyframes drift {
    from { transform: rotate(0deg) scale(1) translateX(0); }
    50% { transform: rotate(10deg) scale(1.1) translateX(5%); }
    to { transform: rotate(0deg) scale(1) translateX(0); }
}

/* ==========================================
   DIAL DE ROTACIÓN DE LUZ (HDR CONTROL)
   ========================================== */
.light-dial-container {
    position: absolute;
    bottom: 120px;
    left: 24px;
    z-index: 180;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.light-dial {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(222, 198, 141, 0.4);
    border-radius: 50%;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    touch-action: none; /* Evita scroll al rotar */
    cursor: grab;
}

.light-handle {
    width: 24px;
    height: 24px;
    background: #DEC68D;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
    box-shadow: 0 0 15px #DEC68D;
    pointer-events: none;
    transition: transform 0.1s ease-out, filter 0.2s ease;
}

@media (max-width: 640px) {
    .light-dial-container { bottom: 180px; left: 20px; }
    .light-dial { width: 90px; height: 90px; }
    .light-handle { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; }
}