:root {
    --bg-main: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #FF3B30;
    /* Rojo La Variable */
    --accent-blue: #0A84FF;
    --card-bg: #141414;
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER HERO */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    text-align: center;
}

.brand-tag {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 700;
}

/* EFECTO GLITCH PARA EL TÍTULO */
.main-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    /* Más grande */
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -4px;
    position: relative;
    color: #fff;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    border-top: 1px solid #333;
    padding-top: 20px;
    display: inline-block;
}

.data-badge {
    margin-top: 40px;
    border: 1px solid var(--text-secondary);
    display: inline-flex;
    padding: 10px 30px;
    gap: 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-trigger {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* SECCIONES */
.content-section {
    padding: 100px 10%;
    border-bottom: 1px solid #222;
}

.text-block {
    max-width: 600px;
    margin-bottom: 60px;
}

.text-block.right {
    margin-left: auto;
    text-align: right;
}

.chapter {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* GRÁFICOS Y DATOS */
.chart-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.chart-container.reverse {
    flex-direction: row-reverse;
}

.stat-box {
    flex: 1;
}

.big-number {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
    font-family: var(--font-heading);
}

.label {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1rem;
}

.chart-wrapper {
    flex: 1.5;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 2px;
    border: 1px solid #333;
}

/* GRID FINAL */
.grid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.caption {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* FOOTER */
footer {
    padding: 80px 0;
    text-align: center;
    background: #000;
}

.btn-download {
    display: inline-block;
    margin-top: 30px;
    padding: 20px 50px;
    background: var(--text-primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.btn-download:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

/* ANIMACIONES */
@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .chart-container,
    .grid-stats {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .text-block.right {
        text-align: left;
    }
}
/* --- EFECTO GLITCH --- */
.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 40px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 10px, 0);
    }
}