/* =========================
   BASE LIMPIA
========================= */

html,
body {
    background: var(--bg-main);
    color: var(--text-main);
}

/* =========================
   CONTENEDOR
========================= */

.sb-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   RITMO VISUAL (CLAVE)
========================= */

.section-hero {
    padding: 160px 0 140px;
}

.section-focus {
    padding: 140px 0;
}

.section-normal {
    padding: 110px 0;
}

.section-compact {
    padding: 80px 0;
}

.section-center {
    text-align: center;
}

/* =========================
   TIPOGRAFÍA
========================= */

.hero-title {
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtle {
    font-size: 1.1rem;
    color: var(--text-soft);
}

.reading {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-soft);
}

/* =========================
   ANCHOS (MUY IMPORTANTE)
========================= */

.narrow {
    max-width: 600px;
    margin: 0 auto;
}

.medium {
    max-width: 800px;
    margin: 0 auto;
}

.wide {
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   STACK (ESPACIADO LIMPIO)
========================= */

.stack-lg>*+* {
    margin-top: 40px;
}

.stack-md>*+* {
    margin-top: 24px;
}

.stack-sm>*+* {
    margin-top: 16px;
}

/* =========================
   BOTÓN
========================= */

.btn-soft {
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    padding: 12px 26px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-soft:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   ANIMACIONES
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* =========================
   PARTICULAS PRO
========================= */

#particles-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* modo oscuro más sutil */
.dark-mode #particles-bg {
    opacity: 0.3;
}