:root {
  --bg: #FFFFFF; --bg-2: #FAFAF8;
  --ink: #0a0c11; --ink-2: #1f2329; --ink-3: #5b6470; --ink-4: #9aa3b0;
  --line: rgba(10,12,16,0.08); --red: #C8102E; --red-glow: rgba(200,16,46,0.55);
  --site: https://epical.digital;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Satoshi', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-top: 60px; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.font-mono, .article-cat, .article-date, .article-readtime, .cqf-figure-eyebrow { font-family: 'Spline Sans Mono', monospace; }

nav.top { position: fixed; top:0; left:0; right:0; z-index:100; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(10,12,16,0.04); }
nav.top .container { display: flex; align-items: center; gap: 24px; max-width: 1200px; }
.logo-mark { display: inline-flex; align-items: center; gap: 9px; line-height:1; }
.logo-mark .logo-img { display:block; width: 110px; height: 23px; background-color: var(--ink); -webkit-mask: url(/assets/logos/epical-wordmark.png) no-repeat center / contain; mask: url(/assets/logos/epical-wordmark.png) no-repeat center / contain; }
.logo-mark .logo-mark-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red-glow); }
.nav-meta { display:flex; align-items:center; gap: 22px; margin-left: auto; }
.nav-link { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); opacity: 0.85; transition: color .25s, opacity .25s; }
.nav-link:hover { color: var(--ink); opacity: 1; }
.nav-status { display:inline-flex; align-items:center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; }
.status-dot { width: 7px; height: 7px; background: #2BD47F; border-radius: 50%; box-shadow: 0 0 8px rgba(43,212,127,0.5); }
.nav-loc { font-family: 'Satoshi', sans-serif; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.nav-cta { font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: 9px 16px; border-radius: 3px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--ink); color: #fff; }

.article-hero { padding: 132px 0 64px; background: #0a0c11; color: #fff; position: relative; }
.article-hero .container { max-width: 880px; }
.article-meta-top { display:flex; gap: 14px; align-items: center; font-family: 'Satoshi', sans-serif; font-size: 10.5px; font-weight:700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 28px; flex-wrap: wrap; }
.article-cat { color: var(--red); }
.article-date, .article-readtime { color: rgba(255,255,255,0.45); }
.cqf-essay-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--red); border-radius: 100px; font-family: 'Satoshi', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 32px; }
.cqf-essay-chip::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.article-title { font-size: clamp(34px, 5vw, 54px); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: #fff; margin: 0 0 40px; }
.article-title .mark { font-weight: 600; background: linear-gradient(180deg, transparent 65%, var(--red) 65%); padding: 0 6px; }
.article-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,0.82); font-weight: 300; max-width: 760px; margin-bottom: 28px; }
.article-byline { display:flex; align-items:center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.article-byline-text { display:flex; flex-direction: column; gap: 4px; }
.article-byline-name { font-weight: 600; font-size: 15px; color: #fff; }
.article-byline-role { font-family: 'Satoshi', sans-serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }

.article-body { padding: 56px 0; background: #fff; }
.article-body .container { max-width: 760px; }
.article-body p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 22px; }
.article-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); margin: 48px 0 16px; }
.article-body h2 em { font-style: normal; font-weight: 500; background: linear-gradient(180deg, transparent 65%, rgba(200,16,46,0.28) 65%); padding: 0 4px; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; color: var(--ink-2); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }

/* Glosario-specific */
.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; }
.glo-def { margin: 32px 0; padding: 26px 28px; background: var(--bg-2); border-left: 3px solid var(--red); border-radius: 6px; }
.glo-def h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-family: 'Satoshi', sans-serif; }
.glo-def p { margin-bottom: 14px; font-size: 16.5px; line-height: 1.65; }
.glo-def p:last-child { margin-bottom: 0; }
.glo-def--extended { background: #fff; border-left-color: var(--ink); }
.glo-def--extended h2 { color: var(--ink); }

.glo-table { margin: 40px 0; }
.glo-table h2 { margin-bottom: 18px; }
.glo-table table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.glo-table thead { background: #0a0c11; color: #fff; }
.glo-table thead th { padding: 14px 16px; text-align: left; font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.glo-table tbody td, .glo-table tbody th { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.glo-table tbody tr:nth-child(even) { background: var(--bg-2); }
.glo-table tbody th { font-weight: 600; color: var(--ink); width: 32%; }
.glo-table .yes::before { content: "+ "; color: #138a4e; font-weight: 700; font-family: 'Satoshi', sans-serif; }
.glo-table .no::before { content: "- "; color: var(--red); font-weight: 700; font-family: 'Satoshi', sans-serif; }

.glo-vs { margin: 40px 0; }
.glo-vs h2 { margin-bottom: 18px; }
.glo-vs table { width: 100%; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.glo-vs thead { background: #14182a; color: #fff; }
.glo-vs thead th { padding: 14px 16px; text-align: left; font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.glo-vs thead th:last-child { color: #E5C56F; }
.glo-vs tbody td, .glo-vs tbody th { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.glo-vs tbody tr:nth-child(even) { background: var(--bg-2); }
.glo-vs tbody th { font-weight: 600; color: var(--ink); width: 22%; font-size: 13.5px; }

.glo-faq { margin: 48px 0; }
.glo-faq h2 { margin-bottom: 18px; }
.glo-faq details { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; background: #fff; transition: border-color .2s; }
.glo-faq details[open] { border-color: var(--ink); }
.glo-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.glo-faq summary::-webkit-details-marker { display: none; }
.glo-faq summary::after { content: "+"; font-family: 'Satoshi', sans-serif; font-weight: 400; color: var(--red); font-size: 22px; line-height: 1; transition: transform .2s; }
.glo-faq details[open] summary::after { content: "−"; }
.glo-faq details p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

.glo-epical { margin: 56px 0 32px; padding: 32px; background: linear-gradient(135deg, #0a0c11 0%, #14182a 100%); color: #fff; border-radius: 12px; }
.glo-epical h2 { color: #fff; margin: 0 0 16px; font-size: 24px; font-weight: 500; }
.glo-epical p { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.glo-epical .glo-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.glo-epical .glo-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; transition: background .2s, border-color .2s; }
.glo-epical .glo-cta:hover { background: var(--red); border-color: var(--red); }
.glo-epical .glo-cta--primary { background: var(--red); border-color: var(--red); }
.glo-epical .glo-cta--primary:hover { background: #a30d26; border-color: #a30d26; }

.glo-related { margin: 32px 0; padding: 22px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.glo-related h3 { font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.glo-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.glo-related li { margin: 0; }
.glo-related a { color: var(--ink); font-weight: 500; font-size: 15px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.glo-related a:hover { border-bottom-color: var(--red); color: var(--red); }
.glo-related a::before { content: "→ "; color: var(--red); font-family: 'Satoshi', sans-serif; }

.glo-formula { display: inline-block; margin: 8px 0 16px; padding: 12px 18px; background: #0a0c11; color: #E5C56F; font-family: 'Satoshi', sans-serif; font-size: 14px; border-radius: 6px; }

@media (max-width: 640px) {
  .glo-table table, .glo-vs table { font-size: 13.5px; }
  .glo-table tbody td, .glo-table tbody th, .glo-vs tbody td, .glo-vs tbody th { padding: 11px 12px; }
  .glo-epical { padding: 22px; }
}

.article-footer-cta { padding: 56px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.afc-row { display:grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .afc-row { grid-template-columns: 1fr; } }
.afc-block h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.afc-block p { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-bottom: 14px; }
.afc-cta { font-family: 'Satoshi', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.afc-cta:hover { color: var(--red-glow); }
.site-footer { padding: 28px 0; background: #0a0c11; color: rgba(255,255,255,0.45); text-align: center; }
.footer-fine { font-family: 'Satoshi', sans-serif; font-size: 11px; letter-spacing: 0.06em; }
.footer-links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-family: 'Satoshi', sans-serif; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: #fff; }
.article-body table {border-collapse:collapse;width:100%;margin:1.5rem 0}.article-body th,.article-body td {padding:.7rem .4rem;border-bottom:1px solid #ccc;text-align:left}.article-body figure img{display:block;width:100%;height:auto;border-radius:12px}
