/* Landing de QWER agents (/agente-ia). Mismos colores y tipografía que la home
   (tinta, papel, ember, Sora), con el chat del simulador en los tonos de WhatsApp. */

:root {
  --ink: #0A0A0B;
  --ink-2: #16181A;
  --ink-3: #24272A;
  --paper: #F6F6F4;
  --white: #FFFFFF;
  --text: #16181A;
  --muted: #5E5E66;          /* texto secundario sobre papel/blanco: contraste ≥ 5:1 */
  --muted-dark: #B4B4BC;     /* texto secundario sobre tinta */
  --line: rgba(10, 10, 11, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --ember: #A84A06;          /* acento sobre claro (blanco sobre ember: 5,8:1) */
  --ember-hover: #8F3F05;
  --ember-soft: #E08A4A;     /* acento sobre tinta (7,4:1) */
  --ember-tint: #FBEFE6;
  --ok: #1E7A46;
  --ok-tint: #E4F4EA;
  --warn: #8A5A00;
  --warn-tint: #FDF2DC;
  --bad: #A3261C;
  --bad-tint: #FBE6E4;
  --chat-bg: #EFEAE2;
  --bub-cliente: #D9FDD3;
  --bub-agente: #FFFFFF;
  --chat-head: #1F2C34;
  --radius: 16px;
  --radius-s: 10px;
  --max: 1120px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(10, 10, 11, 0.06), 0 12px 32px rgba(10, 10, 11, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Sora", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.oscuro :focus-visible { outline-color: var(--ember-soft); }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding: 72px 0; }
.seccion-titulo { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; max-width: 22ch; }
.seccion-sub { color: var(--muted); max-width: 60ch; margin-top: 12px; font-size: 17px; }
.antetitulo { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); margin-bottom: 12px; }
.oscuro .antetitulo { color: var(--ember-soft); }
.oscuro { background: var(--ink); color: var(--paper); }
.oscuro .seccion-sub { color: var(--muted-dark); }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, opacity 120ms ease;
}
.boton:active { transform: translateY(1px); }
.boton-primario { background: var(--ember); color: var(--white); }
.boton-primario:hover { background: var(--ember-hover); }
.boton-secundario { background: transparent; color: inherit; border-color: currentColor; }
.oscuro .boton-secundario { border-color: var(--line-dark); color: var(--paper); }
.oscuro .boton-secundario:hover { border-color: var(--paper); }
.boton-claro { background: var(--white); color: var(--ink); border-color: var(--line); }
.boton-claro:hover { border-color: var(--ink); }
.boton[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 11, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.barra-oferta { background: var(--ember); color: var(--white); font-size: 13.5px; line-height: 1.35; }
.barra-oferta .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 16px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.barra-oferta .tachado { color: var(--white); }
.barra-cuenta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.solo-escritorio, .solo-escritorio-linea { display: none; }
@media (min-width: 720px) { .solo-escritorio { display: inline-flex; } .solo-escritorio-linea { display: inline; } }
[data-oferta-cuenta] { white-space: nowrap; }
.cabecera-logo img { height: 20px; width: auto; }
.cabecera-nav { display: flex; align-items: center; gap: 8px; }
.cabecera-enlace { color: var(--paper); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.cabecera-enlace:hover { background: rgba(255, 255, 255, 0.08); }
.cabecera .boton { min-height: 40px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.cabecera .boton-grande { min-height: 40px; }
@media (max-width: 380px) { .cabecera-enlace { padding: 10px 6px; font-size: 14px; } .cabecera .boton { padding: 8px 12px; font-size: 14px; } }
/* La cabecera fija (barra de oferta + fila) no tapa el título al saltar a una sección. */
section[id] { scroll-margin-top: 116px; }

/* ---------- piezas de venta ---------- */
.tachado { text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 500; }
.resalte { color: var(--ember-soft); }
.boton-grande { min-height: 54px; padding: 14px 24px; font-size: 17px; }
.boton-ancho { width: 100%; }
.hero-oferta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255, 255, 255, 0.04); max-width: 520px; }
.hero-oferta-etiqueta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-soft); width: 100%; }
.hero-oferta-precio { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.hero-oferta .tachado { color: var(--muted-dark); font-size: 18px; }
.hero-oferta-nota { color: var(--muted-dark); font-size: 15px; }
.seccion-suave { background: #EFEFEC; }
.cta-centro { display: flex; justify-content: center; margin-top: 32px; }

.calc { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; } }
.calc > * { min-width: 0; }
.calc-entradas { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 22px; }
.calc-campo label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.calc-campo output { color: var(--ember); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-campo input[type="range"] { width: 100%; accent-color: var(--ember); height: 28px; cursor: pointer; }
.calc-campo input[type="number"] { max-width: 180px; }
.calc-resultado { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.calc-resultado-titulo { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-soft); }
.calc-resultado-valor { font-size: clamp(40px, 7vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-resultado-detalle { color: var(--muted-dark); font-size: 15px; }
.calc-comparacion { font-weight: 600; font-size: 16px; }
.calc-resultado .boton { margin-top: 8px; align-self: flex-start; }
.calc-nota { font-size: 12.5px; color: var(--muted-dark); }

.linea-tiempo { list-style: none; display: grid; gap: 16px; margin-top: 36px; counter-reset: paso; }
@media (min-width: 860px) { .linea-tiempo { grid-template-columns: repeat(3, 1fr); } }
.oscuro .tarjeta-destacada { border-color: var(--ember-soft); box-shadow: 0 0 0 1px var(--ember-soft); }
.tarjeta p strong { color: inherit; }
.oscuro .tarjeta p strong { color: var(--paper); }

.comparacion { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.comp-fila { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.comp-fila:last-child { border-bottom: 0; }
.comp-fila > span:not(:first-child) { text-align: center; display: flex; justify-content: center; color: var(--muted); }
.comp-fila svg { color: var(--bad); }
.comp-fila .comp-agente { color: var(--ok); font-weight: 600; }
.comp-fila .comp-agente svg { color: var(--ok); }
.comp-cabeza { background: #F6F6F4; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.comp-cabeza .comp-agente { color: var(--ember); }
@media (max-width: 480px) { .comp-fila { font-size: 13.5px; padding: 12px; } }

.oferta { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .oferta { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.oferta > * { min-width: 0; }
.oferta-incluye { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.oferta-incluye h3, .avisos h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.oferta-incluye ul { list-style: none; display: grid; gap: 12px; }
.oferta-incluye li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.oferta-incluye li svg, .oferta-prueba svg { color: var(--ok); flex: none; margin-top: 3px; }
.oferta-prueba { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.oferta-precio { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow); position: sticky; top: 132px; }
.oferta-lineas p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 15.5px; }
.oferta-lineas .tachado { color: var(--muted-dark); margin-right: 6px; }
.oferta-total { border-bottom: 0 !important; font-size: 22px !important; font-weight: 700; padding-top: 14px !important; }
.oferta-total span:last-child { color: var(--ember-soft); }
.oferta-cuenta { margin: 12px 0 16px; font-size: 14px; color: var(--muted-dark); }
.oferta-cuenta svg { color: var(--ember-soft); display: inline-block; vertical-align: -3px; margin-right: 6px; }
.oferta-cuenta strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.sellos { display: grid; gap: 12px; margin-top: 18px; }
.sello { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-dark); border-radius: 12px; font-size: 14px; color: var(--muted-dark); }
.sello svg { color: #6FD39B; flex: none; }
.sello strong { color: var(--paper); }
.planes-nota { margin-top: 14px; font-size: 14px; color: var(--muted); }

.quiz-rejilla { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .quiz-rejilla { grid-template-columns: 0.9fr 1.1fr; } .quiz-rejilla .quiz-caja { margin-top: 0; } }
.quiz-rejilla > * { min-width: 0; }
.quiz-resumen { list-style: none; display: grid; gap: 10px; margin-top: 22px; color: var(--muted-dark); font-size: 15px; }
.quiz-resumen li { display: flex; gap: 10px; align-items: flex-start; }
.quiz-resumen svg { color: var(--ember-soft); flex: none; margin-top: 2px; }
.quiz-resumen strong { color: var(--paper); font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .contenedor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
/* Los hijos de una rejilla no deben ensancharla con su contenido (la fila de sugerencias, el chat). */
.hero .contenedor > *, .sim-escena > *, .sim-config > * { min-width: 0; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 18ch; }
.hero-sub { margin-top: 18px; font-size: 18px; color: var(--muted-dark); max-width: 52ch; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-confianza { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; list-style: none; color: var(--muted-dark); font-size: 14px; }
.hero-confianza li { display: flex; align-items: center; gap: 8px; }
.hero-confianza svg { color: var(--ember-soft); flex: none; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero .contenedor { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- teléfono y chat ---------- */
.telefono {
  width: 100%; max-width: 380px; margin: 0 auto; background: var(--chat-head);
  border-radius: 32px; padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.telefono-pantalla { border-radius: 24px; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; }
.chat-cabecera { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--chat-head); color: #E9EDEF; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ember-soft); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.chat-nombre { font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-estado { font-size: 12px; color: #B8C3C9; }
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scroll-behavior: smooth; }
.hero .chat { min-height: 380px; }
.burbuja { max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; color: #111B21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); word-wrap: break-word; }
.burbuja-cliente { align-self: flex-end; background: var(--bub-cliente); border-top-right-radius: 2px; }
.burbuja-agente { align-self: flex-start; background: var(--bub-agente); border-top-left-radius: 2px; }
.burbuja-hora { display: block; text-align: right; font-size: 11px; color: #4F5E66; margin-top: 2px; }
.burbuja-plantilla { padding-bottom: 0; }
.plantilla-botones { display: grid; border-top: 1px solid #E9EDEF; margin: 8px -10px 0; }
.plantilla-botones button {
  background: none; border: 0; border-bottom: 1px solid #E9EDEF; padding: 10px; color: #027EB5;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.plantilla-botones button:last-child { border-bottom: 0; }
.plantilla-botones button:hover:not([disabled]) { background: #F5F6F6; }
.plantilla-botones button[disabled] { color: #8696A0; cursor: default; }
.plantilla-botones button[aria-pressed="true"] { color: #027EB5; text-decoration: underline; }
.nota-sim { align-self: center; max-width: 92%; background: #FFF3C4; color: #54420B; font-size: 12.5px; line-height: 1.45; padding: 6px 10px; border-radius: 8px; text-align: center; margin: 4px 0; }
.escribiendo { align-self: flex-start; background: var(--bub-agente); border-radius: 10px; padding: 10px 12px; display: flex; gap: 4px; }
.escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: punto 1s infinite ease-in-out; }
.escribiendo span:nth-child(2) { animation-delay: 0.15s; }
.escribiendo span:nth-child(3) { animation-delay: 0.3s; }
@keyframes punto { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aparece { animation: aparece 260ms ease both; }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero .burbuja { opacity: 0; animation: aparece 380ms ease both; animation-delay: calc(400ms + var(--i) * 900ms); }
.aviso-agenda {
  margin: 8px 12px 14px; align-self: stretch; background: var(--ink-2); color: var(--paper); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center;
  opacity: 0; animation: aparece 380ms ease both; animation-delay: calc(400ms + var(--i) * 900ms);
}
.aviso-agenda svg { color: #6FD39B; flex: none; }

/* ---------- simulador ---------- */
.sim-config { display: grid; gap: 20px; margin-top: 32px; }
.sim-rubros { border: 0; }
.sim-rubros legend, .campo-etiqueta { font-weight: 600; font-size: 15px; margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"], .campo input[type="number"], .campo select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); font-size: 16px;
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(168, 74, 6, 0.18); }
.campo-ayuda { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sim-nombre { max-width: 360px; }

.sim-escena { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.sim-escena .telefono { max-width: 400px; }
.sim-escena .chat { height: 420px; }
.sim-sugerencias { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 4px; background: var(--chat-bg); scrollbar-width: thin; }
.sim-sugerencias button {
  flex: none; background: var(--white); border: 1px solid #D1D7DB; color: #027EB5; font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 36px;
}
.sim-sugerencias button:hover { background: #F5F6F6; }
.sim-form { display: flex; gap: 8px; padding: 8px 10px 10px; background: var(--chat-bg); }
.sim-form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 0; padding: 10px 16px; background: var(--white); font-size: 16px; }
.sim-form input:focus { outline: 2px solid #027EB5; outline-offset: 0; }
.sim-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #00A884; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.sim-form button[disabled] { opacity: 0.6; cursor: wait; }
.sim-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 400px; margin-left: auto; margin-right: auto; }
.sim-pie button { background: none; border: 0; color: var(--ember); font-weight: 600; cursor: pointer; padding: 8px 0; font-size: 13px; text-decoration: underline; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-titulo { font-size: 18px; font-weight: 600; }
.panel-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.panel-bloque { margin-top: 20px; }
.panel-bloque h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.agenda-lista { list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.agenda-lista li { display: grid; grid-template-columns: 74px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.agenda-lista li:last-child { border-bottom: 0; }
.agenda-lista li.nueva { background: var(--ember-tint); }
.agenda-hora { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.agenda-detalle { min-width: 0; }
.agenda-detalle strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-detalle span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-vacia { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.estado { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.estado-pendiente { background: #EEF0F2; color: #3D434A; }
[hidden] { display: none !important; }
.estado-confirmada { background: var(--ok-tint); color: var(--ok); }
.estado-cancelada { background: var(--bad-tint); color: var(--bad); }
.bandeja { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; font-size: 14px; }
.bandeja-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bandeja-quien { font-weight: 600; }
.bandeja-estado { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.bandeja-estado.agente { background: #EEF0F2; color: #3D434A; }
.bandeja-estado.pidio { background: var(--warn-tint); color: var(--warn); }
.bandeja-estado.equipo { background: var(--ok-tint); color: var(--ok); }
.bandeja-texto { color: var(--muted); }
.bandeja button { justify-self: start; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.panel-cta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel-cta p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
@media (min-width: 900px) {
  .sim-config { grid-template-columns: 1fr auto; align-items: end; }
  .sim-escena { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; }
  .sim-pie { margin-left: 0; }
}

/* ---------- tarjetas ---------- */
.rejilla { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .rejilla-3 { grid-template-columns: repeat(3, 1fr); } .rejilla-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rejilla-que { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .rejilla-que { grid-template-columns: repeat(2, 1fr); } }
.tarjeta { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.oscuro .tarjeta { background: var(--ink-2); border-color: var(--line-dark); }
.tarjeta h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.tarjeta p { color: var(--muted); font-size: 15px; }
.oscuro .tarjeta p { color: var(--muted-dark); }
.tarjeta-icono { width: 40px; height: 40px; border-radius: 10px; background: var(--ember-tint); color: var(--ember); display: grid; place-items: center; margin-bottom: 14px; }
.oscuro .tarjeta-icono { background: rgba(224, 138, 74, 0.14); color: var(--ember-soft); }
.paso-num { font-size: 13px; font-weight: 600; color: var(--ember); letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.oscuro .paso-num { color: var(--ember-soft); }

/* ---------- precios ---------- */
.piloto {
  margin-top: 36px; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 28px 22px;
  display: grid; gap: 20px; align-items: center; box-shadow: var(--shadow);
}
.piloto-etiqueta { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft); }
.piloto-precio { font-size: clamp(34px, 6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.piloto-precio small { font-size: 0.4em; font-weight: 500; color: var(--muted-dark); letter-spacing: 0; }
.piloto p { color: var(--muted-dark); margin-top: 10px; max-width: 56ch; }
.piloto p strong { color: var(--paper); font-weight: 600; }
@media (min-width: 860px) { .piloto { grid-template-columns: 1fr auto; padding: 36px; } }
.planes { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 860px) { .planes { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.plan-nombre { font-size: 18px; font-weight: 600; }
.plan-para { font-size: 14px; color: var(--muted); margin-top: 2px; }
.plan-precio { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.plan-precio small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--ok); flex: none; margin-top: 3px; }
.plan-instalacion { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--muted); }
.plan-destacado { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.avisos { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.avisos h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.avisos ul { display: grid; gap: 8px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- preguntas ---------- */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); flex: none; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- quiz ---------- */
.quiz-caja { margin-top: 32px; background: var(--white); border-radius: 20px; padding: 24px 20px; color: var(--text); max-width: 720px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .quiz-caja { padding: 32px; } }
.quiz-progreso { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quiz-barra { height: 6px; border-radius: 999px; background: #EEEEEC; overflow: hidden; margin-bottom: 22px; }
.quiz-barra span { display: block; height: 100%; width: 0; background: var(--ember); transition: width 240ms ease; }
.quiz-pregunta { font-size: clamp(20px, 3vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.quiz-opciones { display: grid; gap: 10px; margin-top: 18px; border: 0; }
@media (min-width: 560px) { .quiz-opciones.dos-col { grid-template-columns: 1fr 1fr; } }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.opcion input:hover + span { border-color: var(--ink); }
.opcion input:checked + span { border-color: var(--ember); background: var(--ember-tint); font-weight: 600; }
.opcion input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.quiz-otro { margin-top: 12px; }
.quiz-acciones { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.quiz-atras { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; padding: 12px 0; min-height: 48px; }
.quiz-atras:hover { color: var(--ink); }
.quiz-campos { display: grid; gap: 16px; margin-top: 18px; }
.telefono-campo { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consentimiento input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ember); }
.consentimiento a { color: var(--ember); }
.oculto-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.quiz-error { background: var(--bad-tint); color: var(--bad); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
.quiz-error a { color: inherit; font-weight: 600; }
.resultado h3 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.resultado p { color: var(--muted); margin-top: 12px; }
.resultado .hero-acciones { margin-top: 22px; }
.resultado ul { margin-top: 14px; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.resultado-ref { font-size: 12px; color: var(--muted); margin-top: 18px; }

/* ---------- pie ---------- */
.pie { padding: 40px 0 96px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pie a { color: var(--muted-dark); }
.pie a:hover { color: var(--paper); }

/* ---------- barra móvil ---------- */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); transition: transform 200ms ease;
}
.barra-movil.visible { transform: none; }
.barra-movil .boton { width: 100%; }
@media (min-width: 900px) { .barra-movil { display: none; } .pie { padding-bottom: 40px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .burbuja, .aviso-agenda { animation-duration: 1ms; animation-delay: 0ms; }
  .escribiendo span { animation: none; }
}
