/* IMBA CONSOLE — sitio. Sistema visual "phosphor dark" del diseño del dueño (web/design/web.css),
   con fuentes propias, contraste AA y sin dependencia de JS para mostrar contenido. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg-deep:   oklch(0.115 0.004 250);
  --bg:        oklch(0.145 0.005 250);
  --bg-elev:   oklch(0.195 0.006 250);
  --bg-elev-2: oklch(0.235 0.006 250);
  --bg-sunken: oklch(0.10 0.004 250);

  --line:        oklch(0.27 0.006 250);
  --line-soft:   oklch(0.215 0.006 250);
  --line-strong: oklch(0.36 0.008 250);

  --fg:       oklch(0.96 0.003 250);
  --fg-dim:   oklch(0.76 0.005 250);
  /* El diseño original usaba 0.56 y 0.42: no llegan a 4.5:1. Se suben para texto. */
  --fg-faint: oklch(0.68 0.005 250);
  --fg-ghost: oklch(0.42 0.005 250); /* solo decoración (bordes, guías), nunca texto */

  --active:      oklch(0.83 0.18 145);
  --active-2:    oklch(0.88 0.17 150);
  --active-soft: oklch(0.83 0.18 145 / 0.16);
  --active-line: oklch(0.83 0.18 145 / 0.4);
  --idle:        oklch(0.80 0.15 78);
  --error:       oklch(0.72 0.19 28);
  --info:        oklch(0.78 0.13 235);

  --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Acento de Plane: azul/cian del avión de papel */
  --plane:       #3b8ff2;
  --plane-2:     #74b7ff;
  --plane-cyan:  #46d0c7;
  --plane-soft:  rgba(59, 143, 242, 0.15);
  --plane-line:  rgba(59, 143, 242, 0.42);

  --r-1: 5px; --r-2: 8px; --r-3: 12px; --r-4: 18px; --r-5: 26px;
  --maxw: 1200px;
  --pad: 28px;
  --nav-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-deep); color: var(--fg);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
code, kbd, .mono { font-family: var(--font-mono); }
::selection { background: var(--active-soft); }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--active); color: var(--bg-deep); padding: 10px 16px; border-radius: var(--r-2); font-weight: 600; }
.skip:focus { top: 12px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.glow { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: 0.5; }

/* ── Marca ── */
.mark {
  display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px; width: 18px; height: 18px; flex-shrink: 0;
}
.mark > i { background: var(--fg-dim); border-radius: 2px; }
.mark > i:nth-child(1) { background: var(--fg); }
.mark > i:nth-child(4) { background: var(--active); animation: phosphor 1.8s ease-in-out 3; }
@keyframes phosphor {
  0%, 100% { background: var(--active); box-shadow: 0 0 6px var(--active-soft); }
  50% { background: oklch(0.83 0.18 145 / 0.45); box-shadow: none; }
}
.mark.lg { width: 30px; height: 30px; gap: 3px; }
.mark.xs { width: 13px; height: 13px; }
.wordmark { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.plane-sq { object-fit: cover; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(255,255,255,0.06); }
.plane-sq.sm { width: 20px; height: 20px; border-radius: 5px; }
.plane-sq.lg { width: 48px; height: 48px; border-radius: 12px; }

/* ── Navegación ── */
.nav { position: sticky; top: 0; z-index: 50; background: oklch(0.115 0.004 250 / 0.82); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: var(--nav-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 30px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a, .nav-actions .nav-link { font-size: 14px; color: var(--fg-dim); white-space: nowrap; transition: color 120ms; }
.nav-links a:hover, .nav-actions .nav-link:hover { color: var(--fg); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg-elev); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .i { font-size: 20px; }
.nav-mobile .ic-close { display: none; }
.nav-mobile[open] .ic-open { display: none; }
.nav-mobile[open] .ic-close { display: block; }
.nav-sheet { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--r-3); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); display: grid; }
.nav-sheet a { padding: 12px 14px; border-radius: var(--r-2); font-size: 15px; color: var(--fg-dim); }
.nav-sheet a:hover, .nav-sheet a:focus-visible { background: var(--bg-elev-2); color: var(--fg); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: var(--r-2);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg);
  transition: background 130ms, border-color 130ms, box-shadow 130ms; white-space: nowrap;
}
.btn:hover { background: var(--bg-elev-2); border-color: var(--fg-faint); }
.btn.primary { background: var(--active); color: var(--bg-deep); border-color: var(--active); font-weight: 600; }
.btn.primary:hover { background: var(--active-2); border-color: var(--active-2); box-shadow: 0 0 30px -6px var(--active-soft); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--bg-elev); }
.btn.lg { min-height: 50px; padding: 0 26px; font-size: 15px; border-radius: var(--r-3); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn .i { font-size: 1.1em; transition: transform 150ms; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn.plane { background: var(--plane); border-color: var(--plane); color: var(--bg-deep); font-weight: 600; }
.btn.plane:hover { background: var(--plane-2); border-color: var(--plane-2); box-shadow: 0 0 30px -6px var(--plane-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--active);
  padding: 5px 12px; border: 1px solid var(--active-line); background: var(--active-soft); border-radius: 999px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint);
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.tag.soon { color: var(--plane-2); border-color: var(--plane-line); background: var(--plane-soft); }
.tag.you { color: var(--active); border-color: var(--active-line); background: var(--active-soft); }

/* ── Hero ── */
.hero { position: relative; padding: 92px 0 70px; overflow: hidden; }
.hero .glow.a { width: 620px; height: 620px; background: oklch(0.5 0.18 150 / 0.25); top: -260px; left: 50%; transform: translateX(-50%); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; margin: 22px auto 0; max-width: 17ch; text-wrap: balance; }
.hero h1 .ph { color: var(--active); }
.hero .lede { font-size: clamp(16px, 2vw, 20px); color: var(--fg-dim); max-width: 58ch; margin: 22px auto 0; line-height: 1.55; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { list-style: none; padding: 0; margin: 22px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-faint); }
.hero-note li { display: inline-flex; gap: 8px; align-items: center; text-align: left; }
.hero-note li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--active); flex-shrink: 0; }
.hero-note li[hidden] { display: none; }

/* ── Ventana de la app (ejemplo) ── */
.appwin { position: relative; z-index: 1; max-width: 1000px; margin: 56px auto 0; border-radius: var(--r-5); border: 1px solid var(--line-strong); background: var(--bg); box-shadow: 0 50px 120px -40px rgba(0,0,0,0.8), 0 0 0 1px oklch(0.83 0.18 145 / 0.06); overflow: hidden; }
.appwin-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: linear-gradient(var(--bg-deep), oklch(0.13 0.004 250)); border-bottom: 1px solid var(--line); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.appwin-bar .title { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); letter-spacing: 0.1em; display: flex; gap: 8px; align-items: center; justify-content: center; }
.appwin-bar .spacer { width: 54px; }
.appwin-body { padding: 18px; display: grid; gap: 14px; text-align: left; background: radial-gradient(120% 90% at 50% -10%, oklch(0.18 0.02 150 / 0.25), transparent 60%), var(--bg); }
.appwin-foot { padding: 8px 18px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); background: var(--bg); text-align: right; }
.lane-mini-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; min-width: 0; }
.lane-mini-head .nm { font-family: var(--font-mono); font-weight: 600; font-size: 13px; white-space: nowrap; }
.lane-mini-head .ho { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card-mini { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-3); padding: 11px 12px; display: grid; gap: 8px; min-width: 0; }
.card-mini.stuck { border-color: oklch(0.70 0.20 28 / 0.5); box-shadow: 0 0 24px -10px oklch(0.70 0.20 28 / 0.5); }
.card-mini .top { display: flex; align-items: center; gap: 7px; }
.card-mini .top .nm { font-family: var(--font-mono); font-size: 12px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-mini .top .t { font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); }
.chip-mini { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: var(--r-1); width: fit-content; background: var(--bg-sunken); border: 1px solid var(--line); color: var(--fg-dim); }
.chip-mini.agent { background: var(--active-soft); color: var(--active); border-color: var(--active-line); }
.chip-mini.build { background: oklch(0.80 0.16 70 / 0.16); color: var(--idle); border-color: oklch(0.80 0.16 70 / 0.3); }
.spark-mini { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.spark-mini i { flex: 1; background: var(--fg-ghost); border-radius: 1px; }
.spark-mini i.a { background: var(--active); }
.spark-mini i.id { background: var(--idle); opacity: 0.7; }
.h8 { height: 8%; } .h10 { height: 10%; } .h12 { height: 12%; } .h14 { height: 14%; } .h20 { height: 20%; } .h30 { height: 30%; } .h40 { height: 40%; }
.h50 { height: 50%; } .h60 { height: 60%; } .h70 { height: 70%; } .h75 { height: 75%; } .h80 { height: 80%; } .h85 { height: 85%; } .h90 { height: 90%; }
.card-mini .ln { font-size: 10.5px; color: var(--fg-faint); line-height: 1.35; }
.card-mini .ln.stuck { color: oklch(0.86 0.06 28); font-family: var(--font-mono); }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.sdot.active { background: var(--active); box-shadow: 0 0 6px var(--active-soft); }
.sdot.idle { background: var(--idle); }
.sdot.stale { background: var(--fg-ghost); }
.sdot.stuck { background: var(--error); }

/* ── Secciones ── */
.section { position: relative; padding: 96px 0; }
.section.tight { padding: 68px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 14px 0 0; text-wrap: balance; }
.section-head p { font-size: 17px; color: var(--fg-dim); margin: 16px 0 0; line-height: 1.55; text-wrap: pretty; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--active); }

/* ── Antes / después ── */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.beaft { border: 1px solid var(--line); border-radius: var(--r-4); padding: 26px; background: var(--bg); }
.beaft.before { background: var(--bg-sunken); }
.beaft.after { background: linear-gradient(180deg, oklch(0.18 0.03 150 / 0.3), var(--bg)); border-color: var(--active-line); }
.beaft h3 { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.beaft.before h3 { color: var(--fg-faint); }
.beaft.after h3 { color: var(--active); }
.beaft .sub { font-size: 13px; color: var(--fg-faint); margin-bottom: 18px; }
.beaft ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.beaft li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; font-size: 14.5px; color: var(--fg-dim); align-items: start; }
.beaft li .i { margin-top: 4px; font-size: 14px; }
.beaft.before li .i { color: var(--error); }
.beaft.after li .i { color: var(--active); }
.beaft.after li { color: var(--fg); }
.beaft li code, .faq code, .ans code { font-size: 0.92em; background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* ── Funciones ── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: var(--r-4); padding: 24px; background: var(--bg); transition: border-color 150ms, background 150ms; }
.feat:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.feat .fic { width: 38px; height: 38px; border-radius: var(--r-2); display: grid; place-items: center; margin-bottom: 16px; background: var(--active-soft); border: 1px solid var(--active-line); color: var(--active); font-size: 18px; }
.feat h3 { margin-bottom: 7px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feat p { font-size: 14.5px; color: var(--fg-dim); line-height: 1.55; }
.also { margin-top: 34px; text-align: center; }
.also h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 400; margin-bottom: 14px; }
.also ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.also li { font-size: 13.5px; color: var(--fg-dim); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.also li.net { font-family: var(--font-mono); font-size: 12.5px; }

/* ── Productos ── */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product { border-radius: var(--r-5); padding: 32px; position: relative; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product.console { background: var(--bg); }
.product.plane { background: linear-gradient(165deg, rgba(59,143,242,0.13), var(--bg) 60%); border-color: var(--plane-line); }
.product .pic { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; flex-wrap: wrap; }
.product .pname { font-family: var(--font-mono); font-weight: 600; font-size: 18px; white-space: nowrap; }
.product .price-inline { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); text-align: right; }
.product.plane .price-inline { color: var(--plane-2); }
.product h3 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 8px; font-weight: 600; }
.product .pdesc { font-size: 15px; color: var(--fg-dim); margin-bottom: 20px; line-height: 1.5; }
.product .plist-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 12px; }
.product ul { list-style: none; padding: 0; margin-bottom: 24px; display: grid; gap: 12px; }
.product li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 14.5px; color: var(--fg-dim); align-items: start; }
.product li .i { color: var(--active); margin-top: 4px; font-size: 14px; }
.product.plane li .i { color: var(--plane-cyan); }
.product .foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* ── Precios ── */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 44px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-family: var(--font-mono); color: var(--fg-faint); cursor: pointer; transition: background 120ms, color 120ms; min-height: 36px; display: inline-flex; align-items: center; }
.seg label:hover { color: var(--fg); }
.seg input:checked + label { background: var(--fg); color: var(--bg-deep); font-weight: 600; }
.seg input:checked + label:hover { color: var(--bg-deep); }
.seg input:focus-visible + label { outline: 2px solid var(--info); outline-offset: 2px; }
@supports not selector(:focus-visible) { .seg input:focus + label { outline: 2px solid var(--info); outline-offset: 2px; } }
.save-pill { font-family: var(--font-mono); font-size: 11.5px; color: var(--active); border: 1px solid var(--active-line); background: var(--active-soft); padding: 4px 10px; border-radius: 999px; }
.ptiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.ptier { border: 1px solid var(--line); border-radius: var(--r-4); padding: 28px; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.ptier.plane-tier { border-color: var(--plane-line); background: linear-gradient(180deg, rgba(59,143,242,0.16), var(--bg) 55%); box-shadow: 0 30px 80px -40px rgba(59,143,242,0.45); }
.ptier .badge-top { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--plane); color: var(--bg-deep); font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ptier .pt-name { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 600; font-size: 16px; }
.ptier .pt-desc { font-size: 13.5px; color: var(--fg-dim); margin: 10px 0 20px; min-height: 40px; line-height: 1.45; }
.ptier .pt-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ptier .pt-price .amt { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ptier .pt-price .per { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); }
.ptier .pt-sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); margin-top: 6px; min-height: 36px; line-height: 1.45; }
.ptier .pt-cta { margin: 22px 0; }
.ptier .pt-cta .btn { width: 100%; }
.ptier .pt-feats { list-style: none; padding: 0; display: grid; gap: 11px; }
.ptier .pt-feats li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--fg-dim); align-items: start; }
.ptier .pt-feats .i { color: var(--active); margin-top: 4px; font-size: 13px; }
.ptier.plane-tier .pt-feats .i { color: var(--plane-cyan); }
.ptier .pt-feats .head { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); grid-column: 1 / -1; margin-top: 2px; }
.price-note { text-align: center; font-size: 13.5px; color: var(--fg-faint); margin-top: 28px; max-width: 70ch; margin-inline: auto; }
/* Toggle mensual/anual sin JS: el radio marcado decide qué precio se ve. */
.py { display: none; }
#precios:has(#bill-year:checked) .pm { display: none; }
#precios:has(#bill-year:checked) .py { display: inline; }
#precios:has(#bill-year:checked) .py.blk { display: block; }
.pm.blk { display: block; }

/* ── Descargas ── */
.dl-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-4); padding: 20px 24px; background: var(--bg); }
.dl.is-you { border-color: var(--active-line); background: linear-gradient(180deg, oklch(0.18 0.03 150 / 0.3), var(--bg)); }
.dl h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl .you { display: none; }
.dl.is-you .you { display: inline-flex; }
.dl .desc { font-size: 14px; color: var(--fg-dim); margin-top: 2px; }
.dl .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); margin-top: 6px; overflow-wrap: anywhere; line-height: 1.5; }
.dl .meta:empty { display: none; }
.reqs { text-align: center; color: var(--fg-dim); font-size: 14.5px; margin: 26px auto 0; max-width: 70ch; }
.reqs code, .first-grid code.inline { font-size: 0.92em; background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

.first-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.first-grid > div { border: 1px solid var(--line); border-radius: var(--r-4); padding: 24px; background: var(--bg); min-width: 0; }
.first-grid h3 { font-size: 17px; margin-bottom: 12px; font-weight: 600; }
.first-grid ol { padding-left: 1.2em; display: grid; gap: 12px; font-size: 14.5px; color: var(--fg-dim); }
.first-grid strong { color: var(--fg); font-weight: 600; }
.cmd { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-2); }
.cmd code { flex: 1; padding: 10px 12px; font-size: 12px; overflow-x: auto; white-space: pre; min-width: 0; color: var(--fg); }
.cmd button { flex-shrink: 0; padding: 0 12px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); border-left: 1px solid var(--line); min-width: 74px; }
.cmd button:hover { color: var(--fg); background: var(--bg-elev); }
.auto-note { text-align: center; color: var(--fg-dim); margin: 28px auto 0; max-width: 70ch; font-size: 14.5px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 16.5px; font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: linear-gradient(var(--active), var(--active)) center / 100% 2px no-repeat, linear-gradient(var(--active), var(--active)) center / 2px 100% no-repeat; transition: transform 150ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 4px 24px; color: var(--fg-dim); font-size: 15px; line-height: 1.6; max-width: 64ch; }
.faq .ans a { color: var(--active); text-decoration: underline; text-underline-offset: 3px; }

/* ── Banda CTA ── */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--active-line); border-radius: var(--r-5); background: linear-gradient(160deg, oklch(0.2 0.05 150 / 0.5), var(--bg-deep) 70%); padding: 64px 40px; text-align: center; }
.cta-band .glow { width: 500px; height: 400px; background: oklch(0.5 0.18 150 / 0.3); top: -200px; left: 50%; transform: translateX(-50%); }
.cta-band h2 { position: relative; font-size: clamp(26px, 4vw, 42px); letter-spacing: -0.02em; margin-bottom: 14px; font-weight: 600; text-wrap: balance; }
.cta-band p { position: relative; color: var(--fg-dim); font-size: 17px; margin: 0 auto 30px; max-width: 52ch; }
.cta-band .hero-cta { position: relative; margin-top: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .tag-line { color: var(--fg-faint); font-size: 13.5px; margin-top: 14px; max-width: 34ch; line-height: 1.5; }
.footer-col h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 10px; font-weight: 400; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-dim); padding: 6px 0; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Documentos (legales, novedades) y 404 ── */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.doc .wrap { max-width: 820px; }
.prose { color: var(--fg-dim); line-height: 1.7; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; font-weight: 600; margin-bottom: 1.2rem; color: var(--fg); text-wrap: balance; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; font-weight: 600; color: var(--fg); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3rem 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--active); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border: 1px solid var(--line); background: var(--bg-elev); border-radius: var(--r-3); padding: .9rem 1.1rem; }
.prose blockquote p { margin: 0; }
.prose code { font-size: .88em; background: var(--bg-elev); border: 1px solid var(--line); padding: .05rem .35rem; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-3); padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-elev); color: var(--fg); }
.release { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; padding-top: 0; }
.release-meta { color: var(--fg-faint); font-family: var(--font-mono); font-size: .85rem; margin-bottom: .6rem; }
.center-404 { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; padding: 4rem var(--pad); }
.center-404 h1 { font-size: clamp(3rem, 12vw, 7rem); color: var(--active); font-weight: 600; line-height: 1; }
.center-404 p { color: var(--fg-dim); }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .nav-inner { gap: 20px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 920px) {
  .nav-links, .nav-actions .nav-link { display: none; }
  .nav-mobile { display: block; }
  .fgrid, .ptiers, .first-grid { grid-template-columns: 1fr; }
  .split2, .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  .ptier .pt-desc, .ptier .pt-sub { min-height: 0; }
  .ptiers { max-width: 560px; margin-inline: auto; }
  .ptier.plane-tier { margin-top: 12px; }
}
@media (max-width: 620px) {
  .cards-mini { grid-template-columns: 1fr; }
  .cards-mini .card-mini:nth-child(3) { display: none; }
  .appwin { margin-top: 40px; border-radius: var(--r-4); }
  .appwin-body { padding: 14px; }
}
@media (max-width: 560px) {
  :root { --pad: 18px; --nav-h: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
  .hero-cta .btn { width: 100%; }
  .hero-note { flex-direction: column; align-items: center; gap: 8px; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 10px; }
  .section-head { margin-bottom: 36px; }
  .product, .ptier, .beaft, .feat { padding: 22px; }
  .cta-band { padding: 44px 22px; }
  .dl { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .dl .btn { width: 100%; }
  .product .price-inline { margin-left: 0; width: 100%; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .btn, .seg, .card-mini, .feat, .ptier, .product, .dl { border: 1px solid CanvasText; }
  .seg input:checked + label { outline: 2px solid Highlight; forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
.also .nets { margin-top: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.appwin-body { grid-template-columns: minmax(0, 1fr); }
.appwin-body > div, .lane-mini-head .ho, .first-grid li, .cmd { min-width: 0; }
.first-grid ol { grid-template-columns: minmax(0, 1fr); }
.first-grid .cmd code { max-width: 100%; }
.hero h1 { max-width: 20ch; font-size: clamp(36px, 5.6vw, 68px); }
.hero h1 .ph { display: block; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.prose .table-wrap table { display: table; margin: 0; min-width: 100%; }
.sheet-dl { display: none; }
@media (max-width: 380px) {
  .wordmark { font-size: 13px; letter-spacing: 0.08em; }
  .nav-actions .btn { display: none; }
  .sheet-dl { display: block; color: var(--active) !important; }
  .nav-sheet { right: -8px; }
}

/* Descargas: con SO detectado, solo la fila propia queda como primaria. */
.dl-list.has-you .dl:not(.is-you) .btn.primary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.first-grid .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose h1 { line-height: 1.1; }
.prose h2, .prose h3 { line-height: 1.25; }
.verify { text-align: center; color: var(--fg-dim); font-size: 13.5px; margin: 12px auto 0; max-width: 70ch; }
.verify code { font-size: 0.92em; background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
@media (min-width: 600px) { .verify code { white-space: nowrap; overflow-wrap: normal; } }
.mobile-note { max-width: 880px; margin: 22px auto 0; border: 1px solid var(--plane-line); background: var(--plane-soft); border-radius: var(--r-3); padding: 16px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mobile-note[hidden] { display: none; }
.mobile-note p { color: var(--fg); font-size: 14.5px; }
#hero-version:not([hidden])::before { content: " · "; }
.copy-fail { color: var(--warn, var(--fg-dim)); }
.trademarks { font-size: 12px; color: var(--fg-faint); margin-top: 14px; max-width: 80ch; line-height: 1.5; }
