:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --ink: #10242f;
  --muted: #536a73;
  --line: #d6e0de;
  --accent: #128c5e;
  --accent-soft: #dff3ea;
  --chat: #e9e2d6;
  --bubble-in: #ffffff;
  --bubble-out: #d4f5c4;
  --price: #b4570a;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a1f; --surface: #15252c; --ink: #e7f0ee; --muted: #9db2b8; --line: #27404a;
    --accent: #3ccf8e; --accent-soft: #163a2e; --chat: #1b2b30; --bubble-in: #233a42; --bubble-out: #1f4a35; --price: #f2a457;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a1f; --surface: #15252c; --ink: #e7f0ee; --muted: #9db2b8; --line: #27404a;
  --accent: #3ccf8e; --accent-soft: #163a2e; --chat: #1b2b30; --bubble-in: #233a42; --bubble-out: #1f4a35; --price: #f2a457;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 32px 56px;
}
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 64px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-main { background: var(--accent); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Conversación de ejemplo */
.phone { background: var(--chat); border-radius: 22px; padding: 18px 14px; display: grid; gap: 8px; border: 1px solid var(--line); min-width: 0; }
.phone-head { font-size: 0.8rem; color: var(--muted); text-align: center; padding-bottom: 6px; }
.b { max-width: 86%; padding: 8px 11px 6px; border-radius: 12px; font-size: 0.92rem; line-height: 1.4; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.b small { display: block; text-align: right; font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.in { background: var(--bubble-in); justify-self: start; border-top-left-radius: 4px; }
.out { background: var(--bubble-out); justify-self: end; border-top-right-radius: 4px; }
.voz { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.voz i { flex: 1; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); opacity: 0.6; min-width: 80px; }

/* Qué hace */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.feature { display: grid; gap: 6px; align-content: start; min-width: 0; padding-top: 14px; border-top: 2px solid var(--line); }
.feature p { color: var(--muted); font-size: 0.95rem; }
.tag { justify-self: start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Planes */
.section-head { display: grid; gap: 10px; max-width: 40em; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan.destacado { border: 2px solid var(--accent); }
.plan .para { color: var(--muted); font-size: 0.92rem; }
.precio { display: grid; gap: 4px; padding-block: 12px; border-block: 1px dashed var(--line); }
.precio .etq { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.precio .grande { font-family: var(--font-num); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.precio .grande span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.precio .ini { font-family: var(--font-num); font-size: 1rem; color: var(--price); font-weight: 600; }
.precio .fund { font-size: 0.82rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.93rem; }

/* Condiciones */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.term { display: grid; gap: 4px; min-width: 0; }
.term b { font-family: var(--font-display); font-size: 1.05rem; }
.term p { color: var(--muted); font-size: 0.95rem; }

/* Casos */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; min-width: 0; }
.case p { color: var(--muted); font-size: 0.95rem; }

/* Contacto */
.contacto { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 32px; display: grid; gap: 14px; }
.contacto p { color: var(--bg); opacity: 0.85; max-width: 36em; }
.numero { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.numero .num { font-size: 1.6rem; font-weight: 600; user-select: all; }
.copiar { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: var(--bg); cursor: pointer; }
.nota { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .plans, .features, .cases, .terms { grid-template-columns: 1fr; }
  .wrap { gap: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .b { animation: entra 0.5s ease both; }
  .b:nth-child(3) { animation-delay: 0.15s; } .b:nth-child(4) { animation-delay: 0.3s; } .b:nth-child(5) { animation-delay: 0.45s; }
  .b:nth-child(6) { animation-delay: 0.6s; } .b:nth-child(7) { animation-delay: 0.75s; }
  @keyframes entra { from { transform: translateY(6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
}
.marca-aura { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.marca-aura svg { width: 44px; height: 44px; flex: none; }
.marca-aura em { font-style: normal; color: #1fa86c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marca-aura em { color: #3ccf8e; } }
:root[data-theme="dark"] .marca-aura em { color: #3ccf8e; }

/* Encabezado y pie comunes */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top .marca-aura { margin: 0; text-decoration: none; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
.top nav a, .pie a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .pie a:hover { color: var(--accent); }
.pie { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.pie nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Páginas legales */
.legal { max-width: 46em; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal .actualizado { color: var(--muted); font-size: 0.9rem; }
.legal .caja { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }

/* Página para conectar el número (registro integrado de Meta) */
.legal, .conectar form, .conectar label, .conectar fieldset { min-width: 0; }
.conectar form { gap: 14px; }
.conectar label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.conectar input[type=text], .conectar input:not([type]), .conectar input[inputmode] {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.conectar fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.conectar legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.conectar .opcion { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.conectar .opcion input { margin-top: 4px; flex: none; }
.conectar .opcion span { flex: 1; min-width: 0; }
.conectar button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.conectar button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.estado { font-size: 0.95rem; min-height: 1.4em; }
.estado[data-tipo=ok] { color: var(--accent); font-weight: 600; }
.estado[data-tipo=error] { color: #c0392b; }
.estado[data-tipo=aviso] { color: var(--muted); }

/* Chat "Pregúntale a Aura" */
.aura-chat-boton { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.aura-chat-boton svg { width: 22px; height: 22px; }
.aura-chat { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 76px; z-index: 50;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: none; flex-direction: column;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.aura-chat.abierto { display: flex; }
.aura-chat header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
  background: var(--ink); color: var(--bg); }
.aura-chat header b { font-family: var(--font-display); font-size: 1.05rem; }
.aura-chat header small { display: block; opacity: .75; font-size: .78rem; }
.aura-chat header button { background: transparent; border: 0; color: inherit; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.aura-chat .mensajes { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 8px; align-content: start; background: var(--chat); }
.aura-chat .m { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: .93rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.aura-chat .m.yo { justify-self: end; background: var(--bubble-out); border-top-right-radius: 4px; }
.aura-chat .m.aura { justify-self: start; background: var(--bubble-in); border-top-left-radius: 4px; }
.aura-chat .m a { color: var(--accent); }
.aura-chat .sugerencias { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.aura-chat .sugerencias button { font: inherit; font-size: .82rem; padding: 6px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.aura-chat form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.aura-chat input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); }
.aura-chat form button { font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.aura-chat form button:disabled { opacity: .5; }
.aura-chat .pie-chat { font-size: .72rem; color: var(--muted); padding: 0 12px 10px; }

/* "¿Te suena?": hoy vs. con Aura Bot */
.antes-despues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ad { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; min-width: 0; }
.ad p { margin: 0; padding: 14px 16px; font-size: .95rem; }
.ad b { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.ad .hoy { color: var(--muted); }
.ad .hoy b { color: #b4573f; }
.ad .con { background: var(--accent-soft); border-top: 1px solid var(--line); }
.ad .con b { color: var(--accent); }

/* Sin inventos */
.sin-inventos { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.garantias { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.garantias li { padding-left: 30px; position: relative; color: var(--muted); font-size: .95rem; min-width: 0; }
.garantias li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.garantias li b { color: var(--ink); display: block; }
.garantias a { color: var(--accent); }
@media (max-width: 860px) {
  .antes-despues, .garantias { grid-template-columns: 1fr; }
  .sin-inventos { padding: 20px; }
}
.legal a.btn-main { color: #fff; text-decoration: none; text-align: center; }
