/* Sitio público de CRAD · construido sobre los tokens del Design System v8
   (frontend/scss/ds/v8/tokens). Los valores se copian, no se inventan: si v8
   cambia un color, se cambia aquí también. */

:root {
  --ds-blue-50: #e8f5fb;
  --ds-blue-100: #c9e7f6;
  --ds-blue-500: #1a92c7;
  --ds-blue-600: #1877a8;
  --ds-blue-700: #1d5f96;
  --ds-blue-800: #164a75;
  --ds-blue-900: #10365a;
  --ds-blue-950: #0a2340;
  --ds-teal-50: #e6f6f4;
  --ds-teal-100: #c0ebe5;
  --ds-teal: #0e8a7d;
  --ds-teal-700: #0b6f65;
  --ds-red-50: #fdecee;
  --ds-red: #dc3545;
  --ds-red-600: #c62839;
  --ds-orange-50: #fff1e6;
  --ds-orange: #e8a317;
  --ds-orange-700: #9a3412;
  --ds-green-50: #e9f8ef;
  --ds-green: #198754;
  --ds-slate-50: #f7f9fc;
  --ds-slate-100: #f1f4f8;
  --ds-slate-200: #e2e8f0;
  --ds-slate-300: #cbd5e1;
  --ds-slate-400: #94a3b8;
  --ds-slate-500: #64748b;
  --ds-slate-600: #4a5568;
  --ds-slate-700: #2d3748;
  --ds-slate-900: #0f172a;
  --ds-tint-blue: #eaf2ff;
  --ds-tint-orange: #fff5e0;

  --bg-page: #f0f2f5;
  --bg-surface: #ffffff;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-card: 10px;
  --radius-kpi: 12px;
  --radius-hero: 16px;
  --radius-modal: 18px;
  --radius-full: 999px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-kpi: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 12px 28px -8px rgba(15, 23, 42, 0.18);
  --shadow-hero: 0 8px 32px rgba(29, 95, 150, 0.25);

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ds-blue-600); }
h1, h2, h3, h4 { color: var(--ds-slate-900); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Botones (ds-btn: píldora) ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-full);
  font: 500 .95rem var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--ds-blue-600); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--ds-blue-700); box-shadow: var(--shadow-kpi); }
.btn-ghost { background: #fff; color: var(--ds-blue-700); border-color: var(--ds-slate-300); }
.btn-ghost:hover { border-color: var(--ds-blue-500); background: var(--ds-blue-50); }
.btn-light { background: #fff; color: var(--ds-blue-800); }
.btn-light:hover { background: var(--ds-blue-50); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ds-blue-500); outline-offset: 2px;
}

/* ── Encabezado ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ds-slate-600); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ds-blue-700); }
.header-cta { display: flex; gap: 10px; margin-left: auto; }
.header-cta .btn { padding: 9px 16px; font-size: .9rem; }
.header-cta .btn-ghost { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
  .header-cta .btn-ghost { display: inline-flex; }
}

/* ── Hero (degradado azul de ds-page-header) ───────────────── */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14, 138, 125, .35), transparent 60%),
    linear-gradient(135deg, var(--ds-blue-700) 0%, var(--ds-blue-900) 70%, var(--ds-blue-950) 100%);
  color: #fff; overflow: hidden; padding: 0;
}
.hero .wrap { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 1.15fr; align-items: center; padding-top: 80px; padding-bottom: 88px; } }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2bbbad; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: #7fdcd1; }

/* ── Secciones ─────────────────────────────────────────────── */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 96px 0; } }
.section-alt { background: var(--bg-page); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; color: var(--ds-teal); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* Perfiles */
.profiles { display: grid; gap: 18px; }
@media (min-width: 820px) { .profiles { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px;
}
.profile .badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 5px 12px; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700;
}
.badge-blue { background: var(--ds-tint-blue); color: var(--ds-blue-700); }
.badge-teal { background: var(--ds-teal-50); color: var(--ds-teal-700); }
.badge-orange { background: var(--ds-tint-orange); color: var(--ds-orange-700); }
.profile p { color: var(--text-muted); }
.profile ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.profile li { display: flex; gap: 10px; align-items: flex-start; }
.profile li .icon { width: 18px; height: 18px; color: var(--ds-teal); margin-top: 3px; }

/* Flujo del día */
.flow { display: grid; gap: 14px; counter-reset: paso; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li {
  list-style: none; position: relative; counter-increment: paso;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px 20px 18px; box-shadow: var(--shadow-1);
}
.flow li::before {
  content: counter(paso); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  background: var(--ds-blue-600); color: #fff; font-weight: 700; font-size: .9rem;
}
.flow h3 { margin-bottom: 4px; }
.flow p { color: var(--text-muted); font-size: .93rem; margin: 0; }
.flow { padding: 0; margin: 0; }

/* Módulos */
.module-group { margin-top: 56px; }
.module-group:first-of-type { margin-top: 0; }
.module-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.module-group-head h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.module-group-head span { color: var(--text-muted); font-size: .92rem; }
.modules { display: grid; gap: 14px; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.module { display: flex; gap: 14px; padding: 20px; transition: box-shadow .15s, border-color .15s; }
.module:hover { box-shadow: var(--shadow-kpi); border-color: var(--ds-slate-300); }
.module h4 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.module p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.mod-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-md); flex: none; }
.mod-icon.blue { background: var(--ds-tint-blue); color: var(--ds-blue-600); }
.mod-icon.teal { background: var(--ds-teal-50); color: var(--ds-teal); }
.mod-icon.orange { background: var(--ds-tint-orange); color: #b7791f; }
.mod-icon.red { background: var(--ds-red-50); color: var(--ds-red-600); }

/* Vitrinas (pantalla + texto) */
.showcase { display: grid; gap: 36px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
@media (min-width: 980px) {
  .showcase { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .showcase.flip > .showcase-text { order: 2; }
}
.showcase-text p { color: var(--text-muted); font-size: 1.04rem; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--ds-teal); margin-top: 2px; }

/* Marco de navegador + captura o réplica */
.shot {
  margin: 0; border-radius: var(--radius-kpi); background: #fff;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(15, 23, 42, .06); overflow: hidden;
}
.hero .shot { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--ds-slate-100); border-bottom: 1px solid var(--border); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ds-slate-300); }
.shot-bar span { margin-left: 10px; font-size: .74rem; color: var(--ds-slate-500); background: #fff; border-radius: var(--radius-full); padding: 3px 12px; }
.shot > img { width: 100%; height: auto; }
.shot > img + .mock { display: none; }  /* si existe la captura real, se oculta la réplica */
.shot figcaption { font-size: .78rem; color: var(--ds-slate-500); padding: 8px 14px; border-top: 1px solid var(--border); background: var(--ds-slate-50); }

/* ── Réplicas de pantalla (piezas v8 en miniatura) ─────────── */
.mock { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; font-size: 12px; color: var(--text); background: var(--bg-page); }
.mock-side { background: var(--ds-blue-800); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.mock-side b { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.mock-side b.on { background: var(--ds-blue-500); }
.mock-main { padding: 14px; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mock-head strong { font-size: 14px; color: var(--ds-slate-900); }
.mock-chip { font-size: 10.5px; padding: 3px 9px; border-radius: var(--radius-full); background: var(--ds-tint-blue); color: var(--ds-blue-700); font-weight: 500; white-space: nowrap; }
.mock-chip.teal { background: var(--ds-teal-50); color: var(--ds-teal-700); }
.mock-chip.orange { background: var(--ds-tint-orange); color: #9a5b00; }
.mock-chip.red { background: var(--ds-red-50); color: var(--ds-red-600); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
@media (min-width: 520px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border-radius: 10px; padding: 9px 10px; box-shadow: var(--shadow-1); border-top: 3px solid var(--ds-blue-500); }
.kpi.teal { border-top-color: var(--ds-teal); }
.kpi.orange { border-top-color: var(--ds-orange); }
.kpi.red { border-top-color: var(--ds-red); }
.kpi small { display: block; color: var(--text-muted); font-size: 10px; }
.kpi b { font-size: 15px; color: var(--ds-slate-900); }
.panel { background: #fff; border-radius: 10px; box-shadow: var(--shadow-1); padding: 10px 12px; }
.panel + .panel { margin-top: 8px; }
.panel-title { font-weight: 700; font-size: 11.5px; margin-bottom: 8px; color: var(--ds-slate-700); }
.grid-2 { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid-2 { grid-template-columns: 1.4fr 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding-top: 4px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--ds-blue-500); }
.bars i:nth-child(3n) { background: var(--ds-teal); }
.donut { width: 86px; height: 86px; border-radius: 50%; margin: 2px auto 8px;
  background: conic-gradient(var(--ds-blue-500) 0 42%, var(--ds-teal) 42% 68%, var(--ds-orange) 68% 86%, var(--ds-red) 86% 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.legend { display: grid; gap: 3px; font-size: 10.5px; color: var(--ds-slate-600); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.rows { width: 100%; border-collapse: collapse; font-size: 11px; }
.rows th { text-align: left; font-weight: 500; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.rows td { padding: 6px; border-bottom: 1px solid var(--ds-slate-100); white-space: nowrap; }
.rows td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rows tr:last-child td { border-bottom: 0; }
.hide-sm { display: none; }
@media (min-width: 520px) { .hide-sm { display: table-cell; } }

/* Venta por pasos */
.steps { display: flex; gap: 6px; margin-bottom: 10px; }
.steps span { flex: 1; text-align: center; font-size: 10px; padding: 5px 4px; border-radius: var(--radius-full); background: #fff; color: var(--text-muted); border: 1px solid var(--border); }
.steps span.done { background: var(--ds-teal-50); color: var(--ds-teal-700); border-color: var(--ds-teal-100); }
.steps span.on { background: var(--ds-blue-600); color: #fff; border-color: var(--ds-blue-600); }
.field { background: #fff; border: 1px solid var(--ds-slate-300); border-radius: 6px; padding: 7px 9px; color: var(--ds-slate-500); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.field .icon { width: 14px; height: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ds-slate-300); }
.cart-total b { font-size: 16px; color: var(--ds-slate-900); }
.mini-btn { display: inline-block; font-size: 11px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--ds-blue-600); color: #fff; font-weight: 500; }

/* Agenda */
.cal { display: grid; grid-template-columns: 38px repeat(3, 1fr); gap: 4px; }
@media (min-width: 520px) { .cal { grid-template-columns: 38px repeat(5, 1fr); } }
.cal .h { font-size: 10px; color: var(--text-muted); text-align: center; padding-bottom: 2px; }
.cal .t { font-size: 10px; color: var(--ds-slate-400); text-align: right; padding-right: 4px; }
.cal .c { min-height: 30px; border-radius: 6px; background: #fff; border: 1px solid var(--ds-slate-100); }
.cal .c.ev { border: 0; padding: 4px 6px; font-size: 10px; color: #fff; background: var(--ds-blue-500); line-height: 1.25; overflow: hidden; }
.cal .c.ev.teal { background: var(--ds-teal); }
.cal .c.ev.orange { background: var(--ds-orange); color: #3b2800; }
.cal .c5 { display: none; }
@media (min-width: 520px) { .cal .c5 { display: block; } }

/* Ticket térmico */
.ticket-wrap { display: grid; place-items: center; padding: 22px; background: linear-gradient(180deg, var(--ds-slate-100), var(--ds-slate-200)); min-height: 300px; }
.ticket {
  width: 230px; background: #fff; padding: 16px 16px 20px; font-family: 'SF Mono', 'Roboto Mono', Menlo, monospace;
  font-size: 11px; color: #111; box-shadow: var(--shadow-3);
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom/12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom/12px 8px repeat-x;
}
.ticket .tc { text-align: center; }
.ticket hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.ticket .ln { display: flex; justify-content: space-between; gap: 8px; }

/* Varias sucursales */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(3, 1fr); } }
.feature h3 { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.feature p { color: var(--text-muted); margin: 0; }

/* Banda de migración */
.band {
  background: linear-gradient(120deg, var(--ds-teal-700), var(--ds-blue-700));
  color: #fff; border-radius: var(--radius-hero); padding: 36px 28px; box-shadow: var(--shadow-hero);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .band { grid-template-columns: 1.4fr 1fr; padding: 48px 52px; } }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .88); margin: 0; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .1); padding: 12px 14px; border-radius: var(--radius-md); }
.band li .icon { color: #a7f3e9; width: 20px; height: 20px; margin-top: 1px; }

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; color: var(--ds-slate-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--ds-blue-600); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* Contacto */
.contact { display: grid; gap: 36px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 60px; } }
.contact-info p { color: var(--text-muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .mod-icon { width: 38px; height: 38px; }
form.card { padding: 28px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-size: .85rem; font-weight: 500; color: var(--ds-slate-700); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 400 .95rem var(--font); color: var(--text);
  background: #fff; border: 1px solid var(--ds-slate-300); border-radius: var(--radius-sm); padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--ds-blue-500); box-shadow: 0 0 0 3px var(--ds-blue-50); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--text-muted); margin: 14px 0 0; }
.trap { position: absolute; left: -9999px; }

/* Pie */
.site-footer { background: var(--ds-slate-900); color: rgba(255, 255, 255, .72); padding: 44px 0; font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); opacity: .9; }

/* Confirmación del formulario */
.thanks { max-width: 520px; margin: 12vh auto; padding: 0 16px; text-align: center; }
.thanks img { margin: 0 auto 28px; }
.thanks p { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Capturas reales en tres tamaños (2026-10-16) ─────────────
   La captura de computadora va en el marco de navegador y la del
   teléfono encima, en su marco. En pantallas chicas se muestra solo
   la del teléfono, que es la que se lee a ese tamaño. */
.duo { position: relative; }
.duo .shot { display: none; }
.phone {
  width: min(280px, 78vw); margin: 0 auto; padding: 8px; background: var(--ds-slate-900);
  border-radius: 34px; box-shadow: var(--shadow-3), 0 0 0 1px rgba(15, 23, 42, .2);
}
.phone img { width: 100%; height: auto; border-radius: 27px; display: block; }
@media (min-width: 640px) {
  .duo .shot { display: block; }
  .duo { padding: 0 0 40px; }
  .duo .phone { position: absolute; right: -10px; bottom: 0; width: 26%; min-width: 132px; padding: 5px; border-radius: 22px; }
  .duo .phone img { border-radius: 18px; }
  .showcase.flip .duo .phone { right: auto; left: -10px; }
}

/* Lo que resuelve: dolor del dueño → respuesta */
.pains { display: grid; gap: 14px; }
@media (min-width: 700px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 22px; }
.pain q { display: block; quotes: '«' '»'; font-weight: 700; color: var(--ds-slate-900); font-size: 1.04rem; margin-bottom: 8px; }
.pain p { color: var(--text-muted); font-size: .94rem; margin: 0; }
.pain .tag { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--ds-teal-700); background: var(--ds-teal-50); border-radius: var(--radius-full); padding: 3px 10px; }

/* Imagen y dental */
.verticals { display: grid; gap: 18px; }
@media (min-width: 860px) { .verticals { grid-template-columns: 1fr 1fr; } }
.vertical { padding: 26px; }
.vertical .studies { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.vertical .studies span { font-size: .8rem; padding: 4px 10px; border-radius: var(--radius-full); background: var(--ds-slate-100); color: var(--ds-slate-600); }
.vertical ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.vertical li { display: flex; gap: 10px; align-items: flex-start; }
.vertical li .icon { width: 18px; height: 18px; color: var(--ds-teal); margin-top: 3px; flex: none; }

/* En cualquier pantalla: computadora, tableta y teléfono */
.devices-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.devices-tabs button {
  font: 500 .9rem var(--font); padding: 8px 16px; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--ds-slate-300); background: #fff; color: var(--ds-blue-700);
}
.devices-tabs button[aria-selected="true"] { background: var(--ds-blue-600); border-color: var(--ds-blue-600); color: #fff; }
.devices { display: grid; gap: 22px; align-items: end; justify-items: center; }
@media (min-width: 900px) { .devices { grid-template-columns: 2.4fr 1.15fr .62fr; } }
.devices figure { margin: 0; width: 100%; }
.devices figcaption { text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: 10px; }
.devices .shot img, .devices .tablet img, .devices .phone img { display: block; }
.tablet {
  padding: 10px; background: var(--ds-slate-900); border-radius: 22px; max-width: 380px; margin: 0 auto;
  box-shadow: var(--shadow-3);
}
.tablet img { width: 100%; height: auto; border-radius: 12px; }
.devices .phone { width: min(220px, 70vw); }
.devices .dev-desk, .devices .dev-tab { display: none; }
@media (min-width: 640px) { .devices .dev-tab { display: block; } }
@media (min-width: 900px) { .devices .dev-desk { display: block; } }

/* ── Páginas interiores (2026-10-16): dental, imagen y guía ─── */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(26, 146, 199, .35), transparent 60%),
    linear-gradient(135deg, var(--ds-blue-700) 0%, var(--ds-blue-900) 70%, var(--ds-blue-950) 100%);
  color: #fff; padding: 56px 0 64px;
}
@media (min-width: 720px) { .page-hero { padding: 72px 0 84px; } }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 860px; }
.page-hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.12rem; max-width: 760px; }
.page-hero .hero-cta { margin-top: 24px; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: rgba(255, 255, 255, .75); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

/* Lo que no hace (honestidad: la IA y el cliente lo agradecen) */
.limits { display: grid; gap: 12px; }
@media (min-width: 760px) { .limits { grid-template-columns: repeat(2, 1fr); } }
.limit { padding: 18px 20px; border-left: 4px solid var(--ds-orange); }
.limit h3 { font-size: 1rem; margin-bottom: 4px; }
.limit p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* Guía (artículo) */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin-top: 48px; font-size: 1.6rem; }
.article h3 { margin-top: 28px; font-size: 1.15rem; }
.article p, .article li { font-size: 1.04rem; line-height: 1.7; }
.article ol, .article ul { padding-left: 22px; }
.article li + li { margin-top: 8px; }
.article .meta { color: var(--text-muted); font-size: .9rem; }
.stats { display: grid; gap: 12px; margin: 22px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 20px; }
.stat b { display: block; font-size: 1.7rem; color: var(--ds-blue-700); line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: .94rem; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-card); }
.table-simple { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.table-simple th, .table-simple td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-simple th { background: var(--ds-slate-50); font-weight: 700; color: var(--ds-slate-700); }
.table-simple tr:last-child td { border-bottom: 0; }
.note { background: var(--ds-tint-blue); border-radius: var(--radius-md); padding: 14px 18px; font-size: .95rem; color: var(--ds-blue-800); }
.related { display: grid; gap: 14px; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a.card { display: block; padding: 20px; text-decoration: none; color: inherit; }
.related a.card:hover { box-shadow: var(--shadow-kpi); }
.related h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--ds-blue-700); }
.related p { margin: 0; color: var(--text-muted); font-size: .92rem; }
