/* FichaOK — estilos comunes de la web (landing, sectores, manuales y legal).
   Pensado primero para portátiles de 15" (1366×768 y 1920×1080 con escalado):
   el contenido principal cabe en la primera pantalla sin hacer scroll y las
   columnas no pasan de 1200 px. Por debajo de 900 px todo pasa a una columna. */

:root {
  --green: #05bc77;
  --green-600: #04a268;
  --green-700: #02794f;
  --green-50: #e9f9f2;
  --green-100: #cff3e3;
  --ink: #1d2531;
  --ink-2: #3b4656;
  --muted: #5d6878;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --bg-dark: #121a24;
  --blue: #2563eb;
  --blue-50: #eaf1ff;
  --amber: #b45309;
  --amber-50: #fff6e5;
  --red: #dc2626;
  --red-50: #fdecec;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 8px 28px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --nav-h: 64px;
  --container: 1200px;
}

*, *::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;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 200; background: #fff; padding: 8px 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .975rem; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(5, 188, 119, .28); }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-white { background: #fff; color: var(--green-700); }
.btn-white:hover { background: var(--green-50); }
.btn-line-white { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-line-white:hover { border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--green-50); color: var(--green-700);
}
.pill.blue { background: var(--blue-50); color: var(--blue); }
.pill.amber { background: var(--amber-50); color: var(--amber); }

/* ── Navegación ── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > a, .nav-drop > button {
  padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none;
}
.nav-links > a:hover, .nav-drop > button:hover, .nav-links > a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; display: none;
}
.nav-menu.cols { min-width: 460px; display: none; grid-template-columns: 1fr 1fr; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { display: block; }
.nav-drop:hover .nav-menu.cols, .nav-drop:focus-within .nav-menu.cols, .nav-drop.open .nav-menu.cols { display: grid; }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.nav-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-menu a small { display: block; color: var(--muted); font-size: .8rem; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav .container { gap: 12px; }
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open .nav-links > a, .nav.open .nav-drop > button { width: 100%; text-align: left; padding: 12px; }
  .nav.open .nav-menu, .nav.open .nav-menu.cols { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav.open .nav-cta { display: flex; position: absolute; top: calc(var(--nav-h) + 0px); right: 16px; }
  .nav.open .nav-links { padding-top: 64px; }
}

/* ── Secciones ── */
section { padding: clamp(56px, 7vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #d6dde6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-head .pill { margin-bottom: 14px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: 10px; }

/* ── Hero ── */
.hero {
  padding: clamp(40px, 5.5vh, 72px) 0 clamp(48px, 6vh, 80px);
  background: radial-gradient(1100px 500px at 85% -10%, var(--green-50), transparent 60%), #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }

.hero-visual .laptop { width: min(540px, 92%); margin-right: 60px; }
.phone.hero-phone { position: absolute; right: 0; bottom: -28px; width: 150px; padding: 7px; border-radius: 26px; }
.phone.hero-phone .screen { border-radius: 20px; font-size: 10px; }
.phone.hero-phone .appbar { padding: 14px 10px 8px; font-size: 11px; }
.phone.hero-phone .body { padding: 10px 8px; }
.phone.hero-phone .m-hello { font-size: 13px; }
.phone.hero-phone .m-timer { font-size: 21px; }
.phone.hero-phone .m-btn { width: 84px; height: 84px; font-size: 12px; margin: 8px 0; box-shadow: 0 0 0 6px rgba(239, 83, 80, .15); }
.hero-float { left: 0; bottom: -10px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: .92rem; }

/* Hero compacto (páginas de sector y guías) */
.hero-sm { padding: clamp(36px, 5vh, 64px) 0; }
.hero-sm .hero-visual { min-height: 380px; }

/* ── Tarjetas y rejillas ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card p + p { margin-top: .6em; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; }
.card.blue .ico { background: var(--blue-50); color: var(--blue); }
.card.amber .ico { background: var(--amber-50); color: var(--amber); }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { text-decoration: none; border-color: var(--green); box-shadow: var(--shadow); }

/* ── Bloques texto + imagen ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-top: 6px; }
.split .lead { color: var(--ink-2); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302794f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: .95rem; }
.checks.cross li::before {
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ── Pasos numerados ── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps.grid-4, .steps.grid-3 { gap: 20px; }
.step { counter-increment: step; position: relative; padding: 22px 22px 22px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── Precios ── */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.price-card.featured::before { content: none; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card .amount { font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-card .amount small { font-size: .85rem; font-weight: 500; color: var(--muted); display: block; margin-top: 4px; }
.price-card .save { margin-top: 10px; font-size: .85rem; color: var(--green-700); font-weight: 600; }
.price-foot { text-align: center; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; max-width: 900px; }
.included span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; color: var(--ink-2); }

/* ── Tablas ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green-700); font-weight: 600; }
td.no { color: var(--red); }
td.mid { color: var(--amber); }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* ── Banda CTA ── */
.cta-band { background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #eafff6; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 24px; font-size: 1.075rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Avisos ── */
.note { border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); border-left: 4px solid var(--green); margin: 16px 0; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.tip { background: var(--green-50); border-color: var(--green); }
.note.info { background: var(--blue-50); border-color: var(--blue); }
.note.warn { background: var(--amber-50); border-color: #f59e0b; }
.note strong:first-child { display: block; margin-bottom: 2px; }

/* ── Footer ── */
.footer { background: var(--bg-dark); color: #aab4c1; padding: 56px 0 28px; font-size: .92rem; }
.footer a { color: #cfd7e1; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ═══════════ Maquetas de la app (HTML/CSS, sin imágenes) ═══════════ */
.device { position: relative; }
.phone {
  width: 270px; aspect-ratio: 9 / 18.5; background: #0f141b; border-radius: 38px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone .screen { height: 100%; border-radius: 30px; background: #f8f9fc; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; color: #1a1a2e; }
.appbar { background: #1e3a5f; color: #fff; padding: 22px 14px 12px; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.appbar i { font-style: normal; opacity: .8; letter-spacing: 4px; }
.phone .body { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.m-hello { font-size: 16px; font-weight: 700; }
.m-date { color: #6b7280; font-size: 11px; margin-bottom: 10px; }
.m-status { border: 1px solid #66bb6a; color: #2e7d32; background: #eef8ef; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 11px; }
.m-status.off { border-color: #9ca3af; color: #6b7280; background: #f3f4f6; }
.m-timer { font-size: 28px; font-weight: 300; color: #43a047; font-variant-numeric: tabular-nums; margin-top: 6px; }
.m-btn { width: 128px; height: 128px; border-radius: 50%; background: #ef5350; color: #fff; display: grid; place-items: center; align-content: center; gap: 2px; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 8px rgba(239, 83, 80, .15); margin: 12px 0; }
.m-btn.in { background: #66bb6a; box-shadow: 0 0 0 8px rgba(102, 187, 106, .18); }
.m-btn small { font-weight: 500; opacity: .85; font-size: 11px; }
.m-quick { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 4px; color: #1e3a5f; font-size: 10px; }
.m-quick span::before { content: ''; display: block; width: 22px; height: 22px; margin: 0 auto 4px; border-radius: 6px; background: #dbe4f0; }

.laptop { width: min(560px, 100%); }
.laptop .lid { background: #0f141b; border-radius: 16px 16px 0 0; padding: 12px 12px 14px; box-shadow: var(--shadow-lg); }
.laptop .base { height: 14px; background: linear-gradient(#d7dce2, #b9c0c9); border-radius: 0 0 14px 14px; margin: 0 -28px; }
.browser { background: #fff; border-radius: 6px; overflow: hidden; font-size: 11px; color: #1a1a2e; }
.browser .bar { background: #eef1f5; padding: 7px 10px; display: flex; gap: 5px; align-items: center; }
.browser .bar b { width: 8px; height: 8px; border-radius: 50%; background: #cfd5dd; }
.browser .bar u { text-decoration: none; margin-left: 10px; background: #fff; border-radius: 4px; padding: 2px 10px; color: #6b7280; font-size: 10px; flex: 1; }
.dash { padding: 12px; display: grid; gap: 10px; background: #f8f9fc; }
.dash-title { font-weight: 700; font-size: 13px; color: #1e3a5f; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; }
.kpi b { display: block; font-size: 17px; color: #1e3a5f; }
.kpi span { color: #6b7280; font-size: 10px; }
.dash-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.dash-list div { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-bottom: 1px solid #f0f2f5; }
.dash-list div:last-child { border-bottom: 0; }
.dash-list em { font-style: normal; color: #2e7d32; background: #eef8ef; padding: 1px 8px; border-radius: 999px; font-size: 10px; }
.dash-list em.warn { color: #b45309; background: #fff6e5; }

.tablet { width: 420px; aspect-ratio: 4 / 3; background: #0f141b; border-radius: 26px; padding: 14px; box-shadow: var(--shadow-lg); }
.tablet .screen { height: 100%; border-radius: 14px; background: #0d1b2a; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; font-size: 12px; }
.k-left { display: flex; flex-direction: column; justify-content: center; }
.k-time { font-size: 44px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.k-date { opacity: .7; margin: 6px 0 14px; }
.k-name { font-weight: 700; font-size: 14px; }
.k-nfc { margin-top: 14px; font-size: 11px; opacity: .75; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 8px; padding: 8px; }
.k-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: center; }
.k-pad span { background: #1b2838; border-radius: 10px; text-align: center; padding: 9px 0; font-size: 15px; font-weight: 600; }
.k-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.k-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); }
.k-dots i.on { background: var(--green); border-color: var(--green); }

.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .82rem; display: flex; gap: 10px; align-items: center; }
.float-card b { display: block; font-size: .9rem; }
.float-card .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-weight: 800; }

/* ═══════════ Documentos (manuales y páginas legales) ═══════════ */
.doc-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.doc-hero h1 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); margin: 10px 0 8px; }
.doc-hero p { color: var(--ink-2); max-width: 760px; margin: 0; font-size: 1.05rem; }
.doc-hero .meta { margin-top: 14px; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 40px 24px 72px; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; font-size: .9rem; }
.doc-toc h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.doc-toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.doc-toc a:hover, .doc-toc a.active { border-left-color: var(--green); color: var(--ink); text-decoration: none; background: var(--bg-soft); }
.doc-toc a.sub { padding-left: 22px; font-size: .85rem; color: var(--muted); }
.doc-body { max-width: 780px; }
.doc-body > section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-body > section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: 1.6rem; margin-bottom: 14px; }
.doc-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body li { margin-bottom: 6px; }
.doc-body ol.howto { counter-reset: h; list-style: none; padding: 0; }
.doc-body ol.howto > li { counter-increment: h; position: relative; padding-left: 40px; margin-bottom: 12px; }
.doc-body ol.howto > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.ui { display: inline-block; font-size: .88em; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: #eef1f5; border: 1px solid #dde3ea; color: var(--ink); white-space: nowrap; }
.ui.green { background: var(--green-50); border-color: var(--green-100); color: var(--green-700); }
.ui.red { background: var(--red-50); border-color: #f8caca; color: var(--red); }
.path { font-weight: 600; color: var(--ink); }
.doc-figure { margin: 20px 0; padding: 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.doc-figure figcaption { width: 100%; text-align: center; font-size: .85rem; color: var(--muted); }
.doc-figure .phone { width: 230px; }
.doc-figure .tablet { width: 380px; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.doc-cards .card { padding: 18px; }
.doc-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }

/* ── Páginas legales ── */
.legal .doc-body h2 { font-size: 1.35rem; }
.legal dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin: 0 0 1em; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-2); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero-visual { min-height: 0; }
  .grid-3, .grid-4, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { display: none; }
  .hero-visual .laptop { margin-right: 0; width: 100%; }
  .hero-phone { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .doc { padding: 24px 16px 56px; }
  .grid-2, .grid-3, .grid-4, .prices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .laptop .base { margin: 0 -10px; }
  .tablet, .doc-figure .tablet { width: 100%; }
  .doc-figure { padding: 16px; }
  .tablet .screen { padding: 12px; }
  .k-time { font-size: 34px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .legal dl { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .nav, .footer, .doc-toc, .cta-band { display: none; }
  .doc { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }

/* ── Maquetas pequeñas para los manuales ── */
.mock-dialog { width: 300px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; font-size: 12px; color: #1a1a2e; text-align: left; }
.mock-dialog h5 { margin: 0 0 12px; font-size: 15px; }
.mock-field { border: 1px solid #cfd6df; border-radius: 6px; padding: 7px 9px; margin-bottom: 8px; color: #6b7280; }
.mock-field b { display: block; font-size: 10px; color: #1e3a5f; font-weight: 600; }
.mock-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; }
.mock-check i { width: 14px; height: 14px; border-radius: 3px; background: #1e3a5f; flex: none; margin-top: 1px; }
.mock-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; font-weight: 600; color: #1e3a5f; }
.mock-actions span:last-child { background: #1e3a5f; color: #fff; padding: 5px 12px; border-radius: 999px; }
.mock-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid #e5e7eb; padding: 8px 0 12px; font-size: 7.5px; overflow: hidden; text-align: center; color: #6b7280; }
.mock-nav span:first-child { color: #1e3a5f; font-weight: 700; }
.mock-nav span::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 4px; background: #dbe4f0; margin: 0 auto 3px; }
.mock-sec { font-weight: 700; font-size: 11px; color: #1e3a5f; margin: 8px 0 4px; text-align: left; width: 100%; }
.mock-row { width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 10px; text-align: left; }
.mock-row em { font-style: normal; color: #2e7d32; }
.mock-banner { width: 100%; background: #fff6e5; border: 1px solid #f7c56b; color: #92400e; border-radius: 8px; padding: 6px 8px; font-size: 10px; text-align: left; margin-bottom: 6px; }
