/* ============================================================
   Byteploy — styles.css (v2)
   Diseño: "Byteploy Web v2" (claude.ai/design) portado a producción.
   Paleta v2: papel #F6F4EF · tinta #111114 · amarillo #FFD21F ·
   oro #C99E00 · oscuro #0D0D11. Tipografía: Manrope (variable) +
   IBM Plex Mono, ambas self-hosted. Sin dependencias externas.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plexmono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plexmono-600.woff2") format("woff2");
}

:root {
  --paper: #f6f4ef;
  --paper2: #fffdf7;
  --ink: #111114;
  --ink2: #4c4c53;
  --muted: #63626a;
  --yellow: #ffd21f;
  --yellow2: #c99e00;
  --line: #e4e0d4;
  --dark: #0d0d11;
  --dark2: #15151b;
  --dline: #26262e;
  --dmuted: #a6a6b0;
  --dtext: #f2f2f4;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--yellow2); }
ul, ol { list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
section { scroll-margin-top: 92px; }

.kicker { font: 500 13px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.04em; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: pretty; }
.section { padding: 96px 0; }
.section-sub { color: var(--ink2); font-size: 17.5px; max-width: 58ch; margin-top: 12px; text-wrap: pretty; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(17, 17, 20, 0.15); color: #111; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 239, 0.86);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(17, 17, 20, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 26px; width: auto; }
.brand .brand-mark { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu a:not(.btn) { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.nav-menu a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.lang-pair { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-mono); color: var(--line); border-left: 1px solid var(--line); padding-left: 18px; }
.lang-btn { font: inherit; color: var(--muted); padding: 3px 1px; border-bottom: 2px solid transparent; text-decoration: none; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* ---------- Circuito (decoración) ---------- */

.circuit {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23111114' stroke-width='2'%3E%3Cpath d='M20 40h70l30 30v50'/%3E%3Ccircle cx='120' cy='128' r='5'/%3E%3Ccircle cx='20' cy='40' r='5'/%3E%3Cpath d='M180 200h-40l-20-20'/%3E%3Ccircle cx='184' cy='200' r='5'/%3E%3Cpath d='M200 60v40l-24 24'/%3E%3Ccircle cx='200' cy='56' r='5'/%3E%3C/svg%3E");
  opacity: 0.055;
  mask-image: radial-gradient(720px 480px at 82% 10%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(720px 480px at 82% 10%, #000 0%, transparent 70%);
}
.section-dark .circuit { filter: invert(1); opacity: 0.07; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; position: relative; }
.hero-grid > * { min-width: 0; }
.eyebrow { font: 500 13.5px/1.5 var(--font-mono); color: var(--ink2); margin-bottom: 18px; }
.eyebrow b { color: var(--ink); }
.hero-title { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; }
/* La palabra animada vive en su propia línea → el nº de líneas del h1 no
   cambia al escribir/borrar y el layout no salta (CLS 0) */
.typewrap { display: block; white-space: nowrap; }
.typeword { background: linear-gradient(transparent 64%, var(--yellow) 64%); }
.caret { display: inline-block; width: 3px; height: 0.9em; background: var(--ink); margin-left: 4px; vertical-align: -0.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--ink2); max-width: 54ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Trust chips ---------- */

.trust-chips { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); position: relative; }
.trust-label { text-align: center; font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: flex; align-items: center; gap: 9px; background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.chip svg { width: 16px; height: 16px; stroke: var(--yellow2); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Terminal ---------- */

.term { background: var(--dark); border: 1px solid var(--dline); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(17, 17, 20, 0.35); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--dline); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2c2c34; }
.dot-y { background: var(--yellow); }
.term-title { margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--dmuted); }
.term-body { padding: 22px 22px 26px; font: 400 13.5px/2.05 var(--font-mono); color: #d8d8de; overflow-x: auto; }
.term-body .p { color: var(--yellow); font-weight: 600; }
.term-body .ck {
  display: inline-block; width: 0.95em; height: 0.95em; margin-right: 8px; vertical-align: -0.1em;
  background: var(--yellow);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.term-body .ok { color: #7ddb8a; }
.t-url { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--yellow); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
/* Deploy en vivo: las líneas aparecen en secuencia y el ciclo se repite */
.t-line { opacity: 0; animation: term-line 12s infinite both; }
.t-line:nth-of-type(2) { animation-delay: 1.1s; }
.t-line:nth-of-type(3) { animation-delay: 2s; }
.t-line:nth-of-type(4) { animation-delay: 3.2s; }
.t-line:nth-of-type(5) { animation-delay: 4.8s; }
.t-line:nth-of-type(6) { animation-delay: 5.7s; }
.t-line:nth-of-type(7) { animation-delay: 6.6s; }
@keyframes term-line {
  0% { opacity: 0; }
  1.5%, 88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

/* ---------- Cards + bento ---------- */

.card { background: var(--paper2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); border-color: #c9c4b4; box-shadow: 0 14px 30px -18px rgba(17, 17, 20, 0.25); }
.card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; margin: 16px 0 8px; }
.card p { font-size: 15px; color: var(--ink2); }
.card-lg { padding: 32px; }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); }
.icon-chip svg { width: 22px; height: 22px; stroke: var(--yellow); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.b-a { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.b-a h3 { font-size: 23px; }
.b-a p { font-size: 16px; }
.b-b { grid-column: span 2; }
.b-e, .b-f { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.card-dark { background: var(--dark2); border-color: var(--dline); }
.card-dark h3 { color: var(--dtext); }
.card-dark p { color: var(--dmuted); }
.card-dark:hover { border-color: #3a3a46; }
.card-yellow { background: var(--yellow); border-color: var(--yellow); }
.card-yellow p { color: rgba(17, 17, 20, 0.72); }
.card-yellow:hover { border-color: var(--yellow2); }
.icon-chip-inv { background: rgba(17, 17, 20, 0.9); }

.mini-list { margin-top: 14px; display: grid; gap: 10px; }
.mini-list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink2); }
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 14px; height: 14px; background: var(--yellow2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Secciones oscuras ---------- */

.section-dark { position: relative; background: var(--dark); color: var(--dtext); overflow: hidden; }
.section-dark .kicker { color: #8b8b96; }
.section-dark .section-sub { color: var(--dmuted); }

/* ---------- Proceso (números fantasma) ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 28px; margin-top: 52px; }
.step .ghost { font-size: 54px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: rgba(242, 242, 244, 0.09); }
.step h3 { color: var(--yellow); font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.step p { font-size: 14px; color: var(--dmuted); }

/* ---------- Roadmap ---------- */

.road { position: relative; margin-top: 52px; }
.road-line { position: absolute; top: 50%; left: 2%; right: 2%; height: 2px; background: var(--line); }
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.road-card { background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.road-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(17, 17, 20, 0.25); }
.road-num { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: 0 0 0 5px var(--paper2); }
.rn-ink { background: var(--ink); color: var(--paper); }
.rn-gold { background: var(--yellow2); color: #fff; }
.rn-yellow { background: var(--yellow); color: var(--ink); }
.road-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.road-card p { font-size: 13.5px; color: var(--ink2); }

/* ---------- Caso / producto (Makundal): ventana de navegador sobre
   placa amarilla (el subrayador del hero marcando lo real) + barra de
   estado de producción + inventario de módulos en mono ---------- */

.case-show { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 48px; }
.case-show > * { min-width: 0; }

.case-window { padding-right: 14px; }
.case-frame {
  background: var(--dark); border: 1px solid var(--dline); border-radius: 14px; overflow: hidden;
  /* placa amarilla: el subrayador del hero marcando el producto real */
  box-shadow: 14px 14px 0 0 var(--yellow), 24px 44px 60px -24px rgba(17, 17, 20, 0.35);
}
.case-frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--dline); }
.case-url { margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--dmuted); background: var(--dark2); border: 1px solid var(--dline); border-radius: 999px; padding: 6px 14px; }
.case-url b { color: var(--yellow); font-weight: 600; }
.case-frame img { width: 100%; display: block; }

.case-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; background: var(--dark2); border: 1px solid var(--dline); border-radius: 12px; padding: 13px 18px; }
.case-status-live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--yellow); }
.case-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.case-status p { font-size: 13.5px; color: var(--dmuted); margin: 0; }
.case-status p b { color: var(--dtext); font-weight: 700; }

/* Ticket de venta: artefacto del producto flotando sobre la ventana */
.case-window { position: relative; }
.ticket {
  position: absolute; right: -14px; bottom: 92px; width: 232px; z-index: 2;
  background: var(--paper2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px 12px; transform: rotate(2.5deg);
  box-shadow: 0 22px 44px -18px rgba(17, 17, 20, 0.45);
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.ticket-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.ticket-label svg { width: 14px; height: 14px; color: var(--yellow2); }
.ticket-code { font: 600 10.5px/1 var(--font-mono); color: var(--muted); }
.t-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 0; font-size: 12.5px; opacity: 0; animation: row-in 9s infinite both; }
.t-row .qty { font: 600 11px/1.4 var(--font-mono); color: var(--yellow2); flex: none; }
.t-row .name { font-weight: 600; color: var(--ink); min-width: 0; white-space: nowrap; }
.t-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.t-row .price { font: 600 11.5px/1.4 var(--font-mono); color: var(--ink2); }
.t-row:nth-of-type(2) { animation-delay: 0.9s; }
.t-row:nth-of-type(3) { animation-delay: 1.8s; }
.ticket-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 2px solid var(--ink); opacity: 0; animation: row-in 9s 2.8s infinite both; }
.ticket-total .word { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.ticket-total .amount { font: 700 16px/1 var(--font-mono); color: var(--ink); }
.pay-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 210, 31, 0.16); border: 1px solid rgba(201, 158, 0, 0.35); font-size: 10.5px; font-weight: 700; color: #7a5f00; opacity: 0; animation: row-in 9s 3.4s infinite both; }
.pay-chip svg { width: 13px; height: 13px; }
@keyframes row-in {
  0% { opacity: 0; transform: translateY(6px); }
  5%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(0); }
}

.case-id .case-badge { display: inline-block; font: 600 12px/1 var(--font-mono); letter-spacing: 0.04em; color: #7a5f00; background: rgba(255, 210, 31, 0.16); border: 1px solid rgba(201, 158, 0, 0.35); border-radius: 999px; padding: 7px 14px; margin-bottom: 18px; }
.case-id h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.case-role { font: 600 13px/1.5 var(--font-mono); color: #7a5f00; margin-top: 8px; }
.case-id > p { color: var(--ink2); font-size: 15.5px; margin-top: 14px; max-width: 46ch; }
.case-modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.case-modules li { font: 500 12.5px/1 var(--font-mono); color: var(--ink2); background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.case-id .btn { margin-top: 24px; }

/* ---------- Alt + grids ---------- */

.section-alt { background: #efece2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .card { background: #fffdf7; }
.grid { display: grid; gap: 18px; margin-top: 44px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card h3.flag { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.card h3 .emoji { font-size: 26px; }

/* ---------- Garantías verificables ---------- */

.verify-panel { margin-top: 18px; background: #fffdf7; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--dark2); font: 500 13px/1 var(--font-mono); }
.verify-cmd { color: var(--dtext); }
.verify-cmd::before { content: "$ "; color: var(--yellow); }
.verify-count { color: var(--yellow); letter-spacing: 0.04em; }
.verify-list { display: grid; }
.verify-row { display: grid; grid-template-columns: 15px 150px 1fr; align-items: start; gap: 8px 16px; padding: 15px 20px; border-top: 1px solid var(--line); }
.verify-row:first-child { border-top: 0; }
.verify-check {
  width: 15px; height: 15px; margin-top: 0.22em; background: var(--yellow2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.verify-slug { font: 500 13px/1.55 var(--font-mono); color: var(--ink); }
.verify-row p { margin: 0; font-size: 14.5px; color: var(--ink2); }

/* ---------- Liderazgo ---------- */

.lead-grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: 52px; align-items: center; margin-top: 8px; }
.lead-photo { background: var(--paper2); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 18px 44px -24px rgba(17, 17, 20, 0.3); }
.lead-photo .ratio { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--dark2); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-name { margin-top: 18px; text-align: center; }
.lead-name h3 { font-size: 21px; font-weight: 800; }
.lead-role { font: 600 13px/1.6 var(--font-mono); color: var(--yellow2); }
.founder-links { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.founder-links a { font: 500 13px/1.4 var(--font-mono); color: var(--ink2); text-decoration-thickness: 1.5px; }
.ext { vertical-align: -1px; }
.founder-links a:hover { color: var(--yellow2); }
.lead-bio { font-size: 16.5px; color: var(--ink2); margin-top: 14px; text-wrap: pretty; }
.quote { border-left: 4px solid var(--yellow); padding: 6px 0 6px 20px; margin-top: 26px; font-style: italic; color: var(--ink2); font-size: 16px; max-width: 60ch; text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--yellow2); border-radius: 2px; transition: transform 0.2s; }
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2.5px; }
.faq-icon::after { left: 6px; top: 0; width: 2.5px; height: 14px; }
.faq[open] .faq-icon::after { transform: scaleY(0); }
.faq p { padding: 0 2px 20px; color: var(--ink2); max-width: 64ch; }

/* ---------- Contacto ---------- */

.section-contact { padding: 110px 0; }
.contact-card { background: var(--dark2); border: 1px solid var(--dline); border-radius: 22px; padding: 48px; position: relative; }
.contact-word { height: 34px; width: auto; margin-bottom: 26px; }
.contact-card h2 { color: var(--dtext); }
.contact-form { margin-top: 30px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--dmuted); letter-spacing: 0.02em; }
.field input, .field textarea { background: var(--dark); border: 1px solid var(--dline); border-radius: 10px; padding: 12px 14px; color: var(--dtext); font: inherit; font-size: 15px; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #5d5d68; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 31, 0.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e2896b; }
.field textarea { resize: vertical; min-height: 110px; }
.form-submit { justify-self: start; }
.form-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
/* Widget Turnstile: vacío no ocupa alto; el JS reserva 65px al cargarlo */
.cf-turnstile { justify-self: start; line-height: 0; }
.form-status { font-size: 14px; color: var(--yellow); min-height: 1.4em; }
.form-status.is-err { color: #f0a58c; }
/* Canales directos: tabla compacta de endpoints (email / whatsapp) */
.contact-or { display: flex; align-items: center; gap: 14px; margin-top: 26px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dmuted); }
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 1px; background: var(--dline); }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.channel {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  background: var(--dark); border: 1px solid var(--dline); border-radius: 12px;
  padding: 14px 18px; text-decoration: none;
  transition: border-color 0.16s, transform 0.16s;
}
.channel:hover { border-color: var(--yellow); transform: translateY(-1px); }
.channel-label { grid-column: 1; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dmuted); }
.channel-value { grid-column: 1; font-size: 15.5px; font-weight: 700; color: var(--dtext); margin-top: 5px; overflow-wrap: anywhere; }
.channel-arrow { grid-column: 2; grid-row: 1 / 3; display: inline-flex; color: #8a7a2e; transition: color 0.16s, transform 0.16s; }
.channel:hover .channel-arrow { color: var(--yellow); transform: translate(2px, -2px); }
.channel:hover .channel-value { color: var(--yellow); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand img { height: 20px; width: auto; }
.footer-legal p { font-size: 13.5px; color: var(--muted); }

/* ---------- Reveal (activado por JS; sin JS todo queda visible) ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .case-show { grid-template-columns: 1fr; }
  .case-window { padding-right: 10px; }
  .case-frame { box-shadow: 10px 10px 0 0 var(--yellow), 18px 34px 50px -22px rgba(17, 17, 20, 0.35); }
  .ticket { right: 4px; bottom: 86px; width: 208px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .road-grid { grid-template-columns: repeat(2, 1fr); }
  .road-line { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-a { grid-column: span 2; grid-row: auto; }
  .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .lead-photo { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 14px 24px 20px; display: none;
    box-shadow: 0 18px 30px -18px rgba(17, 17, 20, 0.2);
  }
  body.nav-open .nav-menu { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: 11px 0; font-size: 16px; }
  .nav-menu .btn { margin-top: 10px; }
  .lang-pair { border-left: 0; padding-left: 0; padding-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 60px 0 56px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .bento, .cards-2, .form-row, .steps, .road-grid, .contact-channels { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-e, .b-f { grid-column: auto; grid-row: auto; }
  .contact-card { padding: 32px 22px; }
  .hero-cta .btn { flex: 1; min-width: 180px; }
  .chips { flex-direction: column; align-items: stretch; }
  /* Terminal: fuente menor + wrap de líneas largas (legible sin scroll lateral) */
  .term-body { font-size: 12px; line-height: 1.9; padding: 16px 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
  .verify-row { grid-template-columns: 15px 1fr; }
  .verify-row p { grid-column: 2; }
  /* Ticket: sobre el GIF taparía demasiado; pasa a tarjeta estática bajo el frame */
  .ticket { position: static; width: auto; margin-top: 14px; transform: none; box-shadow: none; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret, .term-cursor, .case-status-dot { animation: none; }
  .t-row, .ticket-total, .pay-chip, .t-line { animation: none; opacity: 1; }
  .btn, .card, .road-card { transition: none; }
  .btn:hover, .card:hover, .road-card:hover { transform: none; }
}
