/* ============================================================
   CONSTRUVERSE — Design System (main.css)
   Dark premium · Yellow accent · Cinematic motion
   ============================================================ */

/* ─────── VARIABLES ─────── */
:root {
    /* Colores */
    --bg:           #080A0F;
    --bg-elevated:  #0D1117;
    --bg-overlay:   #11161F;
    --surface:      #131A24;
    --surface-2:    #1A2232;
    --border:       rgba(255,255,255,0.08);
    --border-hover: rgba(245,197,24,0.3);

    --text:         #F0EEE9;
    --text-muted:   rgba(240,238,233,0.55);
    --text-subtle:  rgba(240,238,233,0.35);

    --yellow:       #F5C518;
    --yellow-soft:  rgba(245,197,24,0.12);
    --yellow-hover: #FFD230;
    --yellow-dark:  #C49C13;

    --red:          #EF4444;
    --green:        #4ADE80;
    --blue:         #60A5FA;

    /* Tipografía */
    --font-display: 'Barlow Condensed', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Spacing */
    --container:    1200px;
    --container-narrow: 920px;
    --gutter:       2rem;
    --section-py:   clamp(4rem, 8vw, 7rem);

    /* Radius */
    --r-sm: 6px;
    --r:    10px;
    --r-md: 14px;
    --r-lg: 20px;

    /* Shadows */
    --shadow-glow:  0 0 0 1px rgba(245,197,24,0.2), 0 0 60px rgba(245,197,24,0.08);

    /* Motion */
    --ease:         cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --dur:          0.4s;
    --dur-fast:     0.2s;
}

/* ─────── RESET ─────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Selección */
::selection { background: var(--yellow); color: #000; }

/* Focus accesible */
:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─────── TIPOGRAFÍA ─────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #F5C518 0%, #FFD230 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─────── LAYOUT ─────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-py) 0; position: relative; }
.section--elevated { background: var(--bg-elevated); }

.section-header { margin-bottom: 3rem; max-width: 720px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 1rem;
    line-height: 1.7;
}

/* ─────── BUTTONS ─────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--r);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn--primary {
    background: var(--yellow);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 20px -4px rgba(245,197,24,0.3);
}
.btn--primary:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px -6px rgba(245,197,24,0.5);
}
.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn--secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.18);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: var(--yellow-soft);
}
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.83rem; }
.btn__arrow {
    width: 16px; height: 16px;
    transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ─────── BADGES & PILLS ─────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--yellow-soft);
    color: var(--yellow);
    border: 1px solid rgba(245,197,24,0.25);
}
.badge--neutral {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border-color: var(--border);
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─────── CARDS BASE ─────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.card__body { padding: 1.5rem; }

/* ─────── ANIMATIONS ─────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fade-up.is-visible { opacity: 1; transform: none; }

.scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.scale-in.is-visible { opacity: 1; transform: scale(1); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,24,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(245,197,24,0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─────── UTILS ─────── */
.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─────── SCROLLBAR ─────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,197,24,0.3); }

/* ─────── REDUCED MOTION ─────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal], .fade-up, .scale-in { opacity: 1; transform: none; }
}

/* ─────── RESPONSIVE ─────── */
@media (max-width: 768px) {
    :root { --gutter: 1.25rem; }
    .btn { padding: 0.75rem 1.3rem; font-size: 0.88rem; }
}
