/* ===== THEME: TallerPro presentation (dark w/ amber + cyan accents) ===== */
:root {
    --bg-0: #070910;
    --bg-1: #0b1020;
    --bg-2: #11182c;
    --bg-3: #1a2440;
    --surface: #1e2847;          /* 100% opaco — no deja que el fondo tiña elementos */
    --surface-strong: #2a3458;
    --surface-2: #252f52;         /* Alternativa ligeramente más clara */
    --border: rgba(148, 165, 204, 0.22);
    --border-strong: rgba(148, 165, 204, 0.38);
    --text: #f1f4fb;
    --text-muted: #a6b3cf;
    --text-soft: #c9d2e5;
    --accent: #ff9a3d;          /* Ámbar principal */
    --accent-2: #4dd2ff;         /* Cyan secundario */
    --accent-3: #a78bfa;         /* Violeta eventos */
    --accent-4: #ff5e7e;         /* Rosa facturación */
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #ef4444;
    --grid-line: rgba(255, 154, 61, 0.06);
    --glow-amber: 0 0 40px rgba(255, 154, 61, 0.35);
    --glow-cyan: 0 0 40px rgba(77, 210, 255, 0.28);
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.35);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --step-0: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
    --step-1: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
    --step-2: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    --step-3: clamp(1.35rem, 1.2rem + 0.8vw, 1.65rem);
    --step-4: clamp(1.85rem, 1.5rem + 1.6vw, 2.6rem);
    --step-5: clamp(2.4rem, 1.8rem + 3vw, 4rem);
    --step-6: clamp(3rem, 2rem + 4.5vw, 5.5rem);
    --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
    --container: 1240px;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-1);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fondo global con grid sutil y gradientes — atenuados para no teñir tarjetas */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 154, 61, 0.08), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(77, 210, 255, 0.06), transparent 60%),
        radial-gradient(1400px 700px at 50% 100%, rgba(167, 139, 250, 0.04), transparent 65%),
        var(--bg-0);
}
body::after {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(148, 165, 204, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 165, 204, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 75%);
    opacity: .7;
    pointer-events: none;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 .5em 0;
    color: var(--text);
}
h1 { font-size: var(--step-6); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: var(--step-5); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--step-4); line-height: 1.18; }
h4 { font-size: var(--step-3); line-height: 1.25; }
h5 { font-size: var(--step-2); line-height: 1.35; }
p { margin: 0 0 1em; color: var(--text-soft); }

code, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    color: var(--text);
    line-height: 1.5;
}

/* Containers */
.container {
    max-width: var(--container);
    padding: 0 24px;
    margin: 0 auto;
}
.container-narrow {
    max-width: 920px;
    padding: 0 24px;
    margin: 0 auto;
}

/* Reveal baseline */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.19,1,.22,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #2b3354; border-radius: 10px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #3a446e; }

::selection { background: rgba(255, 154, 61, 0.35); color: white; }

/* Utility */
.text-gradient {
    background: linear-gradient(120deg, var(--accent) 0%, #ffb56b 38%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.mono-inline { font-family: var(--font-mono); color: var(--accent-2); background: rgba(77, 210, 255, 0.08); padding: 1px 7px; border-radius: 5px; font-size: .88em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Print */
@media print {
    body::before, body::after { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
    .no-print { display: none !important; }
}
