/* Fuentes comunes del sitio que usan la barra y el cierre (y el cuerpo de varias demos) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
/* Sora: la tipografía de Kódika, solo para la barra, el cierre y la pastilla */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/sora-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono.woff2) format("woff2") }
/* Kit común de las demos: barra de aviso, cierre comercial, diálogos y utilidades.
   La barra, el cierre y la pastilla son de Kódika y llevan su marca; lo demás es neutro,
   porque cada demo define su propia identidad en su CSS. */
.dk-skip { position: absolute; left: 12px; top: -80px; z-index: 9999; background: #111; color: #fff; padding: 10px 16px; border-radius: 8px; font: 600 14px/1.2 system-ui, sans-serif }
.dk-skip:focus { top: 12px }
.dk-bar { position: relative; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 clamp(14px, 3vw, 28px); white-space: nowrap; background: #0b0f1a; color: #d3dae6; font: 500 12px/1.3 "Sora", system-ui, sans-serif; letter-spacing: -.005em }
body .dk-bar a { color: #f8fafc; text-decoration: none; white-space: nowrap }
body .dk-bar a:hover { text-decoration: underline }
.dk-bar a:focus-visible, .dk-pill:focus-visible, .dk-btn:focus-visible { outline: 2px solid #6b97ff; outline-offset: 3px; border-radius: 4px }
/* Altura fija y sin saltos de línea: la barra mide lo mismo con la fuente de sistema y con la definitiva (sin CLS). */
.dk-tag { text-align: center; color: #aeb8c8; min-width: 0; overflow: hidden; text-overflow: ellipsis }
.dk-tag b { color: #f8fafc; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-right: 2px }
.dk-cta { font-weight: 600 }
@media (max-width: 640px) { .dk-bar { font-size: 12px } }
@media (max-width: 820px) { .dk-hide-sm { display: none } }
@media (max-width: 480px) { .dk-back { font-size: 0 } .dk-back span { font-size: 14px } }

.dk-end { background: #0b0f1a; color: #f8fafc; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px); font-family: "Sora", system-ui, sans-serif }
.dk-end-in { max-width: 860px; margin: 0 auto; display: grid; gap: 18px }
.dk-mono { font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: #6b97ff; margin: 0 }
body .dk-end h2 { font-family: "Sora", system-ui, sans-serif; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; margin: 0 }
body .dk-end p { color: #c9d2de; margin: 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.6 }
.dk-end-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px }
body .dk-end a.dk-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 100px; background: #2b66f7; color: #fff; font-weight: 600; text-decoration: none; transition: background .3s, color .3s }
body .dk-end a.dk-btn:hover { background: #f8fafc; color: #0b0f1a }
body .dk-end a.dk-btn.ghost { background: transparent; color: #f8fafc; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) }
body .dk-end a.dk-btn.ghost:hover { background: #f8fafc; color: #0b0f1a }
body .dk-end .dk-others a { color: #f8fafc }
body a.dk-pill { position: fixed; z-index: 70; left: 50%; bottom: 16px; translate: -50% 140%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: rgba(11, 15, 26, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f8fafc; font: 500 12.5px/1.2 "Sora", system-ui, sans-serif; text-decoration: none; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: translate .5s cubic-bezier(.16, 1, .3, 1); white-space: nowrap }
body a.dk-pill.in { translate: -50% 0 }

.dk-dot { width: 7px; height: 7px; border-radius: 50%; background: #2b66f7; box-shadow: 0 0 10px #6b97ff }

/* Diálogo base (las demos lo visten) */
dialog.dk-dialog { padding: 0; border: 0; max-width: min(1100px, 100vw - 24px); width: 100%; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain }
dialog.dk-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px) }
dialog.dk-dialog[open] { animation: dkIn .45s cubic-bezier(.16, 1, .3, 1) }
@keyframes dkIn { from { opacity: 0; transform: translateY(24px) } }
.dk-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1 }
html.dk-lock { overflow: hidden }

.dk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }
.dk-demo-note { font-size: .85em; opacity: .8 }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important }
}

/* Apariciones suaves (todas las demos) */
.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s cubic-bezier(.16, 1, .3, 1) }
.js [data-rv]:not(.in) { pointer-events: none }
.js [data-rv].in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none } }

/* El atributo hidden siempre gana (evita estados vacíos visibles por un display de la demo) */
[hidden] { display: none !important }
