/* ============================================================================
   katero. — hoja de estilo de la landing
   Paleta y tipografía derivadas de docs/BRAND_IDENTITY.md (identidad CONGELADA).
   Ningún color fuera de la paleta. El motivo estructural de la página es el
   mismo del isotipo: dos barras iguales TRASLADADAS en paralelo (el desfase).
   ========================================================================== */

:root {
  /* Oscuro = fondo maestro de la marca (Obsidiana) */
  --bg:        #14161F;   /* Obsidiana  */
  --bg-elev:   #1A1D29;
  --ink:       #ECE8E0;   /* Hueso      */
  --muted:     #A6A7CE;   /* Bruma      */
  --accent:    #7D7BF5;   /* Índigo     */
  --accent-dim: rgba(125, 123, 245, 0.14);
  --line:      rgba(236, 232, 224, 0.11);
  --jade:      #4F9D8B;
  --amber:     #CBA34E;

  --measure: 34rem;       /* ~65 caracteres de texto corrido */
  --col: 44rem;
  --r: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:      #ECE8E0;   /* Hueso      */
    --bg-elev: #F5F2EB;
    --ink:     #0E1016;   /* Tinta      */
    --muted:   #4C4D66;   /* Bruma oscurecida para contraste AA */
    --accent:  #5B59D6;   /* Índigo profundo: regla de marca para texto sobre claro */
    --accent-dim: rgba(91, 89, 214, 0.11);
    --line:    rgba(14, 16, 22, 0.13);
    --jade:    #3D7D6E;
    --amber:   #8A6D22;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* ---------- estructura ------------------------------------------------ */

.shell { max-width: var(--col); margin: 0 auto; padding: 0 1.5rem; }

main    { display: block; }
section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.stack       { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.stack > *   { margin: 0; }
.stack--tight{ gap: 0.5rem; }

/* ---------- tipografía ------------------------------------------------ */

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.022em; line-height: 1.12; }
h1 { font-size: clamp(2.15rem, 6.2vw, 3.35rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.6vw, 1.95rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }

p, li { margin: 0; color: var(--muted); max-width: var(--measure); }
p + p { margin-top: 0.9rem; }

.lead {
  font-size: clamp(1.125rem, 2.4vw, 1.3rem);
  color: var(--ink);
  opacity: 0.9;
  line-height: 1.5;
}

strong { color: var(--ink); font-weight: 700; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
ul.plain { list-style: none; padding-left: 0; }

/* Marcador de sección: el desfase del isotipo, en miniatura.
   No es decoración — es la misma traslación paralela de la marca. */
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  max-width: none;
  /* Sin margin-bottom: dentro de .stack lo da el `gap` y dentro de .doc el
     ritmo vertical. Tenerlo aquí sumaba las dos separaciones. */
}
.eyebrow::before {
  content: ""; flex: none; width: 22px; height: 11px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 14px 4px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 8px 7px / 14px 4px no-repeat;
  opacity: 0.9;
}

/* ---------- cabecera / logotipo --------------------------------------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.6rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.035em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--accent); }

.mark { flex: none; width: 1.55em; height: 1.55em; overflow: visible; }
.mark rect { fill: var(--accent); }

/* Las barras nacen superpuestas y se trasladan en paralelo hasta su desfase
   (mismo gesto que el splash de la app, ~560ms). */
@keyframes slide-right { from { transform: translateX(6.25px); } to { transform: translateX(0); } }
@keyframes slide-left  { from { transform: translateX(-6.25px); } to { transform: translateX(0); } }
.mark--animate .bar-top { animation: slide-right 560ms cubic-bezier(0.65, 0, 0.35, 1) both; }
.mark--animate .bar-bot { animation: slide-left  560ms cubic-bezier(0.65, 0, 0.35, 1) both; }

.topbar nav { display: flex; gap: 1.35rem; font-size: 0.9375rem; font-weight: 600; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

/* ---------- hero ------------------------------------------------------ */

.hero { padding-block: 3.5rem 4rem; }
.hero .mark { width: 3.4rem; height: 3.4rem; margin-bottom: 0.9rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-dim); color: var(--accent);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
  max-width: none;
}

/* ---------- tarjetas -------------------------------------------------- */

.cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--bg-elev); border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card p { max-width: none; font-size: 0.9375rem; }

/* Listas con marcador de dos barras (garantías y límites).
   El marcador va POSICIONADO EN ABSOLUTO, no como celda de un grid: si el <li>
   fuera grid, cada <strong> del texto se convertiría en su propio ítem de la
   cuadrícula y caería en la columna del marcador. El contenido queda inline. */
.claims, .limits { list-style: none; padding: 0; gap: 0.9rem; }
.claims li, .limits li {
  position: relative;
  padding-left: 1.95rem;
  max-width: var(--measure);
}
.claims li::before, .limits li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 1.15rem; height: 0.5rem;
}

/* Garantías verificadas. */
.claims li::before {
  background:
    linear-gradient(var(--jade), var(--jade)) 0 0 / 0.72rem 0.19rem no-repeat,
    linear-gradient(var(--jade), var(--jade)) 0.43rem 0.31rem / 0.72rem 0.19rem no-repeat;
}

/* Los límites declarados NO se esconden: mismo peso visual que las garantías. */
.limits li::before {
  background:
    linear-gradient(var(--amber), var(--amber)) 0 0 / 0.72rem 0.19rem no-repeat,
    linear-gradient(var(--amber), var(--amber)) 0.43rem 0.31rem / 0.72rem 0.19rem no-repeat;
}

/* ---------- documento legal ------------------------------------------- */

/* Ritmo vertical UNIFORME: todo hermano recibe separación, sin depender de
   reglas `+` por pareja (que dejaban sin espacio a h1+p, ul+p, .actions+p…). */
.doc { padding-block: 2rem 1rem; }
.doc > * + *  { margin-top: 1.05rem; }
.doc > h1     { margin-top: 0.85rem; }
.doc > h2     { margin-top: 3rem; }
.doc > h3     { margin-top: 2.1rem; }
.doc > h2 + p, .doc > h2 + ul, .doc > h2 + ol,
.doc > h3 + p, .doc > h3 + ul, .doc > h3 + ol { margin-top: 0.75rem; }
.doc .meta { font-size: 0.875rem; }

.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
th { color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--bg-elev); border-radius: var(--r);
  padding: 1.15rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.callout p, .callout li { max-width: none; font-size: 0.9375rem; }
.callout--accent { background: var(--accent-dim); }

/* ---------- acciones -------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.7rem 1.35rem;
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: opacity 120ms ease;
}
.btn:hover { text-decoration: none; opacity: 0.87; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--ghost   { border-color: var(--line); color: var(--ink); }

/* Mismo motivo que .claims: marcador absoluto para no romper el texto inline. */
.steps { counter-reset: step; list-style: none; padding: 0; gap: 1rem; }
.steps li { position: relative; padding-left: 2.5rem; min-height: 1.6rem; max-width: var(--measure); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.08em;
  font-size: 0.8125rem; font-weight: 800; line-height: 1.6rem; text-align: center;
  color: var(--accent); background: var(--accent-dim); border-radius: 50%;
  width: 1.6rem; height: 1.6rem;
}

/* ---------- pie ------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem 3.5rem;
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  font-size: 0.875rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer.site a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--ink); }
footer.site p { font-size: 0.875rem; }
