:root {
    --primary: #E20B2D;
    --bg-light: #f5f3f0;
    --bg-dark: #111111;
    --text-on-light: #1a1a1a;
    --text-on-dark: #f0ede8;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.scroll-web-body {
    background-color: var(--bg-dark); /* Fondo oscuro base para evitar flash blanco */
    color: white;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    width: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.progress-bar {
    width: 300px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
}

/* Header Fijo */
.scroll-web-body .navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s;
}

.scroll-web-body .nav-logo span,
.scroll-web-body .nav-menu li a {
    color: white !important;
}

.scroll-web-body .navbar.fixed.scrolled {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
}

/* Hero */
.hero-scroll {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--primary);
    line-height: 0.9;
    text-transform: uppercase;
}

/* Canvas & Sticky Wrap */
.canvas-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    clip-path: circle(0% at 50% 50%); /* Oculto por defecto */
    transition: clip-path 0s; /* El cambio es instantáneo vía JS o animado vía CSS */
}

.canvas-revealed {
    animation: circle-reveal 1.5s ease-out forwards;
}

@keyframes circle-reveal {
    from { clip-path: circle(0% at 50% 50%); }
    to { clip-path: circle(150% at 50% 50%); }
}

#scroll-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay para contraste */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* Secciones de Scroll (Fijas para el efecto de encendido) */
.scroll-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}

.content-box {
    max-width: 500px;
}

.align-left { justify-content: flex-start; text-align: left; }
.align-right { justify-content: flex-end; text-align: right; }

.label {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary) !important;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    color: white !important;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Marquee */
.marquee-wrap {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
}

.marquee-content {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12vw;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 4rem;
    background: rgba(0,0,0,0.88);
    padding: 4rem;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: white;
}

/* CTA */
.btn-primary { background: var(--primary); color: white; padding: 1rem 2rem; text-decoration: none; font-family: var(--font-heading); }
.btn-outline { border: 2px solid white; color: white; padding: 1rem 2rem; text-decoration: none; font-family: var(--font-heading); margin-top: 1rem; display: inline-block; }

/* Contenedor de Scroll (Mantiene el alto) */
#scroll-container {
    height: 800vh;
    background: transparent;
}

/* Responsive y Menú Móvil */
@media (max-width: 768px) {
    .content-box { max-width: 90%; text-align: center !important; }
    .align-left, .align-right { justify-content: center; }
    .stats-grid { flex-direction: column; gap: 2rem; padding: 2rem; }
    .section-title { font-size: 2.5rem; }

    .nav-menu.mobile-hidden {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 17, 17, 0.95);
        padding: 2rem;
        text-align: center;
        backdrop-filter: blur(10px);
    }

    .nav-menu.mobile-hidden.show {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger-icon {
        display: block !important;
        cursor: pointer;
    }

    .hamburger-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
    }
}