/* ==========================================================================
   OVERLORD CLINIC — marca aplicada a las páginas de Clinic del sitio.
   Se carga DESPUÉS de producto.css (y portal.css donde aplica) y lo
   sobrescribe. Fuente: public/brand/clinic/ (tokens.css v1.0.0) y la guía
   de marca (marca-lab/salida/corp_clinic/entrega_final/guia_de_marca.html).

   Reglas de la marca que se respetan aquí:
   - Cobalto #0F3FD9 dominante. Papel #F6F0E4 = texto sobre cobalto y fondo
     de página/tarjeta. Tinta #0B1236 = texto sobre papel y panel oscuro.
   - Cempasúchil #FFB627 = ÚNICO acento, solo para lo que el usuario debe
     tocar o notar; sobre cobalto solo texto grande o decoración.
   - Sombras duras desplazadas, SIN desenfoque.
   - Titulares en Fraunces, cuerpo en Instrument Sans.
   - Nada rojo (ni siquiera para errores): un error se marca con la barra
     de cempasúchil + texto tinta.
   Las páginas de Clinic NO tienen modo oscuro (la marca es de un solo modo).
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/fonts/brand/Fraunces-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/brand/Fraunces-italic-latin.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/brand/InstrumentSans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* Red de seguridad: producto.css, portal.css y algunas páginas todavía nombran
   IBM Plex / Newsreader. En las páginas de Clinic esos nombres se resuelven a
   las fuentes de la marca, así que ninguna regla vieja (o futura) reintroduce
   otra tipografía ni obliga a descargar Plex. */
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/brand/InstrumentSans-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/brand/InstrumentSans-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/brand/Fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/brand/Fraunces-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root,
:root:not([data-theme="light"]),
:root[data-theme="dark"] {
  color-scheme: light;

  --cobalto: #0F3FD9;
  --cobalto-hondo: #0A2A94;
  --cobalto-luz: #3A66F0;
  --tinta: #0B1236;
  --papel: #F6F0E4;
  --papel-sombra: #E8DFCC;
  --cempasuchil: #FFB627;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-texto: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Variables semánticas de producto.css (marca Corp) repintadas con Clinic:
     así todo lo que producto.css deriva de ellas queda en la paleta de Clinic. */
  --c-fondo: #F6F0E4;
  --c-tinta: #0B1236;
  --c-campo: #0F3FD9;
  --c-iris: #FFB627;
  --c-tinta-suave: #3A4166;
  --c-superficie: #FCF9F1;
  --c-superficie-2: #EFE8D8;
  --c-tinta-tenue: #565C7E;
  --c-linea: #D8CDB4;
  --c-sobre-campo: #0B1236;   /* Clinic no usa paneles de campo: el texto va en tinta sobre tarjeta */
  --c-sobre-tinta: #F6F0E4;
  --f-titular: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-etiqueta: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --corte: 0px;
  --radio: 12px;
  --shadow: none;

  /* Nombres que usan producto.css / portal.css / las páginas, remapeados */
  --paper: #F6F0E4;
  --surface: #FCF9F1;
  --surface-2: #EFE8D8;
  --ink: #0B1236;
  --ink-soft: #3A4166;     /* 8.7:1 sobre papel */
  --ink-faint: #565C7E;    /* 5.7:1 sobre papel */
  --line: #D8CDB4;
  --line-soft: #E4DBC6;
  --line-strong: #7C82A3;  /* bordes de campos: >= 3:1 */
  --copper: #0F3FD9;       /* ahora: cobalto (bordes, foco, selección) */
  --copper-ink: #0F3FD9;   /* texto de énfasis/enlaces: 6.8:1 sobre papel */
  --copper-wash: #E8DFCC;
  --teal: #0A2A94;
  --teal-soft: #DCE3F8;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-texto);
  background: var(--papel);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
}
body::before { display: none; }           /* sin el degradado desenfocado de producto.css */
a { color: var(--cobalto); text-underline-offset: 3px; }
a:hover { color: var(--cobalto-hondo); }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "SOFT" 60, "opsz" 72; color: var(--tinta); }
body h1 { font-weight: 600; letter-spacing: -.02em; line-height: 1.08; max-width: 20ch; }
section.block h2, main h2 { font-weight: 600; letter-spacing: -.01em; }
.caso h3, .doctor h3, .vacio b, .modulo .nombre, .cifra .n, .ob-q { font-family: var(--f-display); font-weight: 600; }

.eyebrow {
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--cobalto);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cobalto); flex: none; }
.lede { color: var(--ink-soft); }
.crumbs, .crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--cobalto); }

/* ---------- Encabezado: banda cobalto con el lockup de Clinic ---------- */
header {
  background: var(--cobalto);
  color: var(--papel);
  border-bottom: 0;
  padding: 10px 0;
  box-shadow: 0 5px 0 var(--cobalto-hondo);
  position: relative;
}
header .wrap { padding-top: 0; padding-bottom: 0; }
header .wordmark { display: inline-flex; align-items: center; line-height: 0; }
header .wordmark img { display: block; height: 58px; width: auto; }
header nav { font-family: var(--f-texto); font-size: 15px; font-weight: 500; color: var(--papel); gap: 22px; flex-wrap: wrap; }
header nav { text-transform: none; letter-spacing: 0; }
header nav a { color: var(--papel); text-decoration: none; opacity: .92; border-bottom: 2px solid transparent; padding: 4px 0; }
header nav a:hover, header nav a:focus-visible { color: var(--papel); opacity: 1; border-bottom-color: var(--cempasuchil); text-decoration: none; }
header a:focus-visible { outline: 3px solid var(--cempasuchil); outline-offset: 3px; }

/* ---------- Franja de aviso de prototipo / herramienta interna ---------- */
.aviso-proto {
  background: var(--papel-sombra);
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
  font-family: var(--f-texto);
}
.aviso-proto b, .aviso-proto code { color: var(--cobalto-hondo); font-family: var(--f-texto); font-weight: 600; }

/* ---------- Pie ---------- */
footer { border-top: 1.5px solid var(--tinta); font-family: var(--f-texto); font-size: 13px; color: var(--ink-soft); }
footer a { color: var(--cobalto); }
footer a:hover { color: var(--cobalto-hondo); }

/* ---------- Bloques de contenido ---------- */
.price-hero::before, .cta-final::before { display: none; }
.price-hero {
  background: var(--tinta);
  color: var(--papel);
  border: 0;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 8px 8px 0 var(--cobalto-hondo);
}
.price-hero .amount { font-family: var(--f-display); font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 600; color: var(--cempasuchil); line-height: 1.2; }
.price-hero b, .price-hero strong { color: var(--papel); }
.price-hero .note { color: rgba(246,240,228,.9); font-size: 14px; }
.price-hero .note a, .price-hero a { color: var(--papel); text-decoration: underline; text-decoration-color: rgba(246,240,228,.6); }
.price-hero a:hover { color: #fff; text-decoration-color: var(--cempasuchil); }
.price-hero :focus-visible { outline-color: var(--cempasuchil); }

section.block p, main p { color: var(--ink-soft); }
main b, main strong { color: var(--tinta); }

.fit, .nota-honesta, .ob-nota, .fit {
  background: var(--papel-sombra);
  border-left: 4px solid var(--cobalto);
  border-radius: 0 12px 12px 0;
  color: var(--tinta);
}
.nota-honesta p { color: var(--ink-soft); }
.fit { padding: 14px 18px; }
.nota-honesta { padding: 18px 20px; }

.rules li { border-left: 3px solid var(--cobalto); padding-left: 16px; }
.rules .r-name { font-weight: 600; color: var(--tinta); }
.rules .r-desc { color: var(--ink-soft); }

.stat, .caso, .mini, .calc, .doctor, .modulo, .cifra, .cc-card, .variant {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.tag-note, .caso .tag { font-family: var(--f-texto); }

table.precios th { font-family: var(--f-texto); color: var(--ink-faint); border-bottom: 1.5px solid var(--tinta); }
table.precios td { border-bottom: 1px solid var(--line); color: var(--ink-soft); }
table.precios td b { color: var(--tinta); }
table.precios td.num, table.datos td { font-family: var(--f-texto); font-variant-numeric: tabular-nums; }
table.precios td.num { color: var(--cobalto); font-weight: 600; }
table.precios th:not(:first-child) { font-family: var(--f-display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--tinta); font-weight: 600; }
.tabla-scroll { border: 1.5px solid var(--tinta); border-radius: 14px; background: var(--surface); padding: 4px 14px; box-shadow: 6px 6px 0 var(--cobalto-hondo); margin-bottom: 26px; }
.tabla-scroll table.precios { margin: 6px 0; }

.faq h3 { font-family: var(--f-display); }

/* ---------- Llamado final ---------- */
.cta-final {
  background: var(--surface);
  border: 1.5px solid var(--tinta);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 8px 8px 0 var(--cobalto-hondo);
}
.cta-final > p:first-child { color: var(--tinta); font-size: 1.05rem; }
.cta-final .sec a:hover { text-decoration-thickness: 3px; }
.cta-final .sec a { display: inline; background: none; box-shadow: none; clip-path: none; padding: 0; color: var(--cobalto); font-weight: 500; text-decoration: underline; }
.cta-final .sec a:hover { color: var(--cobalto-hondo); background: none; }

/* ---------- Botón principal de Clinic: cempasúchil, sombra dura ---------- */
.cta-final > a,
.btn-pagar, .btn-principal, .ob-btn,
.tarjeta button[type="submit"],
.chat-input button, .conexion button {
  display: inline-block;
  background: var(--cempasuchil);
  color: var(--tinta);
  border: 0;
  border-radius: 999px;
  font-family: var(--f-texto);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: 14px 28px;
  clip-path: none;
  box-shadow: 0 5px 0 var(--cobalto-hondo);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cta-final > a { margin-top: 12px; }
.cta-final > a:hover, .btn-pagar:hover, .btn-principal:hover, .ob-btn:hover,
.tarjeta button[type="submit"]:hover, .chat-input button:hover, .conexion button:hover {
  background: var(--cempasuchil); color: var(--tinta); border: 0;
  transform: translateY(2px); box-shadow: 0 3px 0 var(--cobalto-hondo);
}
.cta-final > a:active, .btn-pagar:active, .btn-principal:active, .ob-btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--cobalto-hondo); }
.btn-pagar[disabled], .btn-principal[disabled], .ob-btn[disabled], .chat-input button[disabled] { opacity: .55; box-shadow: 0 3px 0 var(--cobalto-hondo); transform: none; }
.btn-principal { width: 100%; }
.chat-input button { padding: 0 20px; font-size: .95rem; }
.conexion button { font-size: .9rem; padding: 10px 20px; }
.tarjeta button[type="submit"] { width: 100%; }

.btn-sec, .boton.sec {
  background: transparent; color: var(--cobalto);
  border: 1.5px solid var(--cobalto); border-radius: 999px;
  font-family: var(--f-texto); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; text-decoration: none; display: inline-block;
}
.btn-sec:hover, .boton.sec:hover { background: var(--cobalto); color: var(--papel); border-color: var(--cobalto); }
.ob-back { font-family: var(--f-texto); color: var(--ink-soft); }
.ob-back:hover { color: var(--cobalto); }

/* ---------- Formularios ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=time], input[type=password], select, textarea {
  font-family: var(--f-texto);
  color: var(--tinta);
  background: var(--surface);
  border-color: var(--line-strong) !important;
  border-width: 1.5px !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalto) !important; }
.campo label, .planes legend, label { font-family: var(--f-texto); color: var(--tinta); }
.campo .ayuda, .totales, .ob-help { color: var(--ink-faint); }
input[type=checkbox], input[type=radio] { accent-color: var(--cobalto); }

.plan { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; }
.plan:has(input:checked) { border-color: var(--cobalto); box-shadow: 4px 4px 0 var(--cobalto-hondo); background: #fff; }
.plan .p-precio { font-family: var(--f-texto); font-weight: 600; color: var(--cobalto); font-variant-numeric: tabular-nums; }
.acepto { color: var(--ink-soft); }

.estado.info { background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-soft); }
.estado.error, .errores, .error-conexion, #error-slot .error-conexion, .error-detalle {
  background: #FFF3D6;
  border: 0;
  border-left: 5px solid var(--cempasuchil);
  border-radius: 0 12px 12px 0;
  color: var(--tinta);
}
.ob-error, .err { color: var(--tinta); font-weight: 600; border-left: 5px solid var(--cempasuchil); padding-left: 10px; }
.estado a { color: var(--cobalto); }

/* Onboarding */
.ob { background: var(--surface); border: 1.5px solid var(--tinta); border-radius: 18px; box-shadow: 8px 8px 0 var(--cobalto-hondo); }
.ob-bar { background: var(--papel-sombra); height: 6px; border-radius: 3px; }
.ob-bar span { background: var(--cobalto); }
.ob-opt { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; font-family: var(--f-texto); }
.ob-opt:hover { border-color: var(--cobalto); }
.ob-opt[aria-pressed="true"] { border-color: var(--cobalto); background: var(--papel-sombra); box-shadow: 3px 3px 0 var(--cobalto-hondo); }
.ob-meta, .ob-field label, .ob-resumen .rk { color: var(--ink-faint); }
.ob-resumen button { color: var(--cobalto); }

/* Alta manual y entrevista */
section.bloque { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; }
.qr-caja { background: var(--surface-2); border: 1.5px dashed var(--line-strong); }
pre#json-preview { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.btn-agregar { background: var(--surface); border-color: var(--line-strong); color: var(--cobalto); }
.btn-agregar:hover, .btn-quitar:hover { border-color: var(--cobalto); color: var(--cobalto-hondo); }
.doctor-card { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; }

.chat { background: var(--surface); border: 1.5px solid var(--tinta); border-radius: 18px; box-shadow: 6px 6px 0 var(--cobalto-hondo); }
.burbuja.asistente { background: var(--surface-2); color: var(--tinta); border-color: var(--line); }
.burbuja.dueno { background: var(--cobalto); color: var(--papel); }
.burbuja.pensando { color: var(--ink-soft); }
.chat-input { border-top: 1.5px solid var(--line); }
.check-circulo { background: var(--cobalto); color: var(--cempasuchil); }
#panel-listo section { background: var(--surface); border: 1.5px solid var(--tinta); border-radius: 18px; box-shadow: 6px 6px 0 var(--cobalto-hondo); }

/* Buzón interno */
.conexion { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.conexion input { font-family: var(--f-texto); }
.tarjeta { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.estado.ok { background: var(--teal-soft); color: var(--cobalto-hondo); }
.estado.err { background: #FFF3D6; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--cempasuchil); }
.comando code, .campos .v { font-family: var(--f-texto); }

/* ---------- Captura del tablero (clinic.html) ---------- */
.dash-shot { position: relative; margin: 26px 0 0; border: 1.5px solid var(--tinta); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 8px 8px 0 var(--cobalto-hondo); }
.dash-shot img { display: block; width: 100%; height: auto; }
.dash-pin { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--cempasuchil); color: var(--tinta); font: 700 12px/24px var(--f-texto); text-align: center; border: 2px solid var(--tinta); transform: translate(-50%, -50%); }
.dash-legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.dash-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.dash-legend .num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cempasuchil); color: var(--tinta); border: 2px solid var(--tinta); font: 700 11px/18px var(--f-texto); text-align: center; }
.dash-legend b { color: var(--tinta); }
.dash-caption { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- Portal del cliente ---------- */
.portal-ancho h1, .login-wrap h1 { max-width: none; }
.barra-cuenta { border-bottom: 1.5px solid var(--tinta); }
.barra-cuenta button { font-family: var(--f-texto); border-radius: 999px; border-color: var(--line-strong); color: var(--ink-soft); }
.barra-cuenta button:hover { color: var(--cobalto); border-color: var(--cobalto); }
.tarjeta label { font-family: var(--f-texto); font-weight: 600; letter-spacing: .04em; }
.boton {
  background: var(--cobalto); color: var(--papel);
  border-radius: 999px; font-family: var(--f-texto); font-weight: 600;
  padding: 10px 18px;
}
.boton:hover { background: var(--cobalto-hondo); color: var(--papel); }
.boton-google { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; font-family: var(--f-texto); }
.boton-google:hover { border-color: var(--cobalto); }
.modulo.apagado { background: transparent; border-style: dashed; }
.modulo .secs, .modulo .secs span { font-family: var(--f-texto); }
.estado-linea { font-family: var(--f-texto); background: var(--surface-2); }
.simulador { border: 1.5px dashed var(--cobalto); background: var(--papel-sombra); border-radius: 14px; }
.simulador h2 { color: var(--cobalto-hondo); }
.tabs { border-bottom: 1.5px solid var(--line); }
.tabs button { font-family: var(--f-texto); }
.tabs button[aria-selected="true"] { border-bottom: 3px solid var(--cobalto); color: var(--tinta); }
.cifra .t, .cc-card h3, .lista-usuarios .rol, .feed .cuando, .cita .h, .cc-hoy-lista .h { font-family: var(--f-texto); }
.pill { font-family: var(--f-texto); }
.pill.ok { background: var(--teal-soft); color: var(--cobalto-hondo); }
.pill.alerta { background: #FFF3D6; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--cempasuchil); }
.banner-cobro { background: #FFF3D6; border: 2px solid var(--cempasuchil); border-radius: 14px; }
.banner-cobro p { color: var(--tinta); }
.banner-cobro.unpaid { background: var(--tinta); border-color: var(--tinta); box-shadow: 5px 5px 0 var(--cobalto-hondo); }
.banner-cobro.unpaid p { color: var(--papel); }
.banner-cobro.unpaid .boton { background: var(--cempasuchil); color: var(--tinta); }
.banner-cobro.unpaid .boton:hover { background: var(--cempasuchil); color: var(--tinta); }
.vacio { border: 1.5px dashed var(--line-strong); border-radius: 14px; }
body.cc-body header { padding: 8px 0; }

/* ==========================================================================
   HERO DE clinic.html — "Cobalto y cempasúchil"
   Todo va dentro de .cl-hero para no chocar con .chat/.cta de otras páginas.
   ========================================================================== */
.cl-hero {
  position: relative;
  min-height: clamp(720px, 100vh, 1260px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(90% 70% at 85% 105%, var(--cobalto-luz) 0%, transparent 60%), var(--cobalto);
  color: var(--papel);
  isolation: isolate;
  line-height: 1.5;
}
.cl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cl-hero a { color: inherit; }
.cl-hero :focus-visible { outline: 3px solid var(--cempasuchil); outline-offset: 3px; border-radius: 4px; }
.cl-hero .ojo-fondo { position: absolute; right: -9%; bottom: -14%; width: min(62vw, 880px); z-index: -1; opacity: .5; pointer-events: none; }

.cl-hero .barra { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(24px, 5vw, 72px); flex-wrap: wrap; }
.cl-hero .logo { display: inline-flex; line-height: 0; text-decoration: none; }
.cl-hero .logo img { display: block; height: 58px; width: auto; }
.cl-hero .nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 15px; font-weight: 500; }
.cl-hero .nav a { text-decoration: none; opacity: .9; transition: opacity .2s; }
.cl-hero .nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--cempasuchil); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cl-hero .nav .nav-boton { opacity: 1; border: 1.5px solid rgba(246,240,228,.6); padding: 9px 18px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; text-decoration: none; }
.cl-hero .nav .nav-boton:hover { background: var(--papel); color: var(--cobalto); border-color: var(--papel); text-decoration: none; }

.cl-hero .cuerpo { flex: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: clamp(32px, 5vw, 88px); padding: clamp(16px, 3vh, 40px) clamp(24px, 5vw, 72px) clamp(40px, 6vh, 72px); }
.cl-hero .etiqueta { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: clamp(20px, 3vh, 32px); color: var(--papel); }
.cl-hero .etiqueta::before { content: ""; width: 36px; height: 2px; background: var(--cempasuchil); }
.cl-hero h1 { font-family: var(--f-display); font-variation-settings: "SOFT" 60, "opsz" 144; font-weight: 600; font-size: var(--clinic-titular, clamp(2.9rem, 6.9vw, 6.6rem)); line-height: .96; letter-spacing: -.028em; text-wrap: balance; color: var(--papel); max-width: none; margin: 0; }
.cl-hero h1 .remate { display: block; margin-top: .12em; font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144; color: var(--cempasuchil); }
.cl-hero .sub { max-width: 34em; margin: clamp(22px, 3.4vh, 36px) 0 0; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: rgba(246,240,228,.94); }
.cl-hero .sub strong { font-weight: 600; color: var(--papel); }
.cl-hero .acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(28px, 4vh, 44px); }
.cl-hero .cta { display: inline-flex; align-items: center; gap: 14px; background: var(--cempasuchil); color: var(--tinta); font-family: var(--f-texto); font-weight: 600; font-size: 1.06rem; text-decoration: none; padding: 18px 26px 18px 30px; border-radius: 999px; box-shadow: 0 6px 0 var(--cobalto-hondo); transition: transform .18s ease, box-shadow .18s ease; }
.cl-hero .cta svg { width: 20px; height: 20px; transition: transform .18s ease; }
.cl-hero .cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--cobalto-hondo); color: var(--tinta); }
.cl-hero .cta:hover svg { transform: translateX(4px); }
.cl-hero .cta:active { transform: translateY(6px); box-shadow: 0 0 0 var(--cobalto-hondo); }
.cl-hero .enlace-honesto { font-size: 1rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(246,240,228,.55); transition: text-decoration-color .2s; }
.cl-hero .enlace-honesto:hover { text-decoration-color: var(--cempasuchil); }
.cl-hero .nota-precio { margin: 18px 0 0; font-size: .95rem; color: rgba(246,240,228,.94); }

.cl-hero .escena { position: relative; display: flex; justify-content: center; }
.cl-hero .chat { position: relative; width: min(100%, 420px); background: var(--papel); color: var(--tinta); border: 0; border-radius: 26px; overflow: hidden; transform: rotate(1.6deg); box-shadow: 14px 14px 0 var(--cobalto-hondo); }
.cl-hero .chat-cab { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1.5px solid var(--papel-sombra); background: #FBF7EE; }
.cl-hero .avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--cobalto); display: grid; place-items: center; }
.cl-hero .avatar svg { width: 22px; height: auto; }
.cl-hero .chat-nombre { font-weight: 600; font-size: .98rem; line-height: 1.2; }
.cl-hero .chat-estado { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #4B5375; }
.cl-hero .chat-estado i { width: 8px; height: 8px; border-radius: 50%; background: var(--cempasuchil); box-shadow: 0 0 0 3px rgba(255,182,39,.28); }
.cl-hero .hilo { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 18px; }
.cl-hero .dia { align-self: center; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #565C7E; margin-bottom: 4px; }
.cl-hero .msg { max-width: 82%; padding: 10px 14px 8px; font-size: .95rem; line-height: 1.4; border-radius: 18px; opacity: 0; transform: translateY(10px); animation: cl-sube .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
.cl-hero .msg time { display: block; text-align: right; margin-top: 3px; font-size: .68rem; opacity: .7; }
.cl-hero .msg.paciente { align-self: flex-start; background: #fff; border: 1.5px solid var(--papel-sombra); border-bottom-left-radius: 5px; }
.cl-hero .msg.clinic { align-self: flex-end; background: var(--cobalto); color: var(--papel); border-bottom-right-radius: 5px; }
@keyframes cl-sube { to { opacity: 1; transform: none; } }

.cl-hero .decision { background: var(--tinta); color: var(--papel); padding: 18px 20px 20px; opacity: 0; animation: cl-sube .6s cubic-bezier(.2,.8,.2,1) 2.5s forwards; }
.cl-hero .decision-rotulo { display: flex; align-items: center; gap: 9px; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cempasuchil); }
.cl-hero .decision-rotulo svg { width: 16px; height: auto; }
.cl-hero .decision p { margin: 9px 0 14px; font-size: .93rem; line-height: 1.42; color: var(--papel); }
.cl-hero .decision-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-hero .decision .fake-btn { font-family: var(--f-texto); font-size: .88rem; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(246,240,228,.5); background: transparent; color: var(--papel); }
.cl-hero .decision .fake-btn.ok { background: var(--cempasuchil); border-color: var(--cempasuchil); color: var(--tinta); }

.cl-hero .limite { position: absolute; top: -30px; right: -30px; z-index: 2; width: 178px; background: var(--papel); color: var(--tinta); padding: 14px 16px; border-radius: 14px; font-size: .8rem; line-height: 1.38; font-weight: 500; transform: rotate(-3deg); box-shadow: 6px 6px 0 var(--cobalto-hondo); opacity: 0; animation: cl-sube .6s cubic-bezier(.2,.8,.2,1) 3s forwards; }
.cl-hero .limite b { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 700; margin-bottom: 3px; color: var(--tinta); }

.cl-hero .pruebas { display: flex; flex-wrap: wrap; border-top: 1.5px solid rgba(246,240,228,.32); margin: 0 clamp(24px, 5vw, 72px); }
.cl-hero .prueba { flex: 1 1 260px; display: flex; align-items: baseline; gap: 14px; padding: 20px 24px 22px 0; font-size: .95rem; line-height: 1.4; }
.cl-hero .prueba + .prueba { padding-left: 24px; border-left: 1.5px solid rgba(246,240,228,.32); }
.cl-hero .prueba-num { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--cempasuchil); font-variation-settings: "SOFT" 100, "opsz" 72; }
.cl-hero .prueba strong { font-weight: 600; }
.cl-hero .limites { margin: 0 clamp(24px, 5vw, 72px); padding: 16px 0 28px; border-top: 1.5px solid rgba(246,240,228,.32); font-size: .95rem; line-height: 1.45; color: rgba(246,240,228,.94); max-width: none; padding-right: max(0px, calc(100% - 82ch)); }
.cl-hero .limites strong { color: var(--cempasuchil); font-weight: 600; }

/* Contenido bajo el hero */
.cl-hero + main.wrap { padding-top: 48px; }
.cl-hero + main.wrap > .lede { margin-top: 0; }
main .lede { font-size: 1.12rem; }

/* Entre el quiebre a una columna (960px) y el desktop ancho, la columna
   de la escena se angosta más rápido que el texto del header del chat: la
   nota "Dónde se detiene" (posición absoluta, ancho fijo) terminaba
   encimada sobre "Consultorio Dra. Mendoza" entre ~961px y ~1300px de
   ancho de ventana. Mismo arreglo que en móvil (nota estática, apilada
   bajo el chat) pero conservando las dos columnas del héroe en este rango. */
@media (min-width: 961px) and (max-width: 1450px) {
  .cl-hero .escena { flex-direction: column; align-items: center; padding-bottom: 12px; }
  .cl-hero .limite { position: static; width: min(100%, 420px); margin-top: 18px; transform: none; }
}
@media (max-width: 960px) {
  .cl-hero .cuerpo { grid-template-columns: 1fr; }
  .cl-hero .nav a:not(.nav-boton) { display: none; }
  .cl-hero .escena { padding-bottom: 12px; flex-direction: column; align-items: center; }
  .cl-hero .chat { transform: none; box-shadow: 10px 10px 0 var(--cobalto-hondo); }
  .cl-hero .limite { position: static; width: min(100%, 420px); margin-top: 18px; }
  .cl-hero .ojo-fondo { width: 110vw; right: -30%; bottom: -4%; opacity: .35; }
}
@media (max-width: 640px) {
  .cl-hero .barra { padding: 16px 20px; }
  .cl-hero .nav .nav-boton { font-size: 13px; padding: 8px 14px; }
  .cl-hero .prueba + .prueba { padding-left: 0; border-left: 0; border-top: 1.5px solid rgba(246,240,228,.32); }
  .cl-hero .prueba { flex-basis: 100%; }
  .price-hero { box-shadow: 5px 5px 0 var(--cobalto-hondo); }
  .tabla-scroll, .cta-final, .dash-shot, .ob { box-shadow: 5px 5px 0 var(--cobalto-hondo); }
  header .wordmark img { height: 58px; }
  header nav { gap: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-hero .msg, .cl-hero .decision, .cl-hero .limite { animation: none; opacity: 1; transform: none; }
  .cl-hero .limite { transform: rotate(-3deg); }
  .cl-hero .cta, .cl-hero .cta svg, .cta-final > a, .btn-pagar, .btn-principal, .ob-btn { transition: none; }
}

/* Alta manual: la fila de horario no debe desbordar en móvil */
@media (max-width: 520px) {
  .dia-row { grid-template-columns: 84px 20px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .dia-row input { min-width: 0; padding-left: 6px; padding-right: 4px; }
}

/* ---------- Sello "¡Nuevo!" (2026-10-07) ----------
   Explosión cobalto con aro de cempasúchil que "sella" una novedad, con su fecha chiquita.
   Reutilizable: <span class="sello-nuevo">…</span> dentro de un h2.con-sello. Entra con un "pop"
   una sola vez; sin animación si la persona pidió movimiento reducido. */
h2.con-sello { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.sello-nuevo { position: relative; flex: none; width: 96px; height: 96px; transform: rotate(-12deg);
  display: inline-grid; place-items: center; animation: sn-pop .7s cubic-bezier(.2,1.6,.4,1) .2s both; }
.sello-nuevo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sello-nuevo .sn-rayos { fill: var(--cobalto); filter: drop-shadow(0 3px 0 var(--cobalto-hondo)); }
.sello-nuevo .sn-aro { fill: none; stroke: var(--cempasuchil); stroke-width: 2.4; stroke-dasharray: 3 3.2; }
.sello-nuevo .sn-txt { position: relative; display: grid; justify-items: center; line-height: 1; }
.sello-nuevo .sn-txt b { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--papel) !important; }
.sello-nuevo .sn-txt small { font-family: var(--f-texto); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cempasuchil) !important; margin-top: 4px; }
@keyframes sn-pop { 0% { transform: rotate(-40deg) scale(0); opacity: 0; } 70% { transform: rotate(-8deg) scale(1.12); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sello-nuevo { animation: none; } }
@media (max-width: 560px) {
  .sello-nuevo { width: 78px; height: 78px; }
  .sello-nuevo .sn-txt b { font-size: 16px; }
  .sello-nuevo .sn-txt small { font-size: 8.5px; }
}

/* ---------- "Clinic en 5 segundos" (2026-10-07) ----------
   La fuente única de los 5 diferenciadores (los mismos del anuncio A4 y de la propuesta del
   onboarding). Tarjetas de papel con número en cempasúchil, escaneables de un vistazo. */
.cinco { margin: 34px 0 10px; }
.cinco h2 { margin-top: 0; }
.cinco-lista { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: none; }
.cinco-lista li { display: flex; gap: 14px; align-items: flex-start; background: var(--c-superficie);
  border: 1.5px solid var(--tinta); border-radius: 14px; padding: 16px 18px; box-shadow: 5px 5px 0 var(--cobalto); margin: 0; }
.cinco-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cempasuchil); color: var(--tinta); font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1; }
.cinco-lista b { display: block; color: var(--tinta); font-weight: 600; line-height: 1.3; }
.cinco-lista span:not(.cinco-n) { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }

/* Propuesta del onboarding: los diferenciadores que más le sirven, según sus respuestas */
.ob-dif { margin-top: 16px; background: var(--c-superficie); border: 1.5px solid var(--tinta); border-radius: 14px; padding: 16px 18px; box-shadow: 5px 5px 0 var(--cobalto); }
.ob-dif .rk { color: var(--ink-faint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ob-dif ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.ob-dif li { color: var(--ink-soft); line-height: 1.45; }
.ob-dif li::marker { color: var(--cobalto); font-family: var(--f-display); font-weight: 700; }
.ob-dif li b { color: var(--tinta); }
.ob-dif-mas { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.ob-requisito { margin-top: 14px; padding: 14px 18px; }
.cinco-lista li:last-child:nth-child(odd) { grid-column: 1 / -1; }
