/* Teleserv Assistance — estilos (mobile-first) */
:root {
  --ink: #071a33;
  --ink-2: #0d2949;
  --blue: #0867d8;
  --blue-hover: #0758b8;
  --cyan: #26bfe8;
  --pale: #edf4f9;
  --line: #d7e1e9;
  --muted: #637386;
  --muted-strong: #56687c;
  --white: #ffffff;
  --text: #13243a;
  --on-dark: #e6eef6;
  --on-dark-muted: #9fb3c8;
  --line-dark: #1d3a5e;

  --p1: #b3261e;
  --p1-bg: #fde8e6;
  --p2: #8a5300;
  --p2-bg: #fdf0d9;
  --p3: #0758b8;
  --p3-bg: #e3effc;
  --ok: #1d7a46;
  --error: #b3261e;
  --wa: #1a7f4b;
  --wa-hover: #14683d;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(7, 26, 51, .06), 0 8px 24px rgba(7, 26, 51, .06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }
code { font-family: var(--font-mono); font-size: .9em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--white); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost-dark:hover { border-color: var(--cyan); color: var(--white); background: rgba(38,191,232,.08); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--pale); color: var(--blue-hover); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); color: var(--white); }
.btn-link { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--blue); font: 600 .95rem var(--font-body); text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 126px; height: auto; }
.brand-product {
  font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); padding-left: 10px; border-left: 1px solid var(--line);
}
.nav-toggle {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 16px; display: none;
}
.site-nav.is-open { display: block; }
html:not(.js) .site-nav { display: block; position: static; box-shadow: none; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav li a:hover { color: var(--blue); }
.site-nav .btn { width: 100%; }

/* ---------- Kicker / encabezados de sección ---------- */
.kicker {
  font: 700 .75rem/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.kicker-dark { color: var(--cyan); }
.section { padding: 64px 0; }
.section-pale { background: var(--pale); }
.section-pale .section-sub, .section-pale .card p { color: var(--muted-strong); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-sub { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.section-sub-dark { color: var(--on-dark-muted); }
.note { color: var(--muted); font-size: .9rem; margin: 20px 0 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(38,191,232,.14), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--on-dark); padding: 48px 0 56px; overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-lead { font-size: 1.0625rem; color: var(--on-dark-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: var(--on-dark); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--cyan); }

/* Tarjeta de incidente (hero) */
.incident-card {
  margin: 0; background: var(--white); color: var(--text); border-radius: 16px;
  padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 4px solid var(--cyan);
  max-width: 460px; width: 100%; justify-self: center;
}
.ic-head { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.ic-label { font: 700 .72rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ic-sev { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ic-title { font: 700 1.05rem/1.3 var(--font-head); color: var(--ink); margin: 0; }
.ic-sub { font-size: .9rem; color: var(--muted); margin: 2px 0 0; }
.ic-certainty { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ic-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 8px; }
.ic-row strong { font-family: var(--font-head); color: var(--ink); }
.meter { height: 8px; background: var(--pale); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; }
.ic-steps { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 10px; font-size: .9rem; }
.ic-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ic-caption { margin-top: 14px; font-size: .75rem; color: var(--muted); font-style: italic; }

/* Severidad y etiquetas */
.sev {
  display: inline-grid; place-items: center; flex: none;
  min-width: 40px; height: 32px; padding: 0 8px; border-radius: 6px;
  font: 800 .85rem/1 var(--font-head); letter-spacing: .02em;
}
.sev-p1 { background: var(--p1-bg); color: var(--p1); }
.sev-p2 { background: var(--p2-bg); color: var(--p2); }
.sev-p3 { background: var(--p3-bg); color: var(--p3); }
.sev-inline { min-width: 0; height: auto; padding: 2px 6px; font-size: .78rem; vertical-align: 1px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font: 700 .7rem/1.5 var(--font-body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.tag-read { background: #e2f4ea; color: var(--ok); }
.tag-data { background: var(--p3-bg); color: var(--p3); }
.tag-warn { background: var(--p2-bg); color: var(--p2); }

/* ---------- Tarjetas ---------- */
.grid-3 { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card-ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--pale); color: var(--blue); margin-bottom: 16px; flex: none; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-n { display: block; font: 800 .85rem/1 var(--font-head); color: var(--blue); letter-spacing: .08em; margin-bottom: 14px; }
.step h3 { display: flex; gap: 10px; align-items: flex-start; }
.step h3 .ico { color: var(--blue); margin-top: 2px; }
.step p { color: var(--muted-strong); margin: 0; }

.split { display: grid; gap: 16px; margin-top: 16px; }
.split-item { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.split-item p { color: var(--muted-strong); }
.list-check { display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Demo / celular ---------- */
.demo-grid { display: grid; gap: 40px; align-items: center; }
.demo-notes { display: grid; gap: 14px; margin: 28px 0; }
.demo-notes li { display: flex; gap: 12px; align-items: center; color: var(--on-dark); }
.demo-notes .sev, .demo-notes .tag { flex: none; }
.phone { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.phone-frame {
  background: #0b1626; border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #1f3350;
}
.phone-bar {
  display: flex; align-items: center; gap: 10px; background: var(--ink-2); color: var(--white);
  border-radius: 26px 26px 0 0; padding: 14px 16px;
}
.phone-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.phone-avatar img { width: 18px; height: auto; }
.phone-name { display: flex; flex-direction: column; font: 700 .95rem/1.2 var(--font-head); }
.phone-name small { font: 400 .75rem var(--font-body); color: var(--on-dark-muted); }
.chat {
  background: #e7edf2; padding: 12px 10px 16px; height: 520px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth;
}
.chat-day { align-self: center; font-size: .72rem; background: #d5e0e9; color: #3b4d61; padding: 2px 10px; border-radius: 6px; margin: 0 0 4px; }
.msg {
  max-width: 88%; padding: 8px 10px 6px; border-radius: 10px; font-size: .86rem; line-height: 1.45;
  color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative;
}
.msg p { margin: 0 0 6px; }
.msg code { background: #eef2f6; padding: 1px 5px; border-radius: 4px; font-size: .82rem; color: #0b2f5a; word-break: break-word; }
.msg-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.msg-in { align-self: flex-start; background: var(--white); border-top-left-radius: 2px; }
.msg-meta { display: block; text-align: right; font-size: .68rem; color: #5b6b7a; }
.msg-sev { border-left: 3px solid var(--p1); padding-left: 8px; }
.msg-muted { color: #5b6b7a; font-size: .8rem; }
.msg-warn { background: #fff4e0; border-radius: 6px; padding: 6px 8px; }
.msg-revert { background: #e9f1fb; border-radius: 6px; padding: 6px 8px; }
.msg-typing { display: none; align-self: flex-start; background: var(--white); padding: 12px 14px; gap: 4px; }
.msg-typing span { width: 7px; height: 7px; background: #8a9aa9; border-radius: 50%; animation: typing 1s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
.phone-input {
  display: flex; justify-content: space-between; align-items: center; background: #f2f5f8; color: #6b7b8b;
  border-radius: 0 0 26px 26px; padding: 12px 18px; font-size: .9rem;
}
.phone-caption { text-align: center; color: var(--on-dark-muted); font-size: .8rem; font-style: italic; margin-top: 12px; }

/* Animación (solo con JS activo y sin reduced-motion) */
.chat.is-animated [data-step] { display: none; }
.chat.is-animated [data-step].is-visible { display: block; animation: msg-in .35s ease-out both; }
.chat.is-animated .msg-typing.is-visible { display: flex; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Incidentes ---------- */
.incidents { display: grid; gap: 12px; }
.incident {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.incident h3 { font-size: 1rem; margin-bottom: 4px; }
.incident p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Cobertura ---------- */
.coverage { display: grid; gap: 12px; }
.cov { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cov h3 { font-size: .95rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 600 .85rem/1 var(--font-body); color: var(--ink-2); background: var(--pale);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}

/* ---------- Precios ---------- */
.pricing { display: grid; gap: 16px; align-items: start; }
.plan, .calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan { border-top: 4px solid var(--blue); }
.plan-kicker { font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.plan h3 { font-size: 1.35rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; color: var(--ink); }
.plan-cur { font: 700 1.1rem var(--font-head); }
.plan-amount { font: 800 3.25rem/1 var(--font-head); letter-spacing: -0.03em; }
.plan-per { color: var(--muted); font-size: .95rem; }
.plan .list-check { margin-bottom: 20px; }
.plan-tax { font-size: .85rem; color: var(--muted); margin: 0; }
.calc h3 { font-size: 1.15rem; margin-bottom: 16px; }
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper input {
  width: 100%; min-width: 0; text-align: center; font: 700 1.25rem var(--font-head); color: var(--ink);
  border: 1px solid var(--line); border-left: 0; border-right: 0; height: 52px; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  width: 52px; flex: none; height: 52px; border: 1px solid var(--line); background: var(--pale);
  font: 600 1.4rem/1 var(--font-body); color: var(--ink); cursor: pointer;
}
.stepper-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stepper-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stepper-btn:hover { background: var(--line); }
.calc .field-help { margin-top: 8px; }
.calc-out { margin: 20px 0 12px; display: grid; gap: 10px; }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.calc-total dt { color: var(--ink); font-weight: 600; }
.calc-total dd { font: 800 1.2rem var(--font-head); }
.calc .btn { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 700 1.05rem/1.4 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 68ch; }

/* ---------- Formulario ---------- */
.contract-grid { display: grid; gap: 32px; align-items: start; }
.mini-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: ms; display: grid; gap: 12px; }
.mini-steps li { counter-increment: ms; display: flex; gap: 12px; align-items: baseline; color: var(--muted-strong); }
.mini-steps li::before {
  content: counter(ms); flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--white); font: 700 .8rem var(--font-head);
}
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.form-req { font-size: .85rem; color: var(--muted); }
.req { color: var(--error); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #b6c4d1; border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font-body); color: var(--text); background: var(--white);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23071a33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #7b8a99; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-help { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .875rem; color: var(--error); font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 0 16px; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.field-check label { font-weight: 400; color: var(--text); margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.form-summary {
  border: 1px solid var(--error); background: #fdf1f0; color: var(--p1); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 18px; font-weight: 600;
}
.form-done h3 { font-size: 1.25rem; }
.form-done p { color: var(--muted); }
.form-preview {
  white-space: pre-wrap; word-break: break-word; font: .85rem/1.5 var(--font-mono);
  background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  margin: 0 0 18px; max-height: 280px; overflow: auto;
}
.form-done .btn { margin-bottom: 10px; }
.form-done:focus, .form-done:focus-visible { outline: none; }
.mail-to { overflow-wrap: anywhere; }

.contact-direct { margin: 24px 0 8px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-direct-label { font: 700 .75rem/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); margin: 0 0 6px; }
.contact-direct-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 800 1.25rem var(--font-head); color: var(--wa); text-decoration: none; }
.contact-direct-link:hover { color: var(--wa-hover); text-decoration: underline; }
.contact-direct-alt { font-size: .9rem; color: var(--muted-strong); margin: 4px 0 0; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: .93rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--cyan); }
.footer-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { max-width: 42ch; }
.footer-link { font-weight: 600; }
.footer-office { font-style: normal; }
.footer-office h2 { font: 700 .95rem/1.3 var(--font-head); color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.footer-office p { margin-bottom: 8px; }
.footer-office a { display: inline-block; padding: 3px 0; }
.disclaimer {
  margin: 28px 0; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  color: var(--on-dark); font-size: .88rem; background: rgba(255,255,255,.03);
}
.footer-bottom { display: flex; flex-direction: column; gap: 12px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav a { padding: 6px 0; }

/* ---------- Páginas legales ---------- */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); max-width: 72ch; }
.legal ul { padding-left: 1.2em; }
.draft-banner {
  background: var(--p2-bg); color: var(--p2); border: 1px solid #e8c88f; border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 700; margin-bottom: 28px;
}
.legal-meta { color: var(--muted); font-size: .9rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; padding: 10px 0; }

/* ================= Breakpoints ================= */
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .incidents { grid-template-columns: repeat(2, 1fr); }
  .coverage { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: 88px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .brand img { width: 140px; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  html:not(.js) .header-inner { height: var(--header-h); flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .site-nav, html:not(.js) .site-nav {
    position: static; display: flex; align-items: center; gap: 24px;
    padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 0; font-size: .95rem; color: var(--ink-2); }
  .site-nav .btn { width: auto; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .incidents { grid-template-columns: repeat(3, 1fr); }
  .coverage { grid-template-columns: repeat(4, 1fr); }
  .contract-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .contract-copy { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (min-width: 1280px) {
  .incidents { grid-template-columns: repeat(5, 1fr); }
  .incident { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chat { scroll-behavior: auto; }
}
