/* Kreia · sistema visual "blueprint" (marca 2026): negro, rejilla técnica, paneles naranjas.
   Común a todas las páginas: tokens, tipografía, botones, barra superior, navegación, pie y cookies. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/assets/fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #0A0A0B;
  --panel: #141416;
  --panel-2: #1A1A1D;
  --line: #26262A;
  --line-soft: rgba(244, 244, 241, .08);
  --text: #F4F4F1;
  --muted: #9C9C97;
  --accent: #FF6F00;
  --accent-ink: #0A0A0B;
  --light: #F4F4F1;
  --green: #8FF2BD;
  --cross: rgba(244, 244, 241, .55);
  --f-head: "Sora", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1360px;
  --gutter: clamp(16px, 2.6vw, 32px);
  --radius: 4px;
  --bar-h: 34px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { display: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--radius); background: var(--light); color: var(--bg); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.kb h1, .kb h2, .kb h3 { margin: 0; font-family: var(--f-head); font-weight: 500; letter-spacing: -.03em; text-transform: none; color: var(--text); }
.kb p { margin: 0; }
.display { font: 500 clamp(40px, 6.6vw, 96px)/.98 var(--f-head); letter-spacing: -.04em; text-wrap: balance; }
.display--md { font-size: clamp(36px, 5.4vw, 76px); }
.display span { display: block; }
.dim { color: var(--muted); }
.h2 { font: 500 clamp(30px, 4vw, 56px)/1.02 var(--f-head); letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow { margin: 0; font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow--ink { color: rgba(10, 10, 11, .7); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 500 15px/1 var(--f-text); letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ff8a2e; }
.btn--light { background: var(--light); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--ink { background: var(--bg); color: var(--text); }
.btn--ink:hover { background: #1f1f22; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions--center { justify-content: center; }

/* ---------- Marcos técnicos con cruces en las esquinas ---------- */
.frame { position: relative; border: 1px solid var(--line); }
.frame::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--cross), var(--cross)) 0 5px / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 5px 0 / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 100% 5px / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) calc(100% - 5px) 0 / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 0 calc(100% - 5px) / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) 5px 100% / 1px 11px,
    linear-gradient(var(--cross), var(--cross)) 100% calc(100% - 5px) / 11px 1px,
    linear-gradient(var(--cross), var(--cross)) calc(100% - 5px) 100% / 1px 11px;
  background-repeat: no-repeat;
}
.dots { background-image: radial-gradient(rgba(244, 244, 241, .14) 1px, transparent 1.4px); background-size: 40px 40px; background-position: 20px 20px; }

/* ---------- Barra de aviso ---------- */
.kb-bar {
  position: relative; z-index: 60; height: var(--bar-h); overflow: hidden;
  display: flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.kb-bar[hidden] { display: none; }
.kb-bar__track {
  display: flex; gap: 64px; width: max-content; padding-left: 24px;
  font: 600 13px/1 var(--f-text); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  animation: kbBar 32s linear infinite;
}
.kb-bar:hover .kb-bar__track { animation-play-state: paused; }
@keyframes kbBar { to { transform: translateX(-50%); } }
.kb-bar__close {
  position: absolute; right: 0; top: 0; height: 100%; width: 44px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-size: 20px; line-height: 1; cursor: pointer;
}

/* ---------- Navegación ---------- */
.kb-nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(820px, calc(100% - 2 * var(--gutter))); margin: 12px auto 0;
  height: 60px; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(26, 26, 29, .92); border: 1px solid var(--line); border-radius: 6px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--f-text);
}
.kb-nav a { text-decoration: none; }
.kb-nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); }
.kb-nav__brand svg { width: 28px; height: 28px; display: block; }
.kb-nav__brand span { font: 700 21px/1 var(--f-head); letter-spacing: -.045em; }
.kb-nav__brand b, .kb-foot__giant b { color: var(--accent); font-weight: 700; }
.kb-nav__links { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.kb-nav__links > a, .kb-nav__drop-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: var(--radius); color: var(--text); opacity: .82; }
.kb-nav__links > a:hover, .kb-nav__drop-btn:hover, .kb-nav__drop:focus-within .kb-nav__drop-btn { opacity: 1; background: rgba(244, 244, 241, .06); }
.kb-nav__links a[aria-current="page"] { opacity: 1; color: var(--accent); }
.kb-nav__drop-btn::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.kb-nav__drop { position: relative; }
.kb-mega {
  position: absolute; left: 50%; top: calc(100% + 14px); width: min(860px, 92vw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.kb-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.kb-nav__drop:hover .kb-mega, .kb-nav__drop:focus-within .kb-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.kb-mega__col { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.kb-mega__col:nth-child(3) { border-right: 0; }
.kb-mega__title { margin: 0 0 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kb-mega__col a { display: block; padding: 10px; border-radius: var(--radius); color: var(--text); }
.kb-mega__col a:hover { background: rgba(244, 244, 241, .05); }
.kb-mega__col a b { display: block; font: 500 15px/1.2 var(--f-head); letter-spacing: -.02em; }
.kb-mega__col a span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.kb-mega__col a[aria-current="page"] b { color: var(--accent); }
.kb-mega__all { grid-column: 1 / -1; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--accent) !important; }
.kb-nav__menu { display: none; width: 44px; height: 44px; padding: 13px; border: 0; border-radius: var(--radius); background: #2a2a2e; cursor: pointer; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center; }
.kb-nav__menu i { width: 5px; height: 5px; background: var(--text); }
.kb-panel { display: none; }

@media (max-width: 860px) {
  .kb-nav__links, .kb-nav__cta { display: none; }
  .kb-nav__menu { display: flex; }
  .kb-nav { padding-right: 8px; }
  .kb-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: calc(100svh - 120px); overflow: auto;
    flex-direction: column; padding: 10px; gap: 2px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  }
  .kb-nav[data-open="true"] .kb-panel { display: flex; }
  .kb-panel a:not(.btn) { padding: 12px; border-radius: var(--radius); color: var(--text); font: 500 19px/1.1 var(--f-head); letter-spacing: -.02em; }
  .kb-panel a.kb-panel__sub { padding: 9px 12px 9px 26px; font: 400 15px/1.2 var(--f-text); color: var(--muted); }
  .kb-panel a[aria-current="page"] { color: var(--accent); }
  .kb-panel .btn { margin-top: 8px; }
}

/* ---------- Pie naranja con nombre gigante ---------- */
.kb-foot { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); font-family: var(--f-text); padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.kb-foot a { color: inherit; text-decoration: none; }
.kb-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kb-foot__top { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; }
.kb-foot__brand svg { width: 56px; height: 56px; display: block; margin-bottom: 20px; }
.kb-foot__brand p { max-width: 34ch; font-size: 15px; line-height: 1.5; }
.kb-foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.kb-foot h3 { margin: 0 0 12px; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(10, 10, 11, .6); }
.kb-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; }
.kb-foot__bar { max-width: var(--wrap); margin: 48px auto 0; padding: 16px 0; border-top: 1px solid rgba(10, 10, 11, .25); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.kb-foot__bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.kb-foot__giant { margin: 0 0 -0.2em; font: 700 clamp(120px, 27vw, 420px)/.8 var(--f-head); letter-spacing: -.06em; text-align: center; white-space: nowrap; color: var(--accent-ink); user-select: none; }
@media (max-width: 960px) { .kb-foot__top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kb-foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Banner de cookies (lo crea script.js) ---------- */
.cookie-consent {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 90;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.cookie-consent.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-consent .cookie-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); box-shadow: none; clip-path: none; color: var(--text); font-family: var(--f-text); }
.cookie-consent .service-kicker { display: none; }
.cookie-consent .cookie-summary h2 { margin: 0 0 6px; font: 500 16px/1.2 var(--f-head); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.cookie-consent .cookie-summary p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie-consent .cookie-summary a { font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent .cookie-options { display: flex; flex-direction: column; gap: 8px; }
.cookie-consent .cookie-options[hidden] { display: none; }
.cookie-consent .cookie-toggle { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: rgba(244, 244, 241, .04); border: 1px solid var(--line); font-size: 13px; }
.cookie-consent .cookie-toggle strong, .cookie-consent .cookie-toggle small { display: block; }
.cookie-consent .cookie-toggle small { color: var(--muted); font-size: 12px; }
.cookie-consent .cookie-toggle input { accent-color: var(--accent); }
.cookie-consent .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body .cookie-consent .cookie-actions .button {
  flex: 1 1 auto; min-height: 36px; height: 36px; padding: 0 14px; border-radius: var(--radius); clip-path: none; box-shadow: none;
  font: 500 13px/1 var(--f-text); letter-spacing: -.01em; text-transform: none;
  background: var(--light); color: var(--bg); border: 1px solid transparent; cursor: pointer;
}
body .cookie-consent .cookie-actions .button::before { display: none; }
body .cookie-consent .cookie-actions .cookie-config { background: transparent; color: var(--text); border-color: var(--line); }
body .cookie-consent .cookie-actions .button[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Fusión con la versión Atmos: remolino WebGL, tono por sección,
   navegación de cristal y botones en píldora sobre la rejilla técnica.
   ===================================================================== */
:root { --pill: 999px; }
.swirl, .tone { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.swirl { z-index: 0; display: block; filter: blur(14px); transform: scale(1.08); }
.tone { z-index: 1; background: var(--bg); opacity: 0; transition: background-color .9s var(--ease), opacity .9s var(--ease); }
.no-webgl .swirl { display: none; }
html.no-webgl body { background: radial-gradient(60% 50% at 75% 85%, rgba(255, 111, 0, .45), transparent 70%), radial-gradient(45% 40% at 15% 15%, rgba(255, 160, 80, .2), transparent 70%), var(--bg); background-attachment: fixed; }
.kb-bar, main, .kb-foot { position: relative; z-index: 2; }

/* Navegación de cristal */
.kb-nav {
  border-radius: var(--pill);
  padding: 0 8px 0 18px;
  background: rgba(20, 20, 22, .42);
  border-color: rgba(244, 244, 241, .12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.kb-nav__links > a, .kb-nav__drop-btn { border-radius: var(--pill); }
.kb-mega, .kb-panel { border-radius: 18px; background: rgba(20, 20, 22, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.kb-mega__col a { border-radius: 10px; }
.kb-nav__menu { border-radius: var(--pill); background: rgba(244, 244, 241, .1); }

/* Botones en píldora */
.btn, body .cookie-consent .cookie-actions .button { border-radius: var(--pill); }
.btn--light { background: var(--light); }
.btn--ghost { background: rgba(20, 20, 19, .45); border-color: rgba(236, 243, 228, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cookie-consent .cookie-card { border-radius: 18px; background: rgba(20, 20, 22, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
