/* ==========================================================================
   ReparaHoy Madrid — hoja de estilos
   Tema claro, limpio y premium · mobile-first · sin frameworks
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F5F7FB;
  --bg-3: #EEF2F8;
  --surface: #FFFFFF;
  --border: #E3E8F0;
  --border-2: #CBD5E3;
  --text: #14295A;
  --muted: #4A5A7A;
  --muted-2: #5F6B85;
  --navy: #1B3A7A;
  --navy-2: #24499A;
  --navy-3: #2F5AB5;
  --primary: #D93025;
  --primary-hover: #E8483F;
  --primary-soft: #FDECEA;
  --primary-ink: #FFFFFF;
  --accent: #2A5DB0;
  --accent-soft: #E9F0FB;
  --wa: #25D366;
  --wa-hover: #3BE07A;
  --wa-ink: #062B14;
  --success: #16A34A;
  --success-soft: #E8F8EE;
  --warn: #D97706;
  --warn-soft: #FEF3E2;
  --danger: #DC2626;
  --danger-soft: #FEECEC;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --header-h: 64px;
  --gutter: 16px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.06), 0 4px 14px -6px rgba(15, 27, 51, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(15, 27, 51, 0.18), 0 2px 6px -2px rgba(15, 27, 51, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(15, 27, 51, 0.28), 0 8px 20px -10px rgba(15, 27, 51, 0.1);
  --shadow-amber: 0 12px 28px -10px rgba(217, 48, 37, 0.5);
  --shadow-wa: 0 12px 28px -10px rgba(37, 211, 102, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100svh; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 122, 26, 0.3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
strong { font-weight: 600; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 72px; } body { font-size: 17px; } }

/* ── Layout ── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8vw, 110px); position: relative; scroll-margin-top: calc(var(--header-h) + 8px); }
.section-elevated { background: var(--bg-2); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .kicker { color: rgba(255, 255, 255, 0.72); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--primary); }
.center .kicker::before { display: none; }
h2.title, .final-cta h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem); margin-top: 16px; max-width: 62ch; text-wrap: pretty; }
.center .lead { margin-inline: auto; }
.amber-text { color: var(--primary); }
.grad-text { color: var(--primary); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.tnum { font-variant-numeric: tabular-nums; }
.below-fold { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ── Revelado al hacer scroll ── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s; position: relative; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-amber); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: var(--shadow-wa); }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }
.btn-ai { background: var(--navy); color: #fff; box-shadow: 0 12px 28px -12px rgba(15, 27, 51, 0.6); }
.btn-ai:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-2); }
.section-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9rem; border-radius: 11px; }
.btn-sm .icon { width: 17px; height: 17px; }
.btn-block { width: 100%; }
.btn-round { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.pulse::before { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--primary); opacity: 0; animation: pulseRing 3s ease-out infinite; pointer-events: none; }
.btn-wa.pulse::before { border-color: var(--wa); }
.btn-ai.pulse::before { border-color: var(--navy); }
@keyframes pulseRing { 0% { transform: scale(0.96); opacity: 0.8; } 60% { transform: scale(1.14); opacity: 0; } 100% { opacity: 0; } }

/* ── Chips ── */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); color: var(--navy); font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.chip .icon { width: 18px; height: 18px; color: var(--primary); }
.chip:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.chip:active { transform: scale(0.97); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active .icon { color: var(--primary); }
.chip-sm { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: -2px -2px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll > * { scroll-snap-align: start; flex: none; }
@media (min-width: 768px) { .chip-scroll { flex-wrap: wrap; overflow: visible; } }

/* ── Tarjetas ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; box-shadow: var(--shadow-sm); }
.glow-border { box-shadow: var(--shadow-lg); border-color: var(--border); }
[data-tilt] { transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s; }
[data-tilt]:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }

/* ── Formularios ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 0.86rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.label .opt { font-weight: 400; color: var(--muted-2); font-size: 0.78rem; }
.input, .textarea, .select { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font-size: 16px; line-height: 1.45; transition: border-color 0.2s, box-shadow 0.2s; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.textarea { resize: none; min-height: 84px; }
.textarea.is-invalid { border-color: var(--danger); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234B5875' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.help { font-size: 0.8rem; color: var(--muted-2); line-height: 1.5; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: 0.88rem; cursor: pointer; transition: all 0.2s; }
.radio-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--primary)); outline: none; margin: 10px 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: var(--shadow-sm); cursor: pointer; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); cursor: pointer; }
.range-out { color: var(--primary); font-weight: 700; }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.header.is-scrolled, body.menu-open .header { background: rgba(255, 255, 255, 0.94); border-color: var(--border); box-shadow: 0 8px 24px -18px rgba(15, 27, 51, 0.3); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1; color: var(--navy); display: block; }
.logo-text .hoy { color: var(--primary); }
.logo-sub { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.nav { display: none; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.is-active { color: var(--navy); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.logo { flex: none; }
.header-call, .header-wa { display: none; }
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--navy); display: grid; place-items: center; flex: none; transition: background 0.2s, border-color 0.2s; }
.theme-toggle:hover { border-color: var(--navy); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.logo img { height: 42px; width: auto; max-width: 190px; display: block; }
@media (max-width: 399px) { .logo img { height: 34px; max-width: 140px; } }
.header-call-mini { display: inline-flex; box-shadow: none; }
.nav-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--navy); background: var(--surface); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.25s, background 0.25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s, top 0.25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav-menu { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 20px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; z-index: 59; }
.nav-menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.25s, transform 0.25s, visibility 0s 0s; }
.nav-menu a { padding: 12px 10px; border-radius: 10px; font-weight: 500; font-size: 1.05rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.nav-menu a:hover { background: var(--bg-2); }
.nav-menu a.is-active { color: var(--primary); }
.nav-menu a .icon { color: var(--muted-2); }
.nav-menu .nav-cta { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 399px) { .header-call-mini.btn-wa { display: none; } .logo-text { font-size: 1.25rem; } .logo-sub { letter-spacing: 0.22em; } }
@media (min-width: 1024px) {
  .header .container { gap: 16px; }
  .nav { display: flex; gap: 0; flex: 1; justify-content: center; min-width: 0; }
  .nav a { font-size: 0.88rem; padding: 8px 9px; }
  .nav-toggle, .nav-menu { display: none; }
  .header-call, .header-wa { display: inline-flex; }
  .header-call { padding: 0 16px; font-size: 0.95rem; }
  .header-wa { box-shadow: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  .header-wa .icon { width: 22px; height: 22px; }
  .header-call-mini { display: none; }
}
@media (min-width: 1200px) { .nav a { font-size: 0.92rem; padding: 8px 12px; } .hero-ctas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1500px) {
  .header-wa { width: auto; height: auto; min-height: 44px; padding: 0 16px; border-radius: var(--radius); font-size: 0.95rem; gap: 8px; }
  .header-wa .icon { width: 20px; height: 20px; }
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%); isolation: isolate; }
.hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-blob-1 { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; right: -20%; top: -30%; background: radial-gradient(circle, rgba(217, 48, 37, 0.12), transparent 65%); }
.hero-blob-2 { width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; left: -20%; bottom: -10%; background: radial-gradient(circle, rgba(42, 93, 176, 0.14), transparent 65%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(80px, 14vw, 200px); color: var(--navy); opacity: 0.07; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; width: 100%; min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.hero-grid > * { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; max-width: 100%; }
.hero-badge span.txt { white-space: normal; }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: ping 2.2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.hero-title { font-size: clamp(2.2rem, 3.2vw + 0.9rem, 3.7rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(20px); animation: wordIn 0.7s var(--ease-out) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
.hero-title .line2 { display: block; color: var(--primary); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem); max-width: 56ch; text-wrap: pretty; }
.hero-sub strong { color: var(--navy); }
.hero-ctas { display: grid; gap: 10px; margin-top: 24px; }
.trust-row { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.trust-row::-webkit-scrollbar { display: none; }
.trust-row li { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 500; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); white-space: nowrap; }
.trust-row .icon { width: 16px; height: 16px; color: var(--success); }
.hero-aside { position: relative; }
.hero-tools { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.hero-tools-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.hero-tools .chip { background: #fff; border-color: var(--border-2); font-weight: 600; box-shadow: var(--shadow-sm); }
.hero-tools .chip .icon { color: var(--accent); }
.hero-tools .chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.hero-brands { margin-top: 22px; font-size: 0.82rem; color: var(--muted-2); }
.hero-brands strong { color: var(--muted); font-weight: 600; }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; }
  .hero-badge { margin-bottom: 14px; }
  .hero-sub { margin-top: 14px; font-size: 1.05rem; }
  .hero-ctas { margin-top: 18px; grid-template-columns: 1fr; }
  .hero-ctas .btn { white-space: normal; padding: 0 16px; }
  .trust-row { margin-top: 14px; }
  .hero-tools { margin-top: 16px; padding-top: 14px; }
  .hero-brands { margin-top: 14px; }
  .diag { padding: 18px; }
  .diag-desc { margin-bottom: 10px; }
  .diag .chip-scroll { margin-bottom: 10px; }
  .diag .chip { min-height: 34px; font-size: 0.8rem; padding: 0 10px; }
  .textarea-wrap .textarea { min-height: 58px; }
  .diag-submit { margin-top: 10px; min-height: 52px; }
  .diag-note { margin-top: 8px; }
  .trust-row { flex-wrap: wrap; overflow: visible; }
}

/* ── Widget "Cuéntanos qué le pasa" ── */
.diag { border-radius: var(--radius-xl); padding: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); position: relative; animation: diagIn 0.8s var(--ease-out) 0.3s both; }
@keyframes diagIn { from { opacity: 0; transform: translateY(14px); } }
.diag-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.diag-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); }
.diag-tag .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 1.8s infinite; }
.diag-tag .icon { width: 14px; height: 14px; }
.diag-tag.muted { background: var(--bg-2); color: var(--muted); }
.diag-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 4px; color: var(--navy); }
.diag-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.diag .chip-scroll { margin-bottom: 12px; }
.diag .chip { min-height: 38px; font-size: 0.85rem; padding: 0 12px; }
.textarea-wrap { position: relative; }
.textarea-wrap .textarea { padding-right: 56px; min-height: 68px; }
.mic { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); transition: all 0.2s; }
.mic:hover { color: var(--navy); border-color: var(--navy); }
.mic.is-on { color: #fff; background: var(--danger); border-color: var(--danger); animation: micPulse 1.2s infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.15); } }
.mic .icon { width: 20px; height: 20px; }
.diag-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 0.78rem; color: var(--muted-2); flex-wrap: wrap; }
.diag-meta .noises { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.diag-count { font-variant-numeric: tabular-nums; }
.diag-more { margin-top: 10px; }
.diag-more summary { list-style: none; cursor: pointer; font-size: 0.86rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; user-select: none; }
.diag-more summary::-webkit-details-marker { display: none; }
.diag-more summary .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.diag-more[open] summary .icon { transform: rotate(180deg); }
.diag-more .form-row { margin-top: 8px; }
.diag-submit { margin-top: 14px; }
.diag-note { margin-top: 10px; font-size: 0.75rem; color: var(--muted-2); line-height: 1.5; }
.safety { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); border: 1px solid rgba(220, 38, 38, 0.35); color: #7F1D1D; font-size: 0.9rem; animation: safetyIn 0.35s var(--ease-out); }
.safety .icon { width: 22px; height: 22px; color: var(--danger); flex: none; animation: blinkOnce 0.6s; }
.safety strong { color: #7F1D1D; }
.safety .btn { margin-top: 10px; }
@keyframes safetyIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes blinkOnce { 50% { opacity: 0.2; } }
.diag-result { margin-top: 16px; }

/* ── Estados IA: pensando y resultados ── */
.ai-thinking { padding: 22px; border-radius: var(--radius-lg); border: 1px dashed var(--border-2); background: var(--bg-2); text-align: center; position: relative; overflow: hidden; }
.ai-scan { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.ai-scan span { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); animation: dots 1.2s infinite; }
.ai-scan span:nth-child(2) { animation-delay: 0.2s; } .ai-scan span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.ai-thinking-text { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.ai-card { border-radius: var(--radius-lg); padding: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); animation: cardIn 0.5s var(--ease-out); text-align: left; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.ai-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ai-urg { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid; animation: pop 0.4s var(--ease-spring); }
.ai-urg i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ai-urg-low { color: var(--success); border-color: rgba(22, 163, 74, 0.35); background: var(--success-soft); }
.ai-urg-mid { color: var(--warn); border-color: rgba(217, 119, 6, 0.35); background: var(--warn-soft); }
.ai-urg-high { color: var(--danger); border-color: rgba(220, 38, 38, 0.35); background: var(--danger-soft); }
.ai-urg-high i { animation: ping 1.2s infinite; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.ai-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); font-size: 1.3rem; margin-bottom: 8px; }
.ai-summary { color: var(--muted); font-size: 0.95rem; }
.ai-grid { display: grid; gap: 18px; margin-top: 18px; }
.ai-grid .ai-h { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.field-error { color: var(--danger); font-size: 0.84rem; font-weight: 500; margin-top: 8px; }
.ai-causes { display: grid; gap: 10px; }
.ai-cause { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); animation: cardIn 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 100ms); }
.ai-cause-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-cause-name { font-weight: 600; font-size: 0.95rem; }
.ai-prob { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.ai-prob-alta { background: var(--navy); color: #fff; }
.ai-prob-media { background: var(--warn-soft); color: var(--warn); }
.ai-prob-baja { background: var(--bg-3); color: var(--muted); }
.ai-bar { height: 5px; border-radius: 3px; background: #E3E8F0; overflow: hidden; margin-bottom: 6px; }
.ai-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--navy), var(--primary)); transform-origin: left; animation: fill 0.9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes fill { from { transform: scaleX(0); } }
.ai-cause p { font-size: 0.85rem; color: var(--muted); }
.ai-steps { display: grid; gap: 8px; }
.ai-steps li { position: relative; padding-left: 28px; font-size: 0.92rem; }
.ai-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.ai-steps li.do::before { background-color: var(--success-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ai-steps li.dont::before { background-color: var(--danger-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.ai-steps li.cause::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.ai-urg-why { margin-top: 12px; font-size: 0.82rem; color: var(--muted-2); font-style: italic; }
.ai-verdict { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--primary-soft); border: 1px solid rgba(255, 122, 26, 0.35); }
.ai-verdict-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.ai-verdict-icon svg { width: 20px; height: 20px; }
.ai-verdict strong { display: block; margin-bottom: 4px; color: var(--navy); }
.ai-verdict p { font-size: 0.9rem; color: var(--muted); }
.ai-cta { display: grid; gap: 8px; margin-top: 16px; }
.ai-cta .btn svg { width: 20px; height: 20px; }
.ai-note { margin-top: 12px; font-size: 0.76rem; color: var(--muted-2); }
.ai-card-error { border-color: rgba(220, 38, 38, 0.35); }
.ai-card-error p { color: #7F1D1D; margin-bottom: 4px; }
.ai-code-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ai-code-chip { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: 0.06em; color: var(--navy); padding: 4px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.ai-code-brand { font-size: 0.9rem; color: var(--muted); }
.ai-gauge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 14px; }
.ai-gauge-seg { text-align: center; padding: 10px 6px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; color: var(--muted-2); transition: all 0.5s var(--ease-spring); }
.ai-gauge-seg.is-on[data-k="reparar"] { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.35); }
.ai-gauge-seg.is-on[data-k="valorar_con_tecnico"] { background: var(--primary-soft); color: #B3261E; box-shadow: inset 0 0 0 1px rgba(217, 48, 37, 0.45); }
.ai-gauge-seg.is-on[data-k="renovar"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35); }
.ai-factors { display: grid; gap: 8px; margin-top: 16px; }
.ai-factors li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); animation: cardIn 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.ai-factor-name { font-weight: 600; font-size: 0.9rem; }
.ai-factor-text { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.ai-factor-tag { font-size: 0.66rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; align-self: start; }
.f-reparar .ai-factor-tag { background: var(--success-soft); color: var(--success); }
.f-renovar .ai-factor-tag { background: var(--accent-soft); color: var(--accent); }
.f-neutral .ai-factor-tag { background: var(--bg-3); color: var(--muted); }
@media (min-width: 640px) { .ai-grid { grid-template-columns: 1fr 1fr; } .ai-cta { grid-template-columns: 1fr 1fr; } .ai-cta .btn-ghost { grid-column: 1 / -1; } }

/* ── Botón del pánico ── */
.panic { margin-top: 18px; }
.panic-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.panic-label .icon { width: 15px; height: 15px; }
.panic-row .chip { border-color: rgba(220, 38, 38, 0.3); background: #fff; font-size: 0.84rem; }
.panic-row .chip:hover { border-color: var(--danger); background: var(--danger-soft); }
.panic-row .chip .icon { color: var(--danger); }

/* ── Hojas inferiores (bottom sheets) ── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 27, 51, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; background: #fff; border-radius: 24px 24px 0 0; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-height: 92svh; overflow-y: auto; transform: translateY(105%); visibility: hidden; transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.36s; box-shadow: var(--shadow-lg); }
.sheet.is-open { transform: none; visibility: visible; transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0s; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--border-2); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); }
.sheet-close .icon { width: 18px; height: 18px; }
.panic-steps { display: grid; gap: 12px; margin: 10px 0 18px; }
.panic-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); font-size: 1.02rem; line-height: 1.45; }
.panic-steps .n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--danger); }
.panic-steps strong { display: block; color: var(--navy); }
.panic-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--danger); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet h3 { font-size: 1.4rem; }
.sheet .lead { margin-top: 6px; font-size: 0.95rem; }
.sheet-ctas { display: grid; gap: 10px; }
.sheet .btn-lg { min-height: 62px; }
@media (min-width: 768px) { .sheet { left: 50%; right: auto; width: min(560px, 100%); transform: translate(-50%, 105%); border-radius: 24px; bottom: 24px; } .sheet.is-open { transform: translate(-50%, 0); } .sheet-ctas { grid-template-columns: 1fr 1fr; } }

/* ── Marquee de marcas ── */
.marquee-band { border-block: 1px solid var(--border); background: #fff; padding: 20px 0; overflow: hidden; position: relative; }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee-band::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee-label { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; padding: 0 var(--gutter); }
.marquee { overflow: hidden; }
.marquee + .marquee { margin-top: 10px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 46s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; padding: 0 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; opacity: 0.75; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-left: 44px; }
.marquee-reverse .marquee-track span { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); opacity: 1; }
.marquee-reverse .marquee-track span::after { background: var(--border-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-note { text-align: center; font-size: 0.8rem; color: var(--muted-2); margin-top: 14px; padding: 0 var(--gutter); }
@media (max-width: 600px) { .marquee-track { animation-duration: 60s; } .marquee-reverse .marquee-track { animation-duration: 75s; } }

/* ── Servicios ── */
.services-grid { display: grid; gap: 14px; }
.services-grid > * { min-width: 0; }
.service-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.service-top { display: flex; align-items: center; gap: 14px; }
.service-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); flex: none; }
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-tagline { font-size: 0.88rem; color: var(--muted); }
.symptoms { display: flex; flex-wrap: wrap; gap: 8px; }
.symptom-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.83rem; text-align: left; line-height: 1.25; transition: all 0.2s; color: var(--navy); }
.symptom-chip:hover { border-color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); }
.symptom-chip .icon { width: 14px; height: 14px; color: var(--accent); flex: none; }
.service-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.service-actions .btn { flex: 1; box-shadow: none; }
.service-card.wide { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; background: var(--bg-2); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .service-card.wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } .service-card.wide .service-actions { margin: 0; flex: none; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ── Códigos de error ── */
.codes-grid { display: grid; gap: 28px; align-items: start; }
.codes-grid > * { min-width: 0; }
.led-panel { padding: 22px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.led-screen { position: relative; border-radius: 16px; background: var(--navy); padding: 14px 16px; margin-bottom: 14px; }
.led-screen label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); display: block; margin-bottom: 4px; }
.led-input { width: 100%; background: transparent; border: 0; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; text-transform: uppercase; padding: 0; caret-color: var(--primary); }
.led-input:focus { outline: none; }
.led-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.led-panel .form-row { margin-bottom: 12px; }
.codes-common { margin-top: 14px; }
.codes-common .label { margin-bottom: 8px; }
.codes-common .chip { font-weight: 700; letter-spacing: 0.04em; min-height: 36px; padding: 0 12px; }
.codes-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted-2); }
.codes-result { min-height: 40px; }
@media (min-width: 1024px) { .codes-grid { grid-template-columns: 5fr 7fr; gap: 40px; } }

/* ── Por qué nosotros ── */
.why-grid { display: grid; gap: 28px; }
.why-grid > * { min-width: 0; }
.why-intro { position: relative; }
.big-stat { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 8px; font-family: var(--font-display); font-weight: 800; line-height: 1; }
.big-stat .num { font-size: clamp(4rem, 12vw, 7.5rem); color: var(--navy); letter-spacing: -0.05em; }
.big-stat .plus { font-size: clamp(2rem, 6vw, 3.5rem); color: var(--primary); }
.big-stat .unit { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--muted); font-weight: 600; }
.why-cards { display: grid; gap: 12px; }
.why-card { padding: 22px; overflow: hidden; }
.why-num { position: absolute; right: 16px; top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--bg-3); pointer-events: none; }
.why-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 14px; position: relative; }
.why-icon .icon { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; position: relative; }
.why-card p { font-size: 0.92rem; color: var(--muted); position: relative; }
.why-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.why-link .icon { width: 18px; height: 18px; transition: transform 0.2s; color: var(--primary); }
.why-link:hover .icon { transform: translateX(4px); }
@media (min-width: 640px) { .why-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 5fr 7fr; gap: 56px; } .why-intro { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── Proceso ── */
.timeline { display: grid; gap: 0; position: relative; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, var(--navy), var(--primary)); transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease-out) 0.2s; }
.timeline.is-visible::before { transform: scaleY(1); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; position: relative; }
.step-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border-2); font-weight: 800; font-family: var(--font-display); color: var(--muted); position: relative; z-index: 1; transition: all 0.5s; transition-delay: calc(var(--i) * 300ms + 300ms); }
.timeline.is-visible .step-num { border-color: var(--navy); color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.12rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.step-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--primary-soft); color: #B3261E; border: 1px solid rgba(217, 48, 37, 0.35); }
.step-icon { display: none; }
.process-foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.process-foot p { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--navy), var(--primary)); transform-origin: left; transform: scaleX(0); }
  .timeline.is-visible::before { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 0; }
  .step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-top: 8px; }
  .step-icon .icon { width: 22px; height: 22px; }
}

/* ── Asesor ── */
.adv-grid { display: grid; gap: 28px; }
.adv-grid > * { min-width: 0; }
.adv-form { display: grid; gap: 16px; }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } .adv-sticky { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── Manifiesto (banda oscura) ── */
.manifesto { position: relative; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; right: -20%; top: -20%; background: radial-gradient(circle, rgba(255, 122, 26, 0.22), transparent 65%); filter: blur(40px); pointer-events: none; }
.manifesto-card { max-width: 820px; margin-inline: auto; position: relative; }
.manifesto .kicker { color: var(--primary); }
.promise-list { display: grid; gap: 14px; margin: 28px 0; }
.promise-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }
.promise-list strong { color: #fff; }
.promise-list .icon { width: 26px; height: 26px; color: var(--primary); }
.promise-list .icon path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 0.6s var(--ease-out); transition-delay: calc(var(--i) * 150ms + 200ms); }
.is-visible .promise-list .icon path { stroke-dashoffset: 0; }
.no-promise { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.4vw + 0.8rem, 1.5rem); line-height: 1.35; color: #FFD0CC; padding: 18px 20px; border-left: 3px solid var(--primary); background: rgba(217, 48, 37, 0.12); border-radius: 0 14px 14px 0; margin: 24px 0; }
.signature { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.manifesto-ctas { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 640px) { .manifesto-ctas { grid-template-columns: 1fr 1fr; } }

/* ── Zonas ── */
.zones-grid { display: grid; gap: 24px; }
.zones-grid > * { min-width: 0; }
.zone-map-wrap { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border); background: #fff; padding: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.zone-map { width: 100%; height: auto; }
.zone-map text { font-family: var(--font-body); font-size: 9.5px; font-weight: 500; fill: var(--muted); pointer-events: none; }
.zone-map .ring { fill: none; stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 4 5; }
.zone-map .ring-label { fill: var(--muted-2); font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; }
.zone-map .line { fill: none; stroke: var(--border-2); stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease-out); }
.is-visible .zone-map .line { stroke-dashoffset: 0; }
.zone-map .capital { fill: var(--accent-soft); stroke: rgba(37, 99, 235, 0.35); stroke-width: 1.2; }
.zone-map .node circle { fill: #fff; stroke: var(--navy); stroke-width: 2; transition: all 0.3s; }
.zone-map .node.municipio circle { stroke: var(--muted-2); }
.zone-map .node:hover circle { fill: var(--primary-soft); stroke: var(--primary); }
.zone-map .node.is-hit circle { fill: var(--primary); stroke: var(--navy); }
.zone-map .node.is-hit text { fill: var(--navy); font-weight: 700; }
.zone-map .halo { fill: none; stroke: var(--primary); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.zone-map .node.is-hit .halo { animation: halo 1.6s ease-out infinite; }
.zone-map .node.is-hit .halo:nth-of-type(2) { animation-delay: 0.5s; }
@keyframes halo { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.zone-map .sol circle { fill: var(--primary); stroke: var(--navy); }
.zone-map-note { position: absolute; left: 14px; bottom: 10px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.zone-panel { display: grid; gap: 16px; align-content: start; }
.zone-form { display: flex; gap: 8px; }
.zone-form .input { flex: 1; min-width: 0; }
.zone-result { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-2); animation: cardIn 0.4s var(--ease-out); }
.zone-result strong { display: block; margin-bottom: 4px; color: var(--navy); }
.zone-result p { color: var(--muted); font-size: 0.92rem; }
.zone-result.is-ok { border-color: rgba(22, 163, 74, 0.4); background: var(--success-soft); }
.zone-result.is-maybe { border-color: rgba(217, 119, 6, 0.4); background: var(--warn-soft); }
.zone-result.is-no { border-color: rgba(220, 38, 38, 0.4); background: var(--danger-soft); }
.zone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zone-chips .label { margin-bottom: 8px; }
.zone-chips .chip { min-height: 36px; font-size: 0.82rem; padding: 0 12px; }
.zone-line { font-size: 0.95rem; color: var(--muted); }
.zone-line strong { color: var(--navy); }
.zone-seo { margin-top: clamp(28px, 4vw, 48px); font-size: 0.92rem; color: var(--muted); max-width: 900px; }
.zone-seo strong { color: var(--navy); }
@media (max-width: 767px) { .zone-map .district text { display: none; } .zone-map text { font-size: 15px; } .zone-map .ring-label { font-size: 12px; } }
@media (min-width: 1024px) { .zones-grid { grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; } }

/* ── Escríbenos (generador de WhatsApp) ── */
.wa-grid { display: grid; gap: 24px; }
.wa-grid > * { min-width: 0; }
.wa-form { display: grid; gap: 14px; }
.wa-preview { border-radius: var(--radius-xl); padding: 18px; background: #EFEAE2; border: 1px solid #E0D9CF; background-image: radial-gradient(rgba(15, 27, 51, 0.04) 1px, transparent 1px); background-size: 14px 14px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.wa-preview-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(15, 27, 51, 0.1); }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: #fff; }
.wa-avatar .icon { width: 20px; height: 20px; }
.wa-preview-head strong { display: block; font-size: 0.95rem; color: var(--navy); }
.wa-preview-head span { font-size: 0.75rem; color: var(--muted); }
.wa-bubble { align-self: flex-end; max-width: 92%; background: #D9FDD3; color: #111B21; padding: 10px 12px 8px; border-radius: 12px 2px 12px 12px; font-size: 0.93rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.wa-bubble .time { display: block; text-align: right; font-size: 0.68rem; color: rgba(17, 27, 33, 0.5); margin-top: 4px; }
.wa-bubble.is-typing::after { content: "▍"; color: var(--success); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wa-preview-actions { display: grid; gap: 8px; margin-top: auto; }
.wa-preview .help { text-align: center; color: var(--muted); font-weight: 500; }
.label-help { font-size: 0.85rem; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(37, 99, 235, 0.2); }
.label-help summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; }
.label-help summary::-webkit-details-marker { display: none; }
.label-help summary .icon { width: 16px; height: 16px; }
.label-help p { margin-top: 8px; }
@media (min-width: 640px) { .wa-preview-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wa-grid { grid-template-columns: 6fr 5fr; gap: 40px; align-items: start; } .wa-preview { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── FAQ ── */
.faq-grid { display: grid; gap: 32px; }
.faq-grid > * { min-width: 0; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; user-select: none; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-2); display: grid; place-items: center; flex: none; color: var(--navy); transition: transform 0.3s, background 0.2s; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.faq-item summary .plus .icon { width: 14px; height: 14px; }
.faq-content { overflow: hidden; transition: height 0.35s var(--ease-out); }
.faq-content p { padding: 0 18px 18px; color: var(--muted); font-size: 0.95rem; }
.ask { padding: 22px; }
.ask h3 { font-size: 1.2rem; margin-bottom: 6px; }
.ask > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1; min-width: 0; }
.ask-form .btn { padding: 0 16px; }
.ask-suggest { margin-top: 10px; }
.ask-suggest .chip { min-height: 34px; font-size: 0.78rem; padding: 0 11px; }
.ask-result { margin-top: 14px; }
.ask-bubble { display: grid; gap: 8px; }
.ask-q { justify-self: end; max-width: 90%; background: var(--primary-soft); border: 1px solid rgba(255, 122, 26, 0.3); padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: 0.9rem; }
.ask-a { max-width: 100%; background: var(--bg-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: 12px 12px 12px 2px; font-size: 0.93rem; }
.ask-a p + p, .chat-bubble p + p { margin-top: 8px; }
.ask-a ul, .chat-bubble ul { padding-left: 16px; list-style: disc; margin: 6px 0; }
.ask-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } .ask { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── Cierre ── */
.final-cta { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.final-cta::before { content: ""; position: absolute; left: 50%; top: 40%; width: 70vw; height: 70vw; max-width: 800px; max-height: 800px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 122, 26, 0.25), transparent 62%); filter: blur(30px); z-index: -1; pointer-events: none; }
.final-cta .ghost-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 18rem); color: rgba(255,255,255,0.04); white-space: nowrap; z-index: -1; pointer-events: none; letter-spacing: -0.04em; }
.final-cta h2 { max-width: 18ch; margin-inline: auto; }
.final-cta .lead { margin-inline: auto; margin-top: 18px; }
.final-ctas { display: grid; gap: 12px; max-width: 640px; margin: 30px auto 0; }
.final-ctas .btn { min-height: 66px; font-size: 1.1rem; }
.phone-big { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -0.01em; color: #fff; transition: color 0.2s; }
.phone-big:hover { color: var(--primary); }
.final-meta { margin-top: 10px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 640px) { .final-ctas { grid-template-columns: 1fr 1fr; } }

/* ── Footer ── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 28px; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid > * { min-width: 0; }
.footer h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; }
.footer .logo { margin-bottom: 12px; }
.footer-seo { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted-2); max-width: 1000px; }
.footer-seo strong { color: var(--muted); font-weight: 600; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 0.78rem; color: var(--muted-2); }
.ai-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 600; }
.ai-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.ai-status[data-state="on"]::before { background: var(--success); }
.ai-status[data-state="on"] .off-text, .ai-status:not([data-state="on"]) .on-text { display: none; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } .footer-bottom { grid-template-columns: 1fr auto; align-items: center; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(28px + 92px + env(safe-area-inset-bottom)); } }

/* ── Barra fija móvil ── */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -14px rgba(15, 27, 51, 0.3); transform: translateY(110%); transition: transform 0.28s var(--ease-out); }
.sticky-cta.is-visible { transform: none; }
body.chat-open .sticky-cta, body.sheet-open .sticky-cta, body.menu-open .sticky-cta { transform: translateY(110%); }
.sticky-cta .micro { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); text-align: center; margin-bottom: 6px; }
.sticky-cta .row { display: grid; grid-template-columns: 58fr 42fr; gap: 8px; }
.sticky-cta .btn { min-height: 54px; font-size: 0.95rem; box-shadow: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Chat flotante ── */
.chat-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 75; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 36px -10px rgba(15, 27, 51, 0.55); transition: transform 0.25s var(--ease-spring), bottom 0.28s var(--ease-out); }
.chat-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--navy); opacity: 0; animation: pulseRing 4s ease-out infinite; }
.chat-fab .icon { width: 26px; height: 26px; transition: transform 0.25s, opacity 0.2s; }
.chat-fab .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chat-fab.is-open .icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chat-fab.is-open .icon-close { opacity: 1; transform: none; }
.chat-fab:hover { transform: scale(1.06); }
.sticky-cta.is-visible ~ .chat-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* En móvil, el botón del chat aparece cuando el usuario ya ha pasado el hero (con la barra fija), para no tapar los CTAs */
@media (max-width: 899px) { .chat-fab { transform: scale(0); } .sticky-cta.is-visible ~ .chat-fab, body.chat-open .chat-fab { transform: none; } .chat-teaser { display: none; } .sticky-cta.is-visible ~ .chat-teaser { display: block; } }
body.chat-open .chat-fab, body.sheet-open .chat-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.sheet-open .chat-fab { transform: scale(0); }
.chat-teaser { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 74; max-width: 250px; padding: 12px 36px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; border: 1px solid var(--border); font-size: 0.88rem; color: var(--navy); box-shadow: var(--shadow-lg); cursor: pointer; animation: cardIn 0.4s var(--ease-out); }
.sticky-cta.is-visible ~ .chat-teaser { bottom: calc(164px + env(safe-area-inset-bottom)); }
.chat-teaser strong { color: var(--primary); }
.chat-teaser-close { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 6px; color: var(--muted-2); display: grid; place-items: center; }
.chat-teaser-close .icon { width: 12px; height: 12px; }
.chat-panel { position: fixed; inset: 0; z-index: 76; background: #fff; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s, visibility 0s 0.36s; opacity: 0; visibility: hidden; pointer-events: none; }
.chat-panel.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s, visibility 0s 0s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); padding-top: calc(12px + env(safe-area-inset-top)); background: var(--navy); color: #fff; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: var(--navy); position: relative; flex: none; }
.chat-avatar .icon { width: 22px; height: 22px; }
.chat-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--success); border: 2px solid var(--navy); }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; font-size: 0.95rem; }
.chat-head-text span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.65); }
.chat-head .btn-round { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.chat-head .btn-round .icon { width: 18px; height: 18px; }
.chat-head .btn-round.call { background: var(--primary); color: var(--navy); border-color: transparent; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px var(--gutter); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: var(--bg-2); }
.chat-msg { display: flex; animation: cardIn 0.3s var(--ease-out); }
.chat-user { justify-content: flex-end; }
.chat-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; }
.chat-bot .chat-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-user .chat-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; width: 100%; }
.chat-bot { flex-wrap: wrap; }
.chat-sys { justify-content: center; }
.chat-sys .chat-bubble { background: var(--primary-soft); border: 1px solid rgba(255, 122, 26, 0.3); font-size: 0.82rem; color: #7C3A00; text-align: center; max-width: 100%; }
.chat-quick { display: flex; gap: 8px; padding: 8px var(--gutter); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); background: #fff; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick .chip { flex: none; min-height: 36px; font-size: 0.8rem; padding: 0 12px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px var(--gutter) 6px; background: #fff; }
.chat-form .textarea-wrap { flex: 1; }
.chat-form .textarea { min-height: 48px; max-height: 120px; padding: 12px 52px 12px 14px; border-radius: 14px; }
.chat-form .mic { top: 4px; right: 4px; }
.chat-send { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; transition: transform 0.2s; }
.chat-send .icon { width: 20px; height: 20px; }
.chat-send:hover { transform: scale(1.05); }
.chat-form.is-busy .chat-send { opacity: 0.5; pointer-events: none; }
.chat-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px var(--gutter) 8px; background: #fff; }
.chat-foot .btn { min-height: 40px; font-size: 0.85rem; box-shadow: none; }
.chat-disclaimer { font-size: 0.68rem; color: var(--muted-2); text-align: center; padding: 0 var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: #fff; }
@media (min-width: 768px) {
  .chat-panel { inset: auto 24px 100px auto; width: 400px; height: min(660px, calc(100svh - 130px)); border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(20px) scale(0.97); overflow: hidden; }
  .chat-panel.is-open { transform: none; }
  .chat-fab { right: 28px; bottom: 28px; }
  .chat-teaser { right: 28px; bottom: 100px; }
  .chat-head { padding-top: 12px; }
  .chat-disclaimer { padding-bottom: 10px; }
}

/* ── Páginas legales ── */
.legal-page { padding-top: calc(var(--header-h) + 32px); padding-bottom: 80px; }
.legal { max-width: 800px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal strong { color: var(--navy); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .placeholder { background: var(--warn-soft); color: #92400E; padding: 0 6px; border-radius: 6px; font-weight: 600; }
.legal .box { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); margin: 18px 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.footer-legal a { font-weight: 600; color: var(--navy); }

/* ── Utilidades ── */
.copied { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 0.9rem; z-index: 90; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; box-shadow: var(--shadow-lg); }
.copied.is-on { opacity: 1; transform: translateX(-50%); }

/* ── Modo oscuro ── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1220; --bg-2: #111A2E; --bg-3: #18233B; --surface: #121C31; --border: #243252; --border-2: #33446B;
  --text: #EAF0FF; --muted: #AEBBD8; --muted-2: #8FA0C2;
  --navy: #2F5AB5; --navy-2: #3A69C8; --navy-3: #4A7BD9;
  --primary: #E8483F; --primary-hover: #F05A51; --primary-soft: rgba(232, 72, 63, 0.16); --primary-ink: #FFFFFF;
  --accent: #6B9BEB; --accent-soft: rgba(74, 123, 217, 0.2);
  --success-soft: rgba(22, 163, 74, 0.16); --warn-soft: rgba(217, 119, 6, 0.16); --danger-soft: rgba(220, 38, 38, 0.18);
  --success: #34D399; --warn: #FBBF24; --danger: #F87171;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px -6px rgba(0,0,0,0.5); --shadow-md: 0 10px 30px -12px rgba(0,0,0,0.6); --shadow-lg: 0 30px 60px -24px rgba(0,0,0,0.7);
}
[data-theme="dark"] :is(h1, h2, h3, h4, .logo-text, .label, .chip, .diag-title, .ai-title, .ai-verdict strong, .zone-result strong, .faq-item summary, .faq-item summary .plus, .why-link, .ask h3, .hero-sub strong, .zone-line strong, .big-stat .num, .symptom-chip, .ai-cause-name, .panic-steps strong, .wa-preview-head strong, .footer h3, .nav-menu a, .nav-toggle, .theme-toggle, .btn-ghost, .legal strong, .footer-legal a, .footer-seo strong, .safety, .safety strong, .sheet-close, .why-icon, .zone-map .node.is-hit text) { color: var(--text); }
[data-theme="dark"] .header { background: rgba(11, 18, 32, 0.85); }
[data-theme="dark"] .header.is-scrolled, [data-theme="dark"] body.menu-open .header { background: rgba(11, 18, 32, 0.95); }
[data-theme="dark"] .hero { background: linear-gradient(180deg, #0B1220 0%, #0E1729 100%); }
[data-theme="dark"] .skyline { color: #fff; opacity: 0.08; }
[data-theme="dark"] :is(.chip, .hero-badge, .trust-row li, .diag, .ai-card, .led-panel, .zone-map-wrap, .faq-item, .chat-bot .chat-bubble, .chat-quick, .chat-form, .chat-foot, .chat-disclaimer, .chat-panel, .sheet, .nav-menu, .chat-teaser, .step-num, .marquee-band, .hero-tools .chip, .radio-chips span, .btn-ghost, .theme-toggle, .nav-toggle, .service-card.wide, .ask-a) { background: var(--surface); }
[data-theme="dark"] .symptom-chip { background: var(--bg-2); }
[data-theme="dark"] .symptom-chip:hover { background: var(--surface); }
[data-theme="dark"] .marquee-band::before { background: linear-gradient(90deg, var(--surface), transparent); }
[data-theme="dark"] .marquee-band::after { background: linear-gradient(270deg, var(--surface), transparent); }
[data-theme="dark"] .marquee-track span { color: var(--text); }
[data-theme="dark"] .sticky-cta { background: rgba(11, 18, 32, 0.94); }
[data-theme="dark"] .why-num { color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .why-icon { background: var(--navy); }
[data-theme="dark"] .section-dark { background: #060B16; }
[data-theme="dark"] .footer { background: #070C17; }
[data-theme="dark"] .led-screen { background: #060B16; }
[data-theme="dark"] .chat-head { background: #0E1729; }
[data-theme="dark"] .chat-user .chat-bubble { background: var(--navy); }
[data-theme="dark"] .zone-map .node circle { fill: var(--surface); }
[data-theme="dark"] .zone-map .node.is-hit circle { fill: var(--primary); }
[data-theme="dark"] .range::-webkit-slider-thumb { background: var(--surface); }
[data-theme="dark"] .range::-moz-range-thumb { background: var(--surface); }
[data-theme="dark"] .wa-preview { background: #0B141A; border-color: #1F2C34; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); }
[data-theme="dark"] .wa-preview-head { border-color: #1F2C34; }
[data-theme="dark"] .wa-preview-head span, [data-theme="dark"] .wa-preview .help { color: var(--muted); }
[data-theme="dark"] .wa-bubble { background: #005C4B; color: #E9EDEF; }
[data-theme="dark"] .wa-bubble .time { color: rgba(233, 237, 239, 0.6); }
[data-theme="dark"] .ai-steps li.do::before { background-color: rgba(22,163,74,0.2); }
[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23AEBBD8' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); }
[data-theme="dark"] .ai-gauge-seg.is-on[data-k="valorar_con_tecnico"] { color: #FCA5A5; }
[data-theme="dark"] .step-tag { color: #FCA5A5; }
[data-theme="dark"] .chat-sys .chat-bubble { color: #FECACA; }
[data-theme="dark"] .legal .box { background: var(--bg-2); }
[data-theme="dark"] .legal .placeholder { background: rgba(217,119,6,0.2); color: #FCD34D; }
[data-theme="dark"] .copied { background: var(--surface); border: 1px solid var(--border-2); }
[data-theme="dark"] .logo img { filter: drop-shadow(0 0 1px rgba(255,255,255,0.6)); }

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-title .w { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .timeline::before { transform: none; }
  .promise-list .icon path { stroke-dashoffset: 0; }
  .zone-map .line { stroke-dashoffset: 0; }
}
@media print { .header, .sticky-cta, .chat-fab, .chat-panel, .chat-teaser, .hero-blob, .skyline { display: none !important; } }
