/* Micrositios Kyvro — marca 2026-11-08 (branding/VISUAL_SYSTEM.md). Mobile-first. */
:root {
  --navy: #002441;
  --navy-800: #013A63;
  --paper: #FDFEFF;
  --paper-2: #F2F9FC;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-soft: #DBEAFE;
  --amber: #F59E0B;
  --amber-text: #B45309;
  --amber-soft: #FEF3C7;
  --ink: #1A1A2E;
  --ink-2: #5A6B7D;
  --border: #E2E8F0;
  --ok: #10B981;
  --wa: #25D366;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font-title: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --read: 700px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Subrayado ámbar: UN dato clave por título */
.mark { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 92%, transparent 92%); padding: 0 .06em; }

/* Grilla técnica */
.grid-tech { position: relative; isolation: isolate; }
.grid-tech::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0,36,65,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,36,65,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 10%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 75% 10%, #000 30%, transparent 80%); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(253,254,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--ink-2); font-weight: 600; }
.brand-by { font-size: 12px; color: var(--ink-2); display: none; align-items: center; gap: 6px; }
.brand-by img { height: 14px; width: auto; }
.top-cta { font-size: 15px; font-weight: 600; padding: 8px 16px; min-height: 40px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border-radius: 12px; font-family: var(--font-text); font-weight: 600; font-size: 16.5px; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 180ms ease, transform 160ms var(--ease-out), box-shadow 180ms ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(37,99,235,.6); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-ghost:hover { border-color: var(--navy); }
}

/* Hero */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--amber-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero h1 { font-size: clamp(34px, 8.6vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; max-width: 18ch; text-wrap: balance; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin: 20px 0 26px; max-width: 54ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.hero-note { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* Firma: ficha técnica */
.ficha { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(0,36,65,.35); overflow: hidden; }
.ficha-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--navy); color: #fff; }
.ficha-head b { font-family: var(--font-title); font-size: 15px; font-weight: 700; }
.ficha-head span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; font-variant-numeric: tabular-nums; }
.ficha ol, .ficha ul { list-style: none; margin: 0; padding: 6px 0; }
.ficha li a { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--border); transition: background-color 180ms ease; }
.ficha li:first-child a { border-top: 0; }
.ficha li a:hover { background: var(--paper-2); }
.ficha .chk { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--border); display: grid; place-items: center; background: #fff; }
.ficha .chk svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 22; stroke-dashoffset: 22; }
.ficha .num { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: 13px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.ficha li strong { display: block; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.ficha li small { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.ficha .go { color: var(--blue); font-weight: 700; font-size: 18px; }
.ficha-foot { padding: 12px 18px; font-size: 13px; color: var(--ink-2); background: var(--paper-2); border-top: 1px solid var(--border); }

/* Animación de la checklist: una vez, al cargar */
@media (prefers-reduced-motion: no-preference) {
  .ficha.is-on .chk { animation: chkfill 260ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 140ms + 300ms); }
  .ficha.is-on .chk svg { animation: chkdraw 300ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 140ms + 380ms); }
}
@media (prefers-reduced-motion: reduce) {
  .ficha .chk { background: var(--ok); border-color: var(--ok); }
  .ficha .chk svg { stroke-dashoffset: 0; }
}
@keyframes chkfill { to { background: var(--ok); border-color: var(--ok); } }
@keyframes chkdraw { to { stroke-dashoffset: 0; } }
.no-js .ficha .chk { background: var(--ok); border-color: var(--ok); }
.no-js .ficha .chk svg { stroke-dashoffset: 0; }

/* Cuerpo de guía: índice + lectura */
.body { padding: 24px 0 72px; }
.oferta + .body { padding-top: 64px; }
.body-grid { display: grid; gap: 28px; }
.toc { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.toc summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 20px; color: var(--blue); }
.toc[open] summary::after { content: '−'; }
.toc ol { margin: 0; padding: 0 16px 14px 34px; font-size: 15px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.toc .toc-cta { margin: 4px 16px 16px; width: calc(100% - 32px); display: none; }

.read { max-width: var(--read); min-width: 0; }
.read section { padding-top: 40px; }
.read section:first-child { padding-top: 8px; }
.read h2 { font-size: clamp(25px, 5.4vw, 34px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.read h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.read p, .read li { color: var(--ink); }
.read ul, .read ol { padding-left: 22px; margin: 0 0 1em; }
.read li { margin: 6px 0; }
.read .lead { font-size: 18.5px; }
.answer { border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 20px; color: var(--navy); }
.answer p:last-child { margin: 0; }
.src { font-size: 13.5px; color: var(--ink-2); }
.src a { color: var(--ink-2); }
.note { font-size: 14.5px; color: var(--ink-2); border-top: 1px dashed var(--border); padding-top: 12px; }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 14px; background: #fff; margin: 8px 0 12px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); }
thead th { border-top: 0; background: var(--paper-2); font-family: var(--font-title); color: var(--navy); font-size: 14.5px; }
tbody th { color: var(--navy); font-weight: 600; width: 26%; }
td.hl, th.hl { background: #F5F9FF; }
td a { white-space: nowrap; }
thead th.hl { background: var(--navy); color: #fff; }

/* Tarjetas */
.cards { display: grid; gap: 14px; margin: 8px 0 16px; padding: 0; list-style: none; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 16px; }
.card h3 { margin: 0 0 6px; font-size: 17.5px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Checklist interactiva */
.quiz { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 8px 0 0; overflow: hidden; margin-top: 8px; }
.quiz label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 18px; cursor: pointer; border-top: 1px solid var(--border); font-size: 16px; }
.quiz label:first-child { border-top: 0; }
.quiz label:hover { background: var(--paper-2); }
.quiz input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ok); cursor: pointer; }
.quiz-out { background: var(--navy); color: #fff; padding: 20px 18px; margin-top: 8px; }
.read .quiz-out .quiz-score { margin: 0 0 4px; font-family: var(--font-title); font-size: 20px; color: #fff; }
.quiz-score b { color: var(--amber); font-variant-numeric: tabular-nums; }
.read .quiz-out .quiz-msg { color: #C9D6E3; font-size: 15.5px; margin: 0 0 16px; }

/* Caso real */
.caso { display: grid; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin: 10px 0 8px; text-decoration: none; color: inherit; transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out); }
.caso-shot { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.caso-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.caso-txt { padding: 0 18px 18px; }
.caso-txt b { color: var(--navy); font-family: var(--font-title); font-size: 18px; display: block; margin-bottom: 4px; }
.caso-txt span { color: var(--ink-2); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .caso:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -22px rgba(0,36,65,.3); } }

/* Bloque de peso navy (oferta) */
.oferta { background: var(--navy); color: #fff; padding: 64px 0; position: relative; isolation: isolate; overflow: hidden; }
.oferta::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(90% 80% at 15% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(90% 80% at 15% 0%, #000 20%, transparent 75%); }
.oferta h2 { color: #fff; font-size: clamp(28px, 6vw, 42px); font-weight: 800; line-height: 1.1; max-width: 20ch; }
.oferta .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--amber); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.oferta-sub { color: #C9D6E3; font-size: 17.5px; max-width: 58ch; margin: 16px 0 28px; }
.oferta ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.oferta li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: #E6EEF6; font-size: 16.5px; line-height: 1.5; }
.oferta li svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 2.4; margin-top: 1px; }
.oferta .btn-primary { box-shadow: 0 12px 30px -12px rgba(37,99,235,.9); }
.oferta-note { color: #9FB3C8; font-size: 14px; margin-top: 14px; }

/* Pasos (secuencia real) */
.pasos { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; counter-reset: p; }
.pasos li { counter-increment: p; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 18px 64px; position: relative; }
.pasos li::before { content: counter(p); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pasos b { display: block; color: var(--navy); font-family: var(--font-title); font-size: 17px; margin-bottom: 2px; }
.pasos span { color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; color: var(--navy); position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* Cierre + footer navy */
.cierre { background: var(--navy); color: #fff; padding: 64px 0 40px; text-align: left; }
.cierre h2 { color: #fff; font-size: clamp(28px, 6vw, 40px); font-weight: 800; line-height: 1.1; max-width: 20ch; margin-bottom: 14px; }
.cierre p { color: #C9D6E3; max-width: 56ch; }
.foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 14px; font-size: 14px; color: #9FB3C8; }
.foot a { color: #DCE6F0; }
.foot img { height: 22px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Barra fija de WhatsApp (celular) */
.wa-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; background: var(--wa); color: #06331A; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35);
  transform: translateY(140%); transition: transform 360ms var(--ease-out); }
.wa-bar.is-on { transform: none; }
.wa-bar svg { width: 22px; height: 22px; fill: currentColor; }
body { padding-bottom: 84px; }

/* Tablas → tarjetas apiladas en celular (data-label lo pone el script del build) */
@media (max-width: 719px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: auto; min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 6px 0; margin-bottom: 12px; }
  .table-wrap tbody th { border-top: 0; font-family: var(--font-title); font-size: 16.5px; padding: 10px 16px 4px; width: auto; }
  .table-wrap td { border-top: 0; padding: 6px 16px; font-size: 15px; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1px; }
  .table-wrap td.hl { background: #F5F9FF; border-left: 3px solid var(--blue); border-radius: 8px; margin: 6px 12px 4px; padding: 8px 12px; color: var(--navy); font-weight: 600; }
  .table-wrap tbody th.hl { background: transparent; }
}

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .brand-by { display: inline-flex; }
  .caso { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .caso-txt { padding: 18px 22px 18px 0; }
}
@media (min-width: 1000px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
  .body-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 88px; border: 0; background: transparent; }
  .toc summary { pointer-events: none; padding: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
  .toc summary::after, .toc[open] summary::after { content: none; }
  .toc ol { padding: 0 0 0 18px; }
  .toc .toc-cta { display: flex; margin: 20px 0 0; width: 100%; }
  .wa-bar { display: none; }
  body { padding-bottom: 0; }
  .oferta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
