/* ==========================================================================
   SG Tecnosistemas — Sistema de diseño "Circuito"
   Colores con significado:
     Marino profundo   → confianza y seriedad técnica (texto, secciones oscuras)
     Azul eléctrico    → tecnología, "todo funciona" (marca, estados OK)
     Cian              → luz de pantalla, detalles y brillos
     Lima LED          → acción (botón de agendar), como el led de encendido
     Gris claro        → orden y limpieza (fondo)
   Formas: botones y chips siempre en píldora; contenedores con esquinas de
   20 a 36 px. Curvas sin rebote: cubic-bezier(0.16, 1, 0.3, 1).
   ========================================================================== */

:root {
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --surface-3: #dbe4f0;
  --ink: #142840;
  --ink-2: #34485f;
  --muted: #5c6d80;
  --line: #d3dde9;
  --line-soft: rgba(20, 40, 64, 0.06);

  --brand: #2a7ab3;
  --brand-2: #3f97d0;
  --brand-ink: #1f5f8f;
  --brand-soft: #e1eef8;
  --petrol: #142840;
  --petrol-2: #1d3552;
  --petrol-deep: #0b1726;
  --peach: #7cc4ee;
  --peach-2: #a6d8f5;
  --peach-ink: #0d2a42;
  --peach-soft: #e3f2fc;
  --sky: #9fd3f2;
  --sky-soft: #e8f4fb;
  --butter: #fcd34d;
  --lilac: #a5b4fc;
  --urgent: #dc2626;
  --urgent-soft: #fde8e8;
  --warn: #b45309;
  --warn-soft: #fdf1dc;

  --on-dark: #e6eef9;
  --on-dark-2: #a6b6cf;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --radius-xl: 36px;
  --shadow-s: 0 1px 2px rgba(20, 40, 64, 0.06), 0 2px 8px rgba(20, 40, 64, 0.04);
  --shadow: 0 2px 4px rgba(20, 40, 64, 0.04), 0 14px 34px -10px rgba(20, 40, 64, 0.16);
  --shadow-l: 0 34px 70px -26px rgba(20, 40, 64, 0.34);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 78px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1420;
  --surface: #111e2e;
  --surface-2: #0d1826;
  --surface-3: #1a2a3e;
  --ink: #e6eef9;
  --ink-2: #b3c1d6;
  --muted: #8193ad;
  --line: #1e2f44;
  --line-soft: rgba(230, 238, 249, 0.05);
  --brand: #4aa3dc;
  --brand-2: #3f97d0;
  --brand-ink: #8cc6ec;
  --brand-soft: rgba(74, 163, 220, 0.16);
  --petrol: #142840;
  --petrol-2: #1d3552;
  --petrol-deep: #070f19;
  --peach: #7cc4ee;
  --peach-soft: rgba(124, 196, 238, 0.14);
  --sky-soft: rgba(159, 211, 242, 0.12);
  --urgent: #f87171;
  --urgent-soft: rgba(248, 113, 113, 0.12);
  --warn: #f2b14e;
  --warn-soft: rgba(242, 177, 78, 0.14);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6);
  --shadow-l: 0 34px 70px -24px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
h1 em, h2 em, h3 em, .serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
}
h1 em, h2 em { font-size: 1.06em; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.tnum { font-variant-numeric: tabular-nums; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 880px; }
@media (max-width: 640px) { .container { padding-inline: 16px; } }

/* ---------- Bandas de contenido ---------- */
.band { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.band--flush-top { padding-top: 0; }
.band--tint { background: var(--surface-2); }
.band > .container { position: relative; }
.center-cta { text-align: center; margin-top: clamp(32px, 4vw, 48px); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Botones (siempre en píldora) ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  max-width: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
/* Destello que cruza los botones de color */
.btn--primary::after, .btn--peach::after, .btn--mint::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--primary:hover::after, .btn--peach:hover::after, .btn--mint:hover::after { transform: translateX(120%); }
.btn--primary, .btn--ink { --btn-bg: var(--petrol); --btn-fg: #fff; --btn-bd: var(--petrol); }
.btn--primary:hover, .btn--ink:hover { --btn-bg: var(--petrol-2); --btn-bd: var(--petrol-2); box-shadow: 0 14px 28px -14px rgba(20, 40, 64, 0.7); }
:root[data-theme="dark"] .btn--primary, :root[data-theme="dark"] .btn--ink { --btn-bg: var(--brand); --btn-fg: #ffffff; --btn-bd: var(--brand); }
:root[data-theme="dark"] .btn--primary:hover, :root[data-theme="dark"] .btn--ink:hover { --btn-bg: var(--brand-2); --btn-bd: var(--brand-2); }
.btn--peach { --btn-bg: var(--peach); --btn-fg: var(--peach-ink); --btn-bd: var(--peach); }
.btn--peach:hover { --btn-bg: var(--peach-2); --btn-bd: var(--peach-2); box-shadow: 0 16px 30px -14px rgba(166, 216, 245, 0.75); }
.btn--mint { --btn-bg: var(--brand); --btn-fg: #ffffff; --btn-bd: var(--brand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--brand); --btn-fg: var(--brand-ink); }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.6); --btn-fg: var(--ink); --btn-bd: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: #fff; }
:root[data-theme="dark"] .btn--glass { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--ink); --btn-bd: rgba(255, 255, 255, 0.16); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { --btn-bd: #fff; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.04rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.7; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-ink); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--brand-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill .icon { width: 14px; height: 14px; flex: none; }
.pill--soft, .pill--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.pill--glass { background: rgba(255, 255, 255, 0.66); border-color: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-s); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); }
:root[data-theme="dark"] .pill--glass { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(42, 122, 179, 0.5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42, 122, 179, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(42, 122, 179, 0); } 100% { box-shadow: 0 0 0 0 rgba(42, 122, 179, 0); } }

/* ---------- Aviso delgado: próximo horario libre ---------- */
.topbar { position: relative; z-index: 101; display: block; background: var(--petrol); color: var(--on-dark-2); font-size: 0.8rem; text-decoration: none; overflow: hidden; }
.topbar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 160% at 50% 0%, rgba(42, 122, 179, 0.18), transparent 70%); pointer-events: none; }
:root[data-theme="dark"] .topbar { background: #060e18; border-bottom: 1px solid var(--line); }
.topbar:hover { text-decoration: none; color: #fff; }
.topbar-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; white-space: nowrap; }
.topbar strong { color: #fff; font-weight: 750; }
.topbar-label { padding: 2px 9px; border-radius: 999px; background: rgba(42, 122, 179, 0.16); color: var(--brand-2); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.62rem; }
.topbar-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: pulse 2.4s infinite; flex: none; }
.topbar-more { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 10px 3px 12px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-weight: 750; font-size: 0.74rem; }
.topbar-more .icon { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.topbar:hover .topbar-more .icon { transform: translateX(3px); }
@media (max-width: 760px) { .topbar-label, .topbar-text { display: none; } }

/* ---------- Cabecera ----------
   Arriba es una barra de vidrio de lado a lado; al bajar se convierte en una
   cápsula flotante (sin cambiar el alto de la página, así nada brinca). */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.45s var(--ease);
}
.site-header.is-scrolled::before { opacity: 0; }
body.menu-open .site-header::before { opacity: 1; background: var(--bg); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: max-width 0.6s var(--ease), height 0.6s var(--ease), margin 0.6s var(--ease), padding 0.6s var(--ease), border-radius 0.6s var(--ease), background-color 0.45s, border-color 0.45s, box-shadow 0.6s var(--ease);
}
.site-header.is-scrolled .header-inner {
  height: calc(var(--header-h) - 18px);
  margin-top: 9px;
  max-width: min(1180px, calc(100% - 20px));
  padding-inline: 14px 8px;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--ink) 9%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 22px 44px -26px rgba(20, 40, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Barra de lectura: azul → lima, dentro de la cápsula (sin salirse de sus bordes) */
.header-progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 55%, var(--peach) 100%);
  transform-origin: 0 50%;
  transform: scaleX(var(--read, 0));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled .header-progress { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; transform-origin: 0 50%; transition: scale 0.6s var(--ease); }
.site-header.is-scrolled .brand { scale: 0.92; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark .lg-spark { transform-box: fill-box; transform-origin: center; animation: lg-spark 3.6s var(--ease) infinite; }
@keyframes lg-spark { 0%, 72%, 100% { transform: scale(1) rotate(0); } 84% { transform: scale(1.4) rotate(45deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-weight: 400; font-size: 1.62rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { font-size: 0.58rem; font-weight: 750; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-ink); margin-top: 4px; white-space: nowrap; }

/* Menú en cápsula: la píldora mide exactamente lo mismo que el enlace activo */
.main-nav { position: relative; margin: 0 auto; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.main-nav > ul { position: relative; z-index: 1; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s;
}
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); opacity: 0; transition: opacity 0.3s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"], .main-nav .has-drop:hover > a { color: var(--ink); text-decoration: none; }
.main-nav > ul > li > a[aria-current="page"]::after { opacity: 1; }
.main-nav > ul > li > a:focus-visible { outline-offset: -2px; }
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 40, 64, 0.12), 0 6px 16px -8px rgba(20, 40, 64, 0.35), inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1), width 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
:root[data-theme="dark"] .nav-indicator { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.main-nav.has-indicator .nav-indicator.is-visible { opacity: 1; }
.nav-indicator.is-instant { transition: none; }
.main-nav .caret { display: inline-block; margin-left: 5px; transition: transform 0.35s var(--ease); }
.has-drop:hover .caret, .has-drop:focus-within .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; margin-right: 2px; font-size: 0.88rem; font-weight: 650; color: var(--muted); white-space: nowrap; transition: color 0.25s; }
.header-phone .icon { color: var(--brand-ink); }
.header-phone:hover { color: var(--ink); text-decoration: none; }
/* Botón píldora con flecha en círculo: el círculo queda a 6 px de cada borde */
.header-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 20px;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, height 0.6s var(--ease), padding 0.6s var(--ease);
}
.header-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.header-cta:hover::before { transform: translateX(120%); }
.header-cta i { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--peach); color: var(--peach-ink); transition: transform 0.45s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease); }
.header-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(20, 40, 64, 0.6); }
.header-cta:hover i { transform: rotate(-45deg); }
.site-header.is-scrolled .header-cta { height: 40px; padding-left: 18px; padding-right: 5px; }
.site-header.is-scrolled .header-cta i { width: 30px; height: 30px; }
:root[data-theme="dark"] .header-cta { background: var(--brand); color: #ffffff; }
:root[data-theme="dark"] .header-cta i { background: #ffffff; color: var(--brand-2); }
@media (max-width: 1360px) { .header-phone span { display: none; } }
@media (max-width: 1200px) { .main-nav > ul > li > a { padding: 0 12px; } .header-phone { display: none; } }
/* Laptops con zoom de Windows (1024–1180 px): la barra completa se queda, más compacta */
@media (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .main-nav > ul > li > a { padding: 0 10px; font-size: 0.85rem; }
  .main-nav .caret { margin-left: 3px; }
  .header-cta { padding-left: 16px; gap: 8px; }
  .brand-name { font-size: 1.42rem; }
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
.theme-toggle .icon { transition: transform 0.6s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(25deg); }

.menu-toggle { display: none; }
.menu-toggle .bars { display: block; }
.menu-toggle .bars > span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle .bars > span + span { margin-top: 4px; }
.menu-toggle[aria-expanded="true"] .bars > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 16px 16px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav li a .icon { width: 20px; height: 20px; color: var(--muted); }
.mobile-nav li a[aria-current="page"] { color: var(--brand-ink); }
.mobile-nav.is-open li { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.mobile-nav-foot { display: grid; gap: 10px; margin-top: auto; }
.mobile-next { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--petrol); color: var(--on-dark-2); font-size: 0.8rem; line-height: 1.35; }
.mobile-next:hover { text-decoration: none; }
.mobile-next strong { display: block; margin-top: 2px; font-size: 0.98rem; color: #fff; }
.mobile-next em { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-style: normal; font-weight: 750; }
:root[data-theme="dark"] .mobile-next { background: var(--surface-3); }

@media (max-width: 1023px) {
  .main-nav, .header-cta, .header-phone { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-sub { letter-spacing: 0.18em; }
  .brand-name { font-size: 1.36rem; }
}
body.menu-open { overflow: hidden; }

/* ---------- Menús desplegables ---------- */
.main-nav .has-drop { position: relative; }
.main-nav .has-drop--tratamientos { position: static; }
.drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  width: 340px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-l);
  translate: -50% 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: 50% 0;
  transition: opacity 0.22s, transform 0.4s var(--ease), visibility 0s 0.4s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s, transform 0.4s var(--ease); }
.drop--mega { width: min(780px, calc(100vw - 48px)); }
.drop-inner { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; }
.main-nav .drop-grid, .main-nav .drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.main-nav .drop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-grid li, .drop-list li { opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.45s var(--ease); }
.has-drop:hover .drop li, .has-drop:focus-within .drop li { opacity: 1; transform: none; }
.drop li:nth-child(2) { transition-delay: 30ms; }
.drop li:nth-child(3) { transition-delay: 60ms; }
.drop li:nth-child(4) { transition-delay: 90ms; }
.drop li:nth-child(5) { transition-delay: 120ms; }
.drop li:nth-child(6) { transition-delay: 150ms; }
.drop li:nth-child(n+7) { transition-delay: 180ms; }
.main-nav .drop a { white-space: normal; }
.main-nav .drop-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 16px; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.main-nav .drop-item:hover { background: var(--surface-2); }
.drop-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); transition: transform 0.4s var(--ease), background-color 0.25s, color 0.25s; }
.drop-item:hover .drop-icon { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.drop-item strong { display: block; font-size: 0.92rem; line-height: 1.3; color: var(--ink); }
.drop-item small { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.main-nav .drop-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(42, 122, 179, 0.4), transparent 58%), var(--petrol);
  color: var(--on-dark-2);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
.drop-feature strong { font-size: 1.22rem; letter-spacing: -0.02em; color: #fff; }
.drop-feature-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-size: 0.72rem; font-weight: 750; }
.drop-feature-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); font-weight: 700; }
.drop-feature-cta .icon { transition: transform 0.35s var(--ease); }
.drop-feature:hover .drop-feature-cta .icon { transform: translateX(4px); }
.main-nav .drop-foot { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--brand-ink); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.main-nav .drop-foot:hover { color: var(--brand); }
.main-nav .drop-foot .icon, .drop-feature-cta .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Portada, secciones "ax", tarjetas con ilustración, video y anatomía
   ========================================================================== */

/* ---------- Palabras del titular que suben una por una ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; }
.js .split:not(.is-in) .w > span { transform: translateY(108%); }
.js .split.is-in .w > span { animation: word-up 0.9s var(--ease) both; animation-delay: calc(var(--wi) * 55ms + 80ms); }
@keyframes word-up { from { transform: translateY(108%); } to { transform: none; } }

/* ---------- Portada: panel azul y escenario de pantallas ---------- */
.hero-x { padding-top: clamp(12px, 2vw, 24px); padding-bottom: clamp(24px, 4vw, 44px); }
.hero-x-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(52px, 8vw, 104px);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(180deg, #f5f6f8 0%, #dee7f6 48%, #b6c9eb 100%);
}
:root[data-theme="dark"] .hero-x-panel {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(42, 122, 179, 0.1), transparent 70%),
    linear-gradient(180deg, #0b1726 0%, #0f1f33 55%, #13253c 100%);
  border: 1px solid var(--line);
}
/* Cuadrícula muy tenue, como una radiografía */
.hero-x-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 10%, transparent 72%);
}
.hero-bubble { position: absolute; z-index: -1; border-radius: 50%; filter: blur(6px); opacity: 0.6; pointer-events: none; animation: bubble 16s ease-in-out infinite alternate; }
.hero-bubble--a { width: 300px; height: 300px; left: -130px; top: 34%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(42, 122, 179, 0.28) 60%, transparent 72%); }
.hero-bubble--b { width: 230px; height: 230px; right: -90px; top: 8%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), rgba(166, 216, 245, 0.26) 60%, transparent 72%); animation-duration: 19s; }
.hero-bubble--c { width: 180px; height: 180px; right: 18%; bottom: 8%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8), rgba(143, 211, 244, 0.35) 60%, transparent 72%); animation-duration: 22s; animation-direction: alternate-reverse; }
:root[data-theme="dark"] .hero-bubble { opacity: 0.14; }
@keyframes bubble { to { transform: translate(50px, -36px) scale(1.12); } }
.hero-x-copy { max-width: 1040px; margin-inline: auto; padding-inline: 20px; text-align: center; }
.hero-x-copy .pill { margin-bottom: 26px; }
.hero-x-copy h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 0.4em; }
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); max-width: 600px; margin: 0 auto 30px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; font-weight: 650; color: var(--ink-2); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 3; }
.trust-row--center { justify-content: center; margin-top: 26px; }

.hero-stage {
  --pw: clamp(170px, 19vw, 230px);
  --dw: min(560px, 54%);
  position: relative;
  max-width: 1100px;
  height: clamp(390px, 44vw, 520px);
  margin: clamp(44px, 6vw, 72px) auto 0;
}
.device { --dd: 0.2s; }
.hero-stage .dash-main, .hero-stage .hero-photo { position: absolute; z-index: 2; top: 0; left: 0; right: 0; width: var(--dw); margin: 0 auto; }
.hero-photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 40px 80px -30px rgba(20, 40, 64, 0.5); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-main {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 40px 80px -30px rgba(20, 40, 64, 0.45);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash-head .pill { flex: none; white-space: nowrap; }
.dash-title { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
/* Fila de componentes del presupuesto: se encienden uno tras otro */
.dash-teeth { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; margin: 20px 0 16px; padding: 14px 12px 12px; border-radius: 18px; background: linear-gradient(180deg, #e5f4ce, #dbedc0); }
:root[data-theme="dark"] .dash-teeth { background: linear-gradient(180deg, #212b39, #18202a); }
.dt { height: 30px; border-radius: 7px 7px 11px 11px; background: #fff; box-shadow: inset 0 -3px 0 rgba(20, 40, 64, 0.08); }
.dt:nth-child(n+4):nth-child(-n+11) { height: 34px; }
.dt--fix { background: var(--peach); box-shadow: 0 0 0 3px rgba(166, 216, 245, 0.28); }
.dt--ok { background: var(--brand); box-shadow: 0 0 0 3px rgba(42, 122, 179, 0.25); }
.js .hero-stage:not(.is-in) .dt--fix, .js .hero-stage:not(.is-in) .dt--ok { background: #fff; box-shadow: none; }
.js .hero-stage.is-in .dt--fix, .js .hero-stage.is-in .dt--ok { animation: tooth-paint 0.6s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 900ms); }
@keyframes tooth-paint { from { background: #fff; transform: scale(0.8); } to { transform: none; } }
.dash-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 0.9rem; }
.dl-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--brand-ink); }
.dl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--ink); }
.dash-lines b { font-weight: 750; color: var(--ink); }
.js .hero-stage:not(.is-in) .dash-lines li { opacity: 0; transform: translateX(-14px); }
.js .hero-stage.is-in .dash-lines li { animation: line-in 0.7s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 700ms); }
@keyframes line-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.dash-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.dash-foot div > span { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 650; }
.dash-foot strong { font-size: 1.7rem; letter-spacing: -0.03em; }
.dash-msi { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink) !important; font-size: 0.78rem !important; font-weight: 750 !important; }
.dash-msi em { font-style: normal; opacity: 0.8; }

.phone {
  position: absolute;
  z-index: 1;
  top: 70px;
  width: var(--pw);
  height: calc(var(--pw) * 2.05);
  padding: 9px;
  border-radius: calc(var(--pw) * 0.18);
  background: linear-gradient(160deg, #182d51, #142840);
  box-shadow: 0 40px 70px -30px rgba(20, 40, 64, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone--left { left: calc(50% - var(--dw) / 2 - var(--pw) + 28px); --dd: 0.45s; }
.phone--right { left: calc(50% + var(--dw) / 2 - 28px); top: 110px; --dd: 0.6s; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 20px; background: #030A17; z-index: 2; }
.phone-screen { height: 100%; border-radius: calc(var(--pw) * 0.15); background: var(--surface); padding: 46px 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.phone--dark .phone-screen { background: linear-gradient(180deg, #15283f, #0c1a2b); color: var(--on-dark-2); }
/* La tarjeta del centro tapa 28 px de cada teléfono: el contenido se recorre para que nada quede debajo */
.hero-stage .phone--left .phone-screen { padding-right: 34px; }
.hero-stage .phone--right .phone-screen { padding-left: 34px; }
.ps-label { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.phone--dark .ps-label { color: var(--on-dark-2); }
.ps-check { width: 54px; height: 54px; margin: 14px auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 8px var(--brand-soft); }
.ps-check .icon { width: 26px; height: 26px; }
.ps-folio { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.74rem; color: var(--brand-ink); letter-spacing: 0.02em; }
.ps-rows { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.ps-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.74rem; }
.ps-rows span { color: var(--muted); font-weight: 600; }
.ps-rows b { color: var(--ink); font-weight: 750; }
.ps-toggle { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 0.68rem; font-weight: 650; color: var(--muted); text-align: left; }
.ps-toggle i { position: relative; width: 28px; height: 16px; flex: none; border-radius: 999px; background: var(--brand); }
.ps-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.ps-foot { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; font-size: 0.66rem; font-weight: 750; color: var(--on-dark-2); }
.ps-foot i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--brand-2)); }
.ps-big { margin-top: 16px; font-size: calc(var(--pw) * 0.15); font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.ps-sub { margin-top: 6px; font-size: 0.72rem; font-weight: 700; color: var(--brand-2); }

/* Entrada de las pantallas: suben una tras otra */
.js .hero-stage:not(.is-in) .device { opacity: 0; transform: translateY(70px); }
.js .hero-stage.is-in .device { animation: device-up 1.3s var(--ease) both; animation-delay: var(--dd); }
@keyframes device-up { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
.check-draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hero-stage:not(.is-in) .check-draw path { stroke-dashoffset: 1; }
.js .hero-stage.is-in .check-draw path { animation: draw 0.7s var(--ease) 1.3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
}
.float-card strong { display: block; font-size: 0.95rem; }
.float-card span { color: var(--muted); font-weight: 650; font-size: 0.74rem; }
.float-card .badge-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--peach-soft); color: #3f6212; }
.float-card .badge-icon .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.float-card .badge-icon--live { position: relative; background: var(--brand-soft); color: var(--brand-ink); }
.float-card .badge-icon--live::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); animation: pulse 2.4s infinite; }
.hero-stage .float-card.fc-1 { --d: 1s; top: 0; left: calc(50% - var(--dw) / 2 - var(--pw) - 18px); }
.hero-stage .float-card.fc-3 { --d: 1.4s; top: 34px; right: calc(50% - var(--dw) / 2 - var(--pw) - 18px); }
.js .hero-stage:not(.is-in) .float-card { opacity: 0; transform: translateY(16px) scale(0.98); }
.js .hero-stage.is-in .float-card { animation: card-in 0.9s var(--ease) both, float 7s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + 0.9s); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (max-width: 1100px) {
  .hero-stage .float-card.fc-1 { display: none; }
  .hero-stage .float-card.fc-3 { right: 12px; top: 18px; }
}
@media (max-width: 760px) {
  .hero-x-panel { border-radius: 28px; }
  .hero-stage { height: auto; max-width: none; margin-top: 40px; padding: 0 14px; }
  .hero-stage .phone { display: none; }
  .hero-stage .dash-main, .hero-stage .hero-photo { position: relative; width: 100%; margin: 0 0 -26px; }
  .dash-main { padding: 18px 18px 44px; }
  .dash-teeth { gap: 3px; padding: 12px 10px 10px; }
  .dt { height: 24px; border-radius: 5px 5px 8px 8px; }
  .dt:nth-child(n+4):nth-child(-n+11) { height: 27px; }
  .hero-stage .float-card.fc-1 { display: none; }
  .hero-stage .float-card.fc-3 { position: relative; top: auto; right: auto; margin: 0 auto 20px; width: max-content; max-width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Cinta de tratamientos ---------- */
.ticker { overflow: hidden; color: var(--muted); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 26px; padding: 14px 0 14px 26px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Encabezados de sección ---------- */
.ax-head { margin-bottom: clamp(30px, 4.2vw, 50px); }
.ax-head--center { max-width: 800px; margin-inline: auto; text-align: center; }
.ax-head h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.038em; }
.ax-head p { max-width: 580px; margin: 16px 0 0; font-size: 1.08rem; color: var(--muted); }
.ax-head--center p { margin-inline: auto; }
.ax-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: 0.8rem; font-weight: 700; color: var(--brand-ink); transition: border-color 0.25s, transform 0.35s var(--ease); }
.ax-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
a.ax-pill:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.ax-pill svg { transition: transform 0.3s var(--ease); }
a.ax-pill:hover svg { transform: translateX(2px); }
.ax-pill--plain { padding: 0; background: none; border: 0; box-shadow: none; font-size: 0.95rem; }

.ax-panel { position: relative; padding: clamp(36px, 6vw, 84px) clamp(18px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--surface-2); }
:root[data-theme="dark"] .ax-panel, :root[data-theme="dark"] .ax-split { border: 1px solid var(--line); }
.ax-panel--tool { padding-bottom: clamp(28px, 4vw, 48px); }

/* Presentación + cifras */
.ax-intro { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(20px, 5vw, 80px); align-items: start; }
.ax-intro .ax-pill--plain { margin-top: 0.35em; }
.ax-intro-copy p { margin-bottom: 0.9em; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--muted); }
.ax-intro-copy strong { font-weight: 650; color: var(--ink); }
.ax-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 44px); border-top: 1px solid var(--line); }
.ax-stat { padding: 26px 20px 0 0; min-width: 0; }
.ax-stat + .ax-stat { padding-left: 20px; border-left: 1px solid var(--line); }
.ax-stat-value { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ax-stat-label { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.ax-stats--card { margin-top: 0; padding: 0 clamp(18px, 3vw, 36px) clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-s); }
@media (max-width: 760px) {
  .ax-intro { grid-template-columns: 1fr; }
  .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-stat { padding-bottom: 22px; }
  .ax-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Nube de tratamientos */
.ax-cloud { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto clamp(28px, 4vw, 40px); }
.ax-cloud-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ax-tile a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: 0.92rem; font-weight: 650; color: var(--ink); text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.ax-tile a:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: var(--shadow); border-color: var(--brand); }
.ax-tile a > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.ax-tile--0 a > span { background: var(--brand); }
.ax-tile--1 a > span { background: var(--petrol); }
.ax-tile--2 a > span { background: linear-gradient(135deg, var(--peach-2), var(--peach)); color: var(--peach-ink); }
.ax-tile--3 a > span { background: linear-gradient(135deg, #b5e3f8, #6cbfe8); color: #082f49; }
:root[data-theme="dark"] .ax-tile--1 a > span { background: #22395a; }
@media (max-width: 760px) {
  .ax-cloud, .ax-cloud-row { gap: 8px; }
  .ax-tile a { gap: 7px; padding: 5px 13px 5px 5px; font-size: 0.8rem; }
  .ax-tile a > span { width: 26px; height: 26px; }
  .ax-tile .icon { width: 15px; height: 15px; }
  .ax-cloud-row:nth-child(3) { display: none; }
}
.ax-note { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; font-size: 1.05rem; color: var(--muted); }
.ax-note strong { color: var(--ink); }

/* Tarjetas con ilustración y leyenda */
.ax-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 22px); list-style: none; margin: 0; padding: 0; }
.ax-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ax-card { min-width: 0; }
.ax-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 16px; padding: 20px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(20, 40, 64, 0.06); text-decoration: none; transition: transform 0.5s var(--ease); }
a.ax-visual:hover { text-decoration: none; }
.ax-card:hover .ax-visual { transform: translateY(-4px); }
.ax-visual--0 { background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.9), transparent 45%), linear-gradient(160deg, #e2eaf7, #bcceed); }
.ax-visual--1 { background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.9), transparent 45%), linear-gradient(160deg, #e6f4fb, #c3e5f5); }
.ax-visual--2 { background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 50%), linear-gradient(160deg, #eafbd0, #dbf9af); }
.ax-visual--3 { background: radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.85), transparent 50%), linear-gradient(160deg, #f1edff, #d9cffb); }
:root[data-theme="dark"] .ax-visual { border-color: var(--line); }
:root[data-theme="dark"] .ax-visual--0 { background: linear-gradient(160deg, #0b1b36, #081429); }
:root[data-theme="dark"] .ax-visual--1 { background: linear-gradient(160deg, #0c2f3d, #0a2230); }
:root[data-theme="dark"] .ax-visual--2 { background: linear-gradient(160deg, #2c351e, #1a1d16); }
:root[data-theme="dark"] .ax-visual--3 { background: linear-gradient(160deg, #241f45, #161430); }
.ax-visual--photo { padding: 0; }
.ax-visual--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-cap-row { display: flex; flex-direction: column; gap: 10px; }
.ax-cap { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.ax-cap strong { font-weight: 700; color: var(--ink); }
.ax-cap a { color: inherit; }
.ax-cap a:hover { text-decoration: none; }
.ax-cap a:hover strong { color: var(--brand-ink); }
.ax-price { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 750; color: var(--brand-ink); }
@media (max-width: 1000px) { .ax-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ax-cards, .ax-cards--4 { grid-template-columns: minmax(0, 1fr); } }

/* Mini interfaces dentro de las tarjetas */
.sv-card { width: min(100%, 262px); display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(20, 40, 64, 0.4), 0 0 0 1px rgba(20, 40, 64, 0.05); font-size: 0.74rem; line-height: 1.35; color: var(--ink-2); text-align: left; transition: transform 0.5s var(--ease); }
.ax-card:hover .sv-card { transform: translateY(-3px) scale(1.02); }
.sv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.sv-row > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-row > :last-child:not(:first-child) { flex: none; }
.ax-cards--4 .ax-visual { aspect-ratio: 1 / 1; padding: 16px; }
.sv-row--head { border-top: 0; font-size: 0.62rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sv-row--total { border-top: 1px dashed var(--line); font-size: 0.82rem; }
.sv-k { font-size: 0.62rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sv-big { font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.sv-ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.sv-ok .icon, .sv-stamp .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.sv-stamp { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); font-weight: 700; color: var(--brand-ink); }
.sv-up { letter-spacing: 0; color: var(--brand-ink); }
.sv-meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 2px 0 4px; }
.sv-meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--peach), #ccf68d); transform-origin: 0 50%; transition: width 1.4s var(--ease) 0.3s; }
.sv-meter--brand i { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.js .ax-card:not(.is-in) .sv-meter i { width: 72% !important; }
.js .ax-card:not(.is-in) .sv-meter--brand i { width: 4% !important; }
.sv-shades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 4px 0 2px; }
.sv-shades i { height: 30px; border-radius: 6px 6px 10px 10px; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.07); transition: transform 0.5s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js .ax-card:not(.is-in) .sv-shades i { transform: translateY(8px) scale(0.85); }
.sv-step { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.sv-step i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-style: normal; font-weight: 800; font-size: 0.66rem; color: var(--muted); }
.sv-step.is-done i { background: var(--brand); color: #fff; }
.sv-step.is-done i .icon { width: 12px; height: 12px; stroke-width: 3; }
.sv-pain { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.sv-pain span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 1rem; color: #fff; background: var(--urgent); }
.sv-pain span + i + span { background: var(--brand); }
.sv-pain i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--urgent), var(--brand)); border-radius: 2px; }
.sv-tooth { position: relative; display: grid; place-items: center; height: 70px; color: var(--ink); }
.sv-tooth em { position: absolute; left: 50%; top: 22px; width: 18px; height: 9px; margin-left: -9px; border-radius: 9px; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sv-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 26px; background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow); }
.sv-chat { width: min(100%, 270px); display: flex; flex-direction: column; gap: 10px; }
.sv-bubble { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: 0 14px 30px -16px rgba(20, 40, 64, 0.4); font-size: 0.8rem; line-height: 1.4; color: var(--ink); text-align: left; transition: opacity 0.5s, transform 0.6s var(--ease); }
.sv-bubble--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--petrol); color: #fff; }
.sv-bubble:not(.sv-bubble--me) { transition-delay: 0.5s; }
.js .ax-card:not(.is-in) .sv-bubble { opacity: 0; transform: translateY(10px); }
.sv-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 4px 0; }
.sv-cal-grid i { display: grid; place-items: center; height: 22px; border-radius: 7px; background: var(--surface-2); font-style: normal; font-size: 0.64rem; font-weight: 700; color: var(--ink-2); transition: background-color 0.4s 0.5s, color 0.4s 0.5s; }
.sv-cal-grid i.is-off { opacity: 0.35; }
.sv-cal-grid i.is-sel { background: var(--brand); color: #fff; }
.js .ax-card:not(.is-in) .sv-cal-grid i.is-sel { background: var(--surface-2); color: var(--ink-2); }
.sv-xray-img { position: relative; display: grid; place-items: center; height: 84px; margin: 4px 0; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #293851, #0a1323); color: #ced7e7; overflow: hidden; }
.sv-xray-img em { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-2), transparent); box-shadow: 0 0 12px 3px rgba(42, 122, 179, 0.5); animation: scan-y 2.8s ease-in-out infinite alternate; }
@keyframes scan-y { to { top: calc(100% - 2px); } }
.sv-receipt .sv-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Manifiesto en video ---------- */
.mfv { padding-block: clamp(36px, 6vw, 80px); }
.mfv-frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); background: #0c1a2b center / cover no-repeat; box-shadow: 0 50px 100px -50px rgba(7, 15, 25, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mfv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mfv-toggle {
  position: absolute;
  right: clamp(12px, 2vw, 22px);
  top: clamp(12px, 2vw, 22px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(7, 15, 25, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.25s, transform 0.35s var(--ease), background-color 0.25s;
}
.mfv-toggle:hover, .mfv-toggle:focus-visible { opacity: 1; transform: scale(1.06); background: rgba(7, 15, 25, 0.8); }
.mfv-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.mfv-toggle .mfv-play, .mfv-frame.is-paused .mfv-pause { display: none; }
.mfv-frame.is-paused .mfv-play { display: block; }
.mfv-frame.is-paused .mfv-toggle { opacity: 1; width: 68px; height: 68px; right: 50%; top: 50%; translate: 50% -50%; background: var(--peach); color: var(--peach-ink); border-color: transparent; }
.mfv-frame.is-paused .mfv-toggle svg { width: 24px; height: 24px; margin-left: 3px; }
.mfv-copy { display: flex; justify-content: center; margin-top: clamp(20px, 3vw, 30px); }
@media (max-width: 640px) { .mfv-frame { aspect-ratio: 4 / 5; border-radius: 26px; } }

/* ==========================================================================
   Herramientas: diagnóstico, cotizador, asistentes y comparador antes/después
   ========================================================================== */

.tool-disclaimer { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 24px auto 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.tool-disclaimer .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-ink); }
/* Aviso legal de resultados junto a los antes y después */
.results-note { display: flex; align-items: flex-start; gap: 8px; max-width: 760px; margin: 16px auto 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted); text-align: left; }
.results-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand-ink); }
.results-note a { color: var(--brand-ink); font-weight: 650; white-space: nowrap; }
.bax .results-note { margin: 18px 0 0; color: var(--on-dark-2); opacity: 0.85; }
.bax .results-note .icon, .bax .results-note a { color: var(--brand-2); }
.field-label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 8px; }

.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.86rem; line-height: 1.2; color: var(--ink-2); cursor: pointer; transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.chip-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.chip-btn[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.is-filtered-out { display: none !important; }

/* Control segmentado en píldora (forma de pago) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg--full { display: flex; width: 100%; }
.seg--full > * { flex: 1 1 0; }
.seg button, .seg label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 0.86rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
:root[data-theme="dark"] .seg button[aria-pressed="true"], :root[data-theme="dark"] .seg label:has(input:checked) { background: var(--brand); color: #ffffff; }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); }

/* ---------- Diagnóstico: tablero y pasos ---------- */
.mapa { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.mapa-board { position: relative; padding: clamp(16px, 2.5vw, 28px); border-radius: 30px; background: radial-gradient(circle at 50% 46%, var(--surface) 0%, color-mix(in srgb, var(--surface) 70%, var(--surface-2)) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mapa-pulse { position: absolute; left: 50%; top: 52%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; pointer-events: none; animation: map-pulse 2.6s var(--ease) infinite; }
.mapa-board:has(.has-selection) .mapa-pulse { display: none; }
@keyframes map-pulse { 0% { transform: scale(0.4); opacity: 0.5; } 100% { transform: scale(2.4); opacity: 0; } }
/* Computadora del diagnóstico: zonas tocables con etiqueta */
/* ¿Qué le pasa a tu equipo?: foto del equipo con puntos que se tocan (como el mapa dental) */
.diag-board { padding: clamp(12px, 2vw, 20px); background: radial-gradient(circle at 50% 55%, #16314f 0%, #0b1726 72%); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.dv-tabs { position: relative; z-index: 3; display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.dv-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: #b3c1d6; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.dv-tab .icon { width: 17px; height: 17px; }
.dv-tab:hover { color: #fff; }
.dv-tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.dv-tab:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.dv-stage { position: relative; aspect-ratio: 1; max-width: 560px; margin: 0 auto; container-type: inline-size; }
/* En tableros chicos sólo se ven los puntos; el nombre sale al pasar el mouse, al enfocarlo o al elegirlo */
@container (max-width: 470px) {
  .dv-hot span { position: absolute; left: 36px; top: 50%; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .dv-hot--left span { left: auto; right: 36px; }
  .dv-hot:hover span, .dv-hot:focus-visible span, .dv-hot.is-selected span { opacity: 1; }
}
.dv-stage[hidden] { display: none !important; }
.dv-stage > img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 76%); mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 76%); }
.dv-stage.is-entering > img { animation: dv-in 0.7s var(--ease) both; }
@keyframes dv-in { from { opacity: 0; transform: scale(0.96); } }
.dv-hot { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; transform: translate(-15px, -50%); cursor: pointer; font: inherit; color: #fff; transition: opacity 0.3s; }
.dv-hot i { position: relative; display: block; flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, var(--brand-2) 24% 52%, color-mix(in srgb, var(--brand-2) 35%, transparent) 54%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent), 0 6px 16px rgba(0, 0, 0, 0.45); transition: transform 0.35s var(--ease), background 0.3s; }
.dv-hot i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand-2); opacity: 0; animation: dv-ping 2.4s var(--ease) infinite; animation-delay: var(--d, 0ms); }
@keyframes dv-ping { 0% { opacity: 0.8; transform: scale(0.7); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
.dv-hot span { padding: 6px 11px; border-radius: 999px; background: rgba(10, 20, 32, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.78rem; font-weight: 750; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.dv-hot--left { flex-direction: row-reverse; transform: translate(calc(-100% + 15px), -50%); }
.dv-hot:hover i, .dv-hot:focus-visible i { transform: scale(1.15); }
.dv-hot:hover span, .dv-hot:focus-visible span { background: var(--brand); border-color: transparent; }
.dv-hot:focus-visible { outline: none; }
.dv-hot:focus-visible span { box-shadow: 0 0 0 2px var(--peach); }
.has-selection .dv-hot:not(.is-selected) { opacity: 0.45; }
.has-selection .dv-hot:not(.is-selected):hover { opacity: 1; }
.dv-hot.is-selected i { transform: scale(1.2); background: radial-gradient(circle, #fff 0 22%, var(--peach) 24% 52%, color-mix(in srgb, var(--peach) 35%, transparent) 54%); }
.dv-hot.is-selected span { background: var(--peach); color: var(--peach-ink); border-color: transparent; }
.js .diag-board:not(.is-in) .dv-hot { opacity: 0; }
.js .diag-board.is-in .dv-hot { animation: dv-pop 0.5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes dv-pop { from { opacity: 0; scale: 0.6; } }
.diag-board .mapa-hint { color: #b3c1d6; }
.diag-board .mapa-hint .icon { color: var(--brand-2); }
.diag-photo { position: relative; margin: 0 0 16px; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--surface-2); }
.diag-photo img { width: 100%; height: 100%; object-fit: cover; }
.diag-photo figcaption { position: absolute; left: 12px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 20, 32, 0.78); color: #fff; font-size: 0.76rem; font-weight: 750; }
@media (max-width: 520px) {
  .dv-tabs { width: 100%; }
  .dv-tab { flex: 1; gap: 5px; padding: 9px 4px; font-size: 0.8rem; }
  .dv-tab .icon { width: 15px; height: 15px; }
  .dv-hot i { width: 26px; height: 26px; }
  .dv-hot { transform: translate(-13px, -50%); gap: 6px; }
  .dv-hot--left { transform: translate(calc(-100% + 13px), -50%); }
  .dv-hot span { padding: 5px 9px; font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) { .dv-hot i::after { animation: none; } }
.mapa-tooth-n--icon { color: #fff; font-size: 1.4rem; font-weight: 800; background: radial-gradient(circle at 50% 40%, var(--brand-2), var(--brand)); }
.mapa-tooth-n--icon .icon { width: 26px; height: 26px; }
.mapa-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
.mapa-hint .icon { width: 16px; height: 16px; color: var(--brand-ink); flex: none; }

.mapa-panel { min-width: 0; }
.mapa-step { padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.mapa-step.is-entering { animation: rise 0.55s var(--ease); }
.mapa-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.35rem; }
.mapa-step h3 small { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mapa-step h4 { margin: 22px 0 10px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mapa-step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--petrol); color: #fff; font-size: 0.86rem; font-weight: 800; }
:root[data-theme="dark"] .mapa-step-n { background: var(--brand); color: #ffffff; }
[data-mapa-empty] .mapa-step-n { margin-bottom: 16px; }
[data-mapa-empty] p { color: var(--muted); }
.mapa-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.mapa-quick span { width: 100%; font-size: 0.84rem; font-weight: 650; color: var(--muted); }
.mapa-tooth { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 10px 12px 10px 10px; border-radius: 999px; background: var(--surface-2); }
.mapa-tooth-n { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3672d9, var(--brand)); box-shadow: 0 0 0 5px var(--brand-soft), inset 0 -6px 12px rgba(9, 20, 33, 0.18); }
.mapa-tooth-n img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(9, 20, 33, 0.35)); }
.mapa-tooth div { min-width: 0; flex: 1; line-height: 1.25; }
.mapa-tooth small { display: block; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mapa-tooth strong { display: block; font-size: 1rem; }
.mapa-change { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.82rem; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.mapa-change:hover { border-color: var(--brand); }
.mapa-symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 20px; }
.mapa-sym { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 0.86rem; font-weight: 650; line-height: 1.3; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.mapa-sym:hover { border-color: var(--brand); transform: translateY(-1px); }
.mapa-sym i { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color 0.25s, border-color 0.25s; }
.mapa-sym i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease); }
.mapa-sym[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.mapa-sym[aria-pressed="true"] i { background: var(--brand); border-color: var(--brand); }
.mapa-sym[aria-pressed="true"] i::after { transform: rotate(45deg) scale(1); }
/* "Es otra cosa": la persona describe el problema con sus palabras */
.mapa-sym--other { border-style: dashed; color: var(--brand-ink); }
.mapa-other { grid-column: 1 / -1; display: grid; gap: 6px; }
.mapa-other[hidden] { display: none !important; }
.mapa-other label { font-size: 0.84rem; font-weight: 750; color: var(--ink); }
.mapa-other textarea { width: 100%; min-height: 92px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.92rem; line-height: 1.45; resize: vertical; }
.mapa-other textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mapa-other small { font-size: 0.78rem; color: var(--muted); }
.chip-btn--other { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--brand-ink); }
.chip-btn--other .icon { width: 15px; height: 15px; }
.mapa-story { margin: 0; padding: 12px 16px; border-left: 3px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--surface-2); font-size: 0.94rem; color: var(--ink-2); font-style: italic; }
.mapa-level { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; }
.mapa-level strong { display: block; font-size: 1.05rem; }
.mapa-level p { margin: 2px 0 0; font-size: 0.9rem; }
.mapa-level-dot { position: relative; width: 14px; height: 14px; flex: none; margin-top: 5px; border-radius: 50%; background: currentColor; }
.mapa-level-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.35; animation: ring-out 1.8s var(--ease) infinite; }
.mapa-level--ok { background: var(--brand-soft); color: var(--brand-ink); }
.mapa-level--soon { background: var(--warn-soft); color: var(--warn); }
.mapa-level--urgent { background: var(--urgent-soft); color: var(--urgent); }
.mapa-level strong, .mapa-level p { color: var(--ink); }
.mapa-causes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mapa-causes li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--ink-2); }
.mapa-causes li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.mapa-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mapa-rec { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.mapa-rec:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.mapa-rec strong { font-size: 0.92rem; line-height: 1.3; }
.mapa-rec small { font-size: 0.78rem; font-weight: 650; color: var(--brand-ink); }
.mapa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 960px) { .mapa { grid-template-columns: minmax(0, 1fr); } .mapa-board { max-width: 560px; width: 100%; margin-inline: auto; } }
@media (max-width: 520px) {
  .mapa-symptoms { grid-template-columns: minmax(0, 1fr); }
  .mapa-actions .btn { flex: 1 1 100%; }
  .mapa-tooth { flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 24px; }
  .mapa-tooth div { flex: 1 1 0; }
  .mapa-change { flex: 1 1 100%; padding: 9px 14px; }
  .mapa-board { padding: 10px 6px 14px; border-radius: 24px; }
  .mapa-hint { font-size: 0.78rem; padding-inline: 10px; }
}

/* ---------- Ventana (marco de las herramientas) ---------- */
.window { border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-l); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; flex: none; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { flex: 1; text-align: center; margin-right: 40px; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-window { max-width: 1040px; margin-inline: auto; box-shadow: 0 40px 80px -30px rgba(20, 40, 64, 0.4); }

/* ---------- Cotizador ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 32px); padding: clamp(16px, 2.5vw, 30px); }
.quote-pick { min-width: 0; }
.quote-pick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quote-pick-head strong { display: block; font-size: 1.1rem; color: var(--ink); line-height: 1.2; }
.quote-pick-head small { color: var(--muted); font-weight: 600; }
.quote-cats { display: flex; gap: 6px; margin-bottom: 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.quote-cats::-webkit-scrollbar { display: none; }
.quote-cats .chip-btn { flex: none; padding: 7px 14px; font-size: 0.8rem; }
.quote-list { list-style: none; margin: 0; padding: 2px 6px 2px 2px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 470px; overflow-y: auto; scrollbar-width: thin; padding-bottom: 36px; mask-image: linear-gradient(#000 calc(100% - 56px), transparent); -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent); }
.quote-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.quote-item:hover { border-color: var(--brand); transform: translateY(-1px); }
.quote-item-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.quote-item-icon .icon { width: 20px; height: 20px; }
.quote-item-text { min-width: 0; flex: 1; line-height: 1.25; }
.quote-item-text strong { display: block; font-size: 0.88rem; color: var(--ink); }
.quote-item-text small { display: block; margin-top: 2px; font-size: 0.76rem; font-weight: 650; color: var(--muted); }
.quote-item-add { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.quote-item-add .icon { position: absolute; width: 15px; height: 15px; stroke-width: 2.6; transition: transform 0.35s var(--ease), opacity 0.25s; }
.quote-item-add .icon-check { opacity: 0; transform: scale(0.4); }
.quote-item[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.quote-item[aria-pressed="true"] .quote-item-add { background: var(--brand); border-color: var(--brand); color: #fff; }
.quote-item[aria-pressed="true"] .quote-item-add .icon-plus { opacity: 0; transform: rotate(90deg) scale(0.4); }
.quote-item[aria-pressed="true"] .quote-item-add .icon-check { opacity: 1; transform: none; }

/* El presupuesto como ticket con orilla de sierra */
.quote-ticket {
  position: relative;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 34px;
  border-radius: 24px 24px 0 0;
  background: var(--surface-2);
  --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
}
.quote-ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.quote-ticket-head span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8rem; font-weight: 750; color: var(--ink); }
.quote-logo { width: 24px; height: 24px; flex: none; }
.quote-ticket-head strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-ink); white-space: nowrap; }
.quote-lines { display: grid; gap: 8px; }
.quote-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.quote-empty .icon { color: var(--brand); opacity: 0.8; }
.quote-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 14px; background: var(--surface); }
.quote-line.is-new { animation: rise 0.45s var(--ease); }
.quote-line-main { min-width: 0; }
.quote-line-main strong { display: block; font-size: 0.88rem; line-height: 1.3; }
.quote-line-price { font-weight: 750; color: var(--ink); font-size: 0.92rem; }
.quote-remove { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.quote-remove:hover { background: var(--urgent-soft); color: var(--urgent); }
.quote-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.quote-qty button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-weight: 800; line-height: 1; cursor: pointer; }
.quote-qty button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.quote-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.quote-qty b { min-width: 20px; text-align: center; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.quote-qty small { margin-left: 2px; font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.quote-sum { display: grid; gap: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.quote-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.quote-row span { color: var(--muted); }
.quote-row--soft strong { color: var(--brand-ink); }
.quote-pay .field-label { font-size: 0.8rem; }
.quote-pay .seg button { font-size: 0.8rem; padding: 6px 8px; }
.quote-big { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 20px; background: var(--petrol); color: var(--on-dark-2); text-align: center; }
.quote-big small { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2); }
.quote-big strong { font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.045em; color: #fff; }
.quote-big span { font-size: 0.82rem; font-weight: 600; }
:root[data-theme="dark"] .quote-big { background: #060e18; border: 1px solid var(--line); }
.quote-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); font-size: 0.82rem; color: var(--ink-2); }
.quote-fine { margin: 0; font-size: 0.76rem; line-height: 1.45; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote-list { max-height: none; overflow: visible; padding: 0; mask-image: none; -webkit-mask-image: none; }
}
/* En celular la lista se muestra corta (6) con un botón para ver el resto */
.quote-more { display: none; }
@media (max-width: 900px) {
  .quote.is-collapsed .quote-list > li:not([hidden]):nth-child(n+7) { display: none; }
  .quote.is-collapsed .quote-more { display: flex; }
  .quote-more { width: 100%; justify-content: center; margin-top: 10px; }
}
@media (max-width: 560px) {
  .quote-ticket-head span { font-size: 0; gap: 0; }
  .quote-list { grid-template-columns: minmax(0, 1fr); }
  .quote-pay .seg { border-radius: 22px; }
  .quote-pay .seg button { flex: 1 1 40%; }
}
.window--wide .quote { padding: clamp(16px, 3vw, 36px); }

/* ---------- Test de salud bucal ---------- */
.quiz { position: relative; padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-l); overflow: hidden; isolation: isolate; }
.quiz::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 122, 179, 0.18), transparent 65%); }
.quiz-start { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.quiz-start h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.quiz-start p { color: var(--muted); }
.quiz-ring { position: relative; display: grid; place-items: center; width: 160px; height: 160px; flex: none; color: var(--brand-ink); }
.quiz-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.quiz-ring-fill { fill: none; stroke: var(--ring, var(--brand)); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--score, 0.72)); transition: stroke-dashoffset 1.6s var(--ease); }
.quiz-start .quiz-ring-fill { animation: ring-spin 6s linear infinite; transform-origin: 60px 60px; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.quiz-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.quiz-back .icon { transform: rotate(180deg); }
.quiz-back:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz-count { flex: none; font-size: 0.82rem; font-weight: 750; color: var(--muted); }
.quiz-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.quiz-q h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 22px; }
.quiz-q--next { animation: q-next 0.55s var(--ease); }
.quiz-q--back { animation: q-back 0.55s var(--ease); }
@keyframes q-next { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes q-back { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px 12px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 1rem; font-weight: 650; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.quiz-opt:hover { border-color: var(--brand); transform: translateX(4px); }
.quiz-opt-k { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 0.82rem; font-weight: 800; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.quiz-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.quiz-opt[aria-pressed="true"] .quiz-opt-k { background: var(--brand); color: #fff; }
.quiz-result { animation: rise 0.6s var(--ease); }
.quiz-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: center; padding-bottom: 24px; border-bottom: 1px dashed var(--line); }
.quiz-score .quiz-ring b { position: relative; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-top: -6px; }
.quiz-score .quiz-ring small { position: absolute; bottom: 42px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.quiz-result:not(.is-scored) .quiz-ring-fill { stroke-dashoffset: 1; }
.quiz-score--great { --ring: var(--brand); }
.quiz-score--good { --ring: #2a7ab3; }
.quiz-score--warn { --ring: #e9a23b; }
.quiz-score--risk { --ring: var(--urgent); }
.quiz-score h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.quiz-score p { margin: 0; color: var(--muted); }
.quiz-result h4 { margin: 22px 0 12px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.quiz-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quiz-recs li { position: relative; padding: 12px 14px 12px 46px; border-radius: 16px; background: var(--surface-2); font-size: 0.94rem; color: var(--ink-2); }
.quiz-recs li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.quiz-recs a { font-weight: 700; white-space: nowrap; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 640px) {
  .quiz-start, .quiz-score { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .quiz-ring { width: 136px; height: 136px; }
  .quiz-score .quiz-ring small { bottom: 34px; }
  .quiz-actions .btn { flex: 1 1 100%; }
  .quiz-count { display: none; }
}

/* ---------- Comparador antes / después ---------- */
.ba { --pos: 50%; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 600 / 380; border-radius: 26px; background: #cedfb3; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba--photo { aspect-ratio: 16 / 10; background: var(--surface-3); }
.ba-layer { position: absolute; inset: 0; }
.ba-layer > svg, .ba-layer > img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 14px; z-index: 2; padding: 6px 13px; border-radius: 999px; background: rgba(7, 15, 25, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; transition: opacity 0.3s; }
.ba-tag--before { left: 14px; }
.ba-tag--after { right: 14px; background: rgba(42, 122, 179, 0.85); color: #ffffff; }
.ba.is-left .ba-tag--before, .ba.is-right .ba-tag--after { opacity: 0; }
.ba-note { position: absolute; right: 14px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(7, 15, 25, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: rgba(255, 255, 255, 0.88); font-size: 0.66rem; font-weight: 650; letter-spacing: 0.02em; pointer-events: none; }
.ba--card .ba-note { right: 10px; bottom: 9px; font-size: 0.6rem; }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 40, 64, 0.12), 0 0 18px rgba(0, 0, 0, 0.25); }
.ba-handle i { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--petrol); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.ba:hover .ba-handle i, .ba.is-dragging .ba-handle i { transform: scale(1.08); }
.ba:has(.ba-range:focus-visible) .ba-handle i { box-shadow: 0 0 0 4px var(--peach), 0 10px 26px -8px rgba(0, 0, 0, 0.45); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba-range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.ba--card { border-radius: 0; }

/* Casos en pestañas (portada): panel marino */
.bax { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-xl); background: linear-gradient(160deg, #142840 0%, #0c1a2b 100%); color: var(--on-dark-2); overflow: hidden; isolation: isolate; }
:root[data-theme="dark"] .bax { background: linear-gradient(160deg, #0f1f33, #060e18); border: 1px solid var(--line); }
.bax-glow { position: absolute; z-index: -1; width: 640px; height: 640px; left: -220px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 122, 179, 0.35), transparent 65%); pointer-events: none; }
.bax .ax-head h2, .quotesx .ax-head h2, .ax-split-visual .ax-head h2 { color: #fff; }
.bax .ax-head h2 em, .quotesx .ax-head h2 em { color: var(--brand-2); }
.bax .ax-head p { color: var(--on-dark-2); }
.bax .ax-pill, .quotesx .ax-pill { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; color: #fff; }
.bax a.ax-pill:hover { border-color: var(--brand-2); }
.bax-tabs { display: grid; gap: 6px; margin-bottom: 24px; }
.bax-tab { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: var(--on-dark-2); text-align: left; cursor: pointer; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.bax-tab:hover { background: rgba(255, 255, 255, 0.05); }
.bax-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.bax-tab-n { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.78rem; font-weight: 800; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.bax-tab[aria-selected="true"] .bax-tab-n { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.bax-tab strong { display: block; font-size: 0.98rem; color: inherit; }
.bax-tab small { display: block; font-size: 0.8rem; opacity: 0.75; line-height: 1.35; }
.bax-stage { min-width: 0; }
.bax-panel.is-entering { animation: reveal-zoom 0.6s var(--ease); }
.bax-panel .ba { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.bax-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 0.86rem; font-weight: 650; }
.bax-meta span { display: inline-flex; align-items: center; gap: 7px; }
.bax-meta .icon { width: 16px; height: 16px; color: var(--brand-2); }
.bax-metric { padding: 4px 12px; border-radius: 999px; background: rgba(42, 122, 179, 0.14); color: #fff; }
.bax-metric b { color: var(--brand-2); }
.bax-meta a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 750; }
.bax-meta a .icon { color: var(--peach); transition: transform 0.3s var(--ease); }
.bax-meta a:hover { text-decoration: none; }
.bax-meta a:hover .icon { transform: translateX(3px); }
.bax--single { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); }
@media (max-width: 900px) {
  .bax, .bax--single { grid-template-columns: minmax(0, 1fr); }
  .bax-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bax-tab small { display: none; }
}
.bax-tab > span:last-child { min-width: 0; }
.bax-tab strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .bax-tabs { gap: 8px; }
  .bax-tab { justify-content: center; padding: 11px 12px; border-color: rgba(255, 255, 255, 0.1); }
  .bax-tab-n { display: none; }
  .bax-tab strong { font-size: 0.9rem; text-align: center; }
  .bax-meta a { margin-left: 0; }
}

/* ==========================================================================
   Secciones: cielo pastel, texto + visual, equipo, testimonios, preguntas,
   agenda, cierre, páginas interiores, pie y animaciones
   ========================================================================== */

/* ---------- Cielo pastel (cotizador en la portada) ---------- */
.ax-sky { position: relative; padding: clamp(48px, 7vw, 96px) clamp(12px, 3.5vw, 44px) clamp(28px, 4vw, 52px); border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #b6c9eb 0%, #dee7f6 40%, #e8f5fc 100%); }
:root[data-theme="dark"] .ax-sky { background: linear-gradient(180deg, #13253c 0%, #0f1f33 55%, #0b1522 100%); border: 1px solid var(--line); }
.ax-sky .ax-head p { color: var(--ink-2); }
.cta-cloud { position: absolute; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); pointer-events: none; animation: cloud-drift 32s ease-in-out infinite alternate; }
.cta-cloud--1 { width: 640px; height: 260px; left: -140px; top: 30px; }
.cta-cloud--2 { width: 540px; height: 220px; right: -120px; top: -40px; animation-duration: 40s; animation-direction: alternate-reverse; }
:root[data-theme="dark"] .cta-cloud { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)); }
@keyframes cloud-drift { to { transform: translateX(70px); } }

/* ---------- Texto + visual (más herramientas) ---------- */
.ax-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(8px, 3vw, 40px); padding: clamp(10px, 1.3vw, 16px); border-radius: var(--radius-xl); background: var(--surface-2); }
.ax-split-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(22px, 4vw, 56px); }
.ax-split-copy .ax-head { margin-bottom: 24px; }
.ax-split-copy .ax-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.ax-points { display: grid; gap: 14px; list-style: none; margin: 0 0 30px; padding: 0; }
.ax-points li { padding-left: 16px; border-left: 2px solid var(--line); font-size: 0.98rem; color: var(--muted); transition: border-color 0.3s; }
.ax-points li:hover { border-left-color: var(--brand); }
.ax-points strong { color: var(--ink); }
.ax-split-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 440px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius-xl) - 12px); overflow: hidden; isolation: isolate; background: radial-gradient(60% 60% at 80% 10%, rgba(42, 122, 179, 0.35), transparent 70%), linear-gradient(160deg, #142840, #0c1a2b); }
.ax-split-visual--light { background: radial-gradient(60% 60% at 80% 10%, rgba(255, 255, 255, 0.9), transparent 70%), linear-gradient(160deg, #dee7f6, #b6c9eb); }
:root[data-theme="dark"] .ax-split-visual--light { background: linear-gradient(160deg, #13253c, #0b1522); }
.tq-card { width: min(100%, 380px); padding: 18px 20px; border-radius: 24px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark-2); transition: opacity 0.6s, transform 0.9s var(--ease); }
.tq-card strong { display: block; color: #fff; font-size: 1.1rem; line-height: 1.3; margin: 4px 0 12px; }
.tq-k { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2); }
.tq-opt { display: block; margin-top: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; font-weight: 650; }
.tq-opt.is-on { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.tq-card--q { transform: rotate(-2deg) translateX(-18px); }
.tq-card--r { display: flex; align-items: center; gap: 16px; transform: rotate(1.5deg) translateX(22px); background: #fff; color: var(--muted); border-color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .tq-card--r { background: var(--surface); border-color: var(--line); }
.tq-card--r strong { color: var(--ink); margin: 2px 0; font-size: 1.05rem; }
.tq-card--r small { font-size: 0.82rem; }
.quiz-ring--sm { width: 84px; height: 84px; }
.quiz-ring--sm b { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; }
.js .ax-split-visual:not(.is-in) .tq-card { opacity: 0; }
.js .ax-split-visual:not(.is-in) .tq-card--q { transform: rotate(-2deg) translate(-18px, 30px); }
.js .ax-split-visual:not(.is-in) .tq-card--r { transform: rotate(1.5deg) translate(22px, 40px); }
.ax-split-visual.is-in .tq-card--r { transition-delay: 0.25s; }
.js .ax-split-visual:not(.is-in) .quiz-ring-fill { stroke-dashoffset: 1; }
.ax-split-visual .quiz-ring-fill { transition-delay: 0.6s; }
/* Cuadrantes de la numeración FDI */
@media (max-width: 900px) { .ax-split { grid-template-columns: minmax(0, 1fr); } .ax-split-visual { min-height: 0; } }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-s);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
  isolation: isolate;
}
/* Luz que sigue al cursor (sólo con mouse) */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { text-decoration: none; }
.icon-box { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 20px; transition: background-color 0.4s var(--ease), color 0.4s, transform 0.5s var(--ease); }
.icon-box .icon { width: 25px; height: 25px; }
.card:hover .icon-box { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.05); }
.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.service-card-top .icon-box { margin: 0; }
.service-card-top .pill { font-size: 0.72rem; text-align: right; }
.service-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 18px; }
.service-facts div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.service-facts dt { font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.service-facts dd { margin: 2px 0 0; font-size: 0.86rem; font-weight: 750; color: var(--ink); line-height: 1.3; }
.service-card .link-arrow { margin-top: auto; }
.pay-card h3, .tip-card h3, .value-card h3 { font-size: 1.12rem; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; color: var(--ink-2); }
.check-list .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 3; }
.benefit-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* Equipo */
.team-card { padding: 0; overflow: hidden; }
.team-photo { position: relative; aspect-ratio: 4 / 4.2; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, #fff, transparent 60%), linear-gradient(160deg, #dee7f6, #b6c9eb); }
:root[data-theme="dark"] .team-photo { background: linear-gradient(160deg, #15283f, #0b1522); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo .initials { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--petrol), var(--brand)); color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5), var(--shadow); }
.team-tag { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.76rem; font-weight: 750; color: var(--petrol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.team-body h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-role { color: var(--brand-ink); font-weight: 700; font-size: 0.88rem; }
.team-body p { margin: 10px 0 0; font-size: 0.9rem; }
.team-facts { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.team-facts li { display: flex; align-items: center; gap: 8px; }
.team-facts .icon { width: 15px; height: 15px; flex: none; color: var(--brand-ink); }
.team-body .link-arrow { margin-top: 14px; font-size: 0.9rem; }

/* Casos (tarjeta con comparador) */
.case-card { padding: 0; overflow: hidden; }
.case-card .ba { border-bottom: 1px solid var(--line); }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case-body h3 { font-size: 1.16rem; }
.case-body .link-arrow { margin-top: auto; }
.case-card h3 a::after { content: none; }

/* ---------- Testimonios: citas que se iluminan ---------- */
.quotesx { position: relative; border-radius: var(--radius-xl); background: var(--petrol); color: var(--on-dark-2); }
:root[data-theme="dark"] .quotesx { background: #060e18; border: 1px solid var(--line); }
.quotesx-sticky { position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: clamp(420px, 50vw, 540px); padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; }
.quotesx-sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 88% 18%, rgba(42, 122, 179, 0.45), transparent 70%), radial-gradient(40% 55% at 8% 95%, rgba(166, 216, 245, 0.22), transparent 70%); }
.quotesx .ax-head { margin-bottom: 0; }
.quotesx-dots { display: flex; gap: 6px; margin: 32px 0 0; }
.quotesx-dots button { display: grid; align-items: center; width: 48px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.quotesx-dots span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; transition: background-color 0.25s; }
.quotesx-dots button:hover span { background: rgba(255, 255, 255, 0.3); }
.quotesx-dots span::after { content: ""; display: block; height: 100%; background: var(--brand-2); transform-origin: 0 50%; transform: scaleX(0); }
.quotesx-dots button.is-done span::after { transform: scaleX(1); }
.quotesx-dots button[aria-pressed="true"] span::after { animation: quote-progress var(--qt, 7s) linear forwards; }
.quotesx.is-paused .quotesx-dots button[aria-pressed="true"] span::after { animation-play-state: paused; }
@keyframes quote-progress { to { transform: scaleX(1); } }
.quotesx-stage { display: grid; }
.quotesx-scene { grid-area: 1 / 1; align-self: center; margin: 0; }
.quotesx-scene blockquote { margin: 0 0 34px; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.24; letter-spacing: -0.025em; color: #fff; }
.quotesx-scene blockquote::before { content: "“"; display: block; height: 0.45em; font-family: var(--font-serif); font-size: 4.4em; line-height: 0.62; color: var(--tone); }
.quotesx-scene blockquote span { opacity: 0.16; transition: opacity 0.3s; }
.quotesx-scene.is-active blockquote span { opacity: 1; transition: opacity 0.45s calc(0.15s + var(--k) * 1.6s); }
.quotesx-who { display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s; }
.quotesx-scene.is-active .quotesx-who { opacity: 1; transform: none; transition: opacity 0.5s 1.4s, transform 0.7s var(--ease) 1.4s; }
.quotesx-avatar { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); font-weight: 800; }
.quotesx-who strong { display: block; color: #fff; }
.quotesx-who > span > span { font-size: 0.86rem; color: var(--on-dark-2); }
.quotesx-stars { margin-left: auto; display: flex; gap: 2px; color: var(--peach); }
.quotesx-stars .icon { width: 16px; height: 16px; fill: currentColor; stroke-width: 1; }
.quotesx-track.is-live .quotesx-scene { opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity 0.45s, transform 0.7s var(--ease), visibility 0s 0.45s; }
.quotesx-track.is-live .quotesx-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s, transform 0.7s var(--ease); }
.tone-mint { --tone: #3f97d0; --tone-ink: #ffffff; }
.tone-peach { --tone: #7cc4ee; --tone-ink: #0d2a42; }
.tone-sky { --tone: #9fd3f2; --tone-ink: #082f49; }
.t-service { display: block; margin-top: 3px; font-style: normal; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-ink); }
.quotesx-who .t-service { color: var(--brand-2); }
@media (max-width: 900px) { .quotesx-sticky { grid-template-columns: minmax(0, 1fr); min-height: 0; } }
@media (max-width: 760px) { .quotesx-scene blockquote { font-size: 1.35rem; } .quotesx-stars { display: none; } }

/* ---------- Preguntas frecuentes: numeradas y con chat ---------- */
.split-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split-layout { grid-template-columns: minmax(0, 1fr); } }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .sticky-col { position: static; } }
.faq { display: grid; border-top: 1px solid var(--line); }
/* Línea recta abajo; sólo la pregunta abierta se vuelve tarjeta redondeada */
.faq details { border-bottom: 1px solid var(--line); padding-inline: 14px; border-radius: 0; transition: background-color 0.35s, box-shadow 0.35s; }
.faq details[open] { background: var(--surface); border-bottom-color: transparent; border-radius: 22px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 0; font-weight: 700; color: var(--ink); font-size: 1.04rem; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 0.76rem; font-weight: 800; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease); }
.faq summary:hover .faq-n { background: var(--brand); color: #fff; transform: rotate(-8deg); }
.faq details[open] .faq-n { background: var(--peach); color: var(--peach-ink); }
.faq-q { flex: 1; min-width: 0; }
.faq summary .plus { position: relative; width: 30px; height: 30px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand-ink); transition: transform 0.4s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 44px 22px 52px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.faq details[open] .answer { animation: rise 0.5s var(--ease); }
.faqx-chat { display: grid; gap: 10px; max-width: 380px; margin: 4px 0 28px; }
.faqx-chat > * { --s: clamp(0, var(--v, 1) * 3 - var(--i) * 0.55, 1); opacity: var(--s); transform: translateY(calc((1 - var(--s)) * 18px)) scale(calc(0.92 + var(--s) * 0.08)); transform-origin: 0 100%; }
.faqx-bubble { max-width: 88%; padding: 12px 16px; border-radius: 22px; font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.faqx-bubble--q { justify-self: end; border-bottom-right-radius: 6px; background: var(--petrol); color: #fff; transform-origin: 100% 100%; }
:root[data-theme="dark"] .faqx-bubble--q { background: var(--brand); color: #ffffff; }
.faqx-bubble--a { justify-self: start; border-bottom-left-radius: 6px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-s); }
.faqx-typing { justify-self: start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 22px 22px 22px 6px; background: var(--brand-soft); }
.faqx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ink); animation: typing 1.2s infinite ease-in-out; }
.faqx-typing i:nth-child(2) { animation-delay: 0.15s; }
.faqx-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 900px) { .faqx-chat { display: none; } }
@media (max-width: 560px) { .faq .answer { padding: 0 6px 20px; } .faq details { padding-inline: 8px; } }

/* ---------- Agenda ---------- */
.agendax { overflow: hidden; isolation: isolate; background: linear-gradient(170deg, #e8eef9 0%, #d1def3 50%, #b1c6e9 100%); }
:root[data-theme="dark"] .agendax { background: linear-gradient(170deg, #0d1a2a 0%, #0f1f33 55%, #13253c 100%); }
.agendax-blob { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.agendax-blob--a { width: 520px; height: 520px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(166, 216, 245, 0.25), transparent 64%); }
.agendax-blob--b { width: 460px; height: 460px; left: -160px; bottom: -280px; background: radial-gradient(circle, rgba(143, 211, 244, 0.45), transparent 64%); }
.agendax-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; margin: -12px 0 32px; padding: 0; }
.agendax-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-size: 0.88rem; font-weight: 650; color: var(--ink); }
:root[data-theme="dark"] .agendax-chips li { background: rgba(255, 255, 255, 0.06); }
.agendax-chips .icon { width: 16px; height: 16px; color: var(--brand-ink); }

.booking { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 50px 90px -50px rgba(20, 40, 64, 0.5); overflow: hidden; }
.booking-steps { display: flex; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); counter-reset: bstep; }
.booking-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 10px; font-weight: 700; font-size: 0.9rem; color: var(--muted); position: relative; }
.booking-steps li::before { counter-increment: bstep; content: counter(bstep); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); font-size: 0.8rem; transition: all 0.4s var(--ease); }
.booking-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform 0.6s var(--ease); }
.booking-steps li.is-current { color: var(--ink); }
.booking-steps li.is-current::after, .booking-steps li.is-done::after { transform: scaleX(1); }
.booking-steps li.is-current::before, .booking-steps li.is-done::before { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 560px) { .booking-steps li span { display: none; } }
.booking-step { padding: clamp(20px, 3.5vw, 36px); }
.booking-step.is-entering { animation: rise 0.6s var(--ease); }
.booking-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); }
@media (max-width: 860px) { .booking-cols { grid-template-columns: minmax(0, 1fr); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.cal-nav button:hover:not(:disabled) { border-color: var(--brand); }
.cal-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-nav .icon { width: 16px; height: 16px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.cal-day { position: relative; aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 0.95rem; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease), color 0.2s; }
.cal-day:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); }
.cal-day:disabled { background: transparent; color: var(--muted); opacity: 0.4; cursor: default; }
.cal-day.is-empty { visibility: hidden; }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 12%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand); }
.cal-day.is-half { background: linear-gradient(180deg, var(--surface-2) 50%, color-mix(in srgb, var(--surface-2) 40%, transparent) 50%); }
.cal-day.is-full { color: var(--muted); text-decoration: line-through; }
.cal-day.is-selected { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 18px -8px rgba(42, 122, 179, 0.8); }
.cal-day.is-selected::after { background: #fff; }
.cal-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.cal-legend i.sel { background: var(--brand); border-color: var(--brand); }
.slots-title { font-size: 1.05rem; margin-bottom: 16px; }
.slot-group + .slot-group { margin-top: 16px; }
.slot-group h4 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: all 0.2s; }
.slot:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.slot[aria-pressed="true"], .slot[aria-pressed="true"]:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }
:root[data-theme="dark"] .slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.slot:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.slots-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--sky-soft); font-size: 0.86rem; color: var(--ink-2); }
.booking-alert { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--urgent-soft); color: var(--urgent); font-weight: 600; font-size: 0.92rem; }
.booking-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .booking-bar .btn, .form-foot .btn { flex: 1 1 100%; } }
.booking-bar small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.booking-bar strong { font-size: 1.02rem; }
.booking-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand-ink); font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 18px; }
.booking-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.chosen { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 999px; background: var(--brand-soft); margin-bottom: 24px; }
.chosen .icon { width: 22px; height: 22px; color: var(--brand-ink); flex: none; }
.chosen strong { color: var(--brand-ink); }
.modality { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 560px) { .modality { grid-template-columns: minmax(0, 1fr); } .chosen { border-radius: 20px; } }
.modality label { display: flex; gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.modality label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.modality input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.modality strong { display: block; }
.modality span { font-size: 0.86rem; color: var(--muted); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field .field-label { margin-bottom: 0; }
.field .hint, .hint { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .req { color: var(--urgent); }
.field .seg { min-height: 50px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.receipt-wrap { text-align: center; max-width: 520px; margin-inline: auto; }
.receipt-title { font-size: 1.6rem; }
.receipt-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--brand-soft); animation: pop-in 0.7s var(--ease) both; }
.receipt-icon .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.receipt-icon path { stroke-dasharray: 1; animation: draw 0.6s var(--ease) 0.35s both; }
@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.receipt { position: relative; margin: 24px 0; text-align: left; background: var(--surface-2); border-radius: 20px 20px 0 0; padding: 22px 24px 30px; --zig: 10px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%; }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 2px dashed var(--line); }
.receipt-head span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.receipt-head strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1rem; color: var(--brand-ink); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.94rem; }
.receipt-row span { color: var(--muted); flex: none; }
.receipt-row strong { text-align: right; }
.receipt-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cierre: marino con anillos ---------- */
.cta-section { padding-top: 0; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(56px, 9vw, 112px) clamp(24px, 5vw, 72px); background: radial-gradient(80% 90% at 50% 120%, #2a7ab3 0%, rgba(42, 122, 179, 0) 62%), #142840; color: #b7c3d8; }
:root[data-theme="dark"] .cta-band { background: radial-gradient(80% 90% at 50% 120%, #0b3d93 0%, rgba(25, 80, 125, 0) 62%), #060e18; border: 1px solid var(--line); }
.cta-rings { position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1180px, 150%); translate: -50% -50%; overflow: visible; pointer-events: none; }
.cta-rings circle { --s: clamp(0, var(--v, 1) * 1.7 - var(--r) * 0.2, 1); fill: none; stroke: rgba(42, 122, 179, 0.45); stroke-width: 1.2; transform-origin: 400px 400px; transform: scale(calc(0.25 + 0.75 * var(--s))); opacity: calc(var(--s) * (1 - var(--r) * 0.2)); }
.cta-tooth { position: absolute; z-index: -1; right: clamp(-30px, 4vw, 60px); top: clamp(-30px, 2vw, 30px); color: rgba(255, 255, 255, 0.06); transform: rotate(14deg); pointer-events: none; }
.cta-tooth .icon { width: clamp(140px, 18vw, 230px); height: auto; stroke-width: 1; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; font-weight: 700; color: #e5eaf3; }
.cta-inner h2 { max-width: 820px; margin: 0 auto 12px; color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; transform: scale(calc(0.92 + var(--v, 1) * 0.08)); }
.cta-inner h2 em { color: var(--brand-2); }
.cta-inner p { max-width: 580px; margin: 0 auto; font-size: 1.08rem; color: #b7c3d8; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { overflow: hidden; padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero-glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 122, 179, 0.28), transparent 64%); pointer-events: none; }
.page-hero .container { position: relative; }
/* Ilustración de las páginas interiores: ícono en vidrio con anillos y etiquetas que flotan */
.page-hero-art { position: absolute; z-index: 0; right: max(40px, calc((100vw - 1200px) / 2 + 40px)); top: 50%; width: 300px; height: 300px; translate: 0 -46%; pointer-events: none; }
.pha-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.pha-ring--2 { inset: 36px; border-style: dashed; animation: pha-spin 40s linear infinite; }
.pha-ring--3 { inset: 72px; background: radial-gradient(circle at 35% 30%, #fff, var(--brand-soft) 70%); border: 0; box-shadow: var(--shadow-l); }
:root[data-theme="dark"] .pha-ring--3 { background: radial-gradient(circle at 35% 30%, #12274B, #0d1a2a 70%); }
.pha-core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-ink); }
.pha-core .icon { width: 70px; height: 70px; stroke-width: 1.5; }
.pha-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.8rem; font-weight: 750; color: var(--ink); white-space: nowrap; animation: float 7s ease-in-out infinite; }
.pha-chip .icon { width: 14px; height: 14px; color: var(--brand-ink); stroke-width: 2.4; }
.pha-chip--a { left: -34px; top: 46px; }
.pha-chip--b { right: -46px; bottom: 40px; animation-delay: -3.5s; }
.pha-spark { position: absolute; right: 42px; top: 30px; width: 22px; height: 22px; background: var(--peach); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: lg-spark 3.6s var(--ease) infinite; }
@keyframes pha-spin { to { rotate: 360deg; } }
.js .page-hero-art { animation: reveal-zoom 1.1s var(--ease) 0.3s backwards; }
.page-hero .container > * { position: relative; z-index: 1; }
@media (max-width: 1100px) { .page-hero-art { display: none; } }
@media (min-width: 1101px) { .page-hero:has(.page-hero-art) h1, .page-hero:has(.page-hero-art) .lead { max-width: min(760px, calc(100% - 380px)); } }
@media (prefers-reduced-motion: reduce) { .pha-ring--2, .pha-chip, .pha-spark { animation: none; } }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 900px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 700px; margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 0.86rem; font-weight: 650; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.tool-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); background: var(--surface-2); border: 1px solid var(--line); }
.tool-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 4px; }
.tool-band p { margin: 0; color: var(--muted); }
.tool-band-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--peach); color: var(--peach-ink); }
@media (max-width: 760px) { .tool-band { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } }

/* Página de un tratamiento */
.svc-hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 26px; }
.svc-hero-foot .hero-actions { justify-content: flex-start; }
.svc-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sv-cams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; }
.sv-cam { position: relative; display: flex; align-items: flex-end; height: 44px; padding: 6px 8px; border-radius: 8px; background: linear-gradient(135deg, #1d3552, #0c1a2b); color: #cfe3f3; font-size: 0.68rem; font-weight: 700; }
.sv-cam i { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #f87171; }
.svc-urgent { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 0.86rem; color: var(--muted); }
.svc-urgent .icon { flex: none; width: 15px; height: 15px; color: var(--brand-ink); }
.svc-urgent strong { color: var(--ink); }
.svc-facts div { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.svc-facts dt { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.svc-facts dt .icon { width: 14px; height: 14px; color: var(--brand-ink); }
.svc-facts dd { margin: 0; font-weight: 750; color: var(--ink); font-size: 0.94rem; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.svc-visual { aspect-ratio: 16 / 9; margin-bottom: 30px; }
.service-photo { margin: 0 0 30px; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--surface-2); }
.service-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-text { margin-bottom: 26px; }
.svc-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-text p { font-size: 1.08rem; }
.service-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 24px 0; }
.service-cols h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 620px) { .service-cols { grid-template-columns: minmax(0, 1fr); } }
.svc-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.svc-card { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc-card-k { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.svc-card-price { font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.03em; }
.svc-msi { list-style: none; margin: 4px 0 0; padding: 12px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 4px; }
.svc-msi li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; font-size: 0.92rem; }
.svc-msi li + li { border-top: 1px dashed var(--line); }
.svc-msi span { color: var(--muted); font-weight: 650; }
.svc-msi b { color: var(--ink); }
.svc-card-note { margin: 0; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 960px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } .svc-aside { position: static; } }

/* Caso individual */
.case-hero-ba { margin-top: 30px; }
.case-hero-ba .ba { border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.metrics-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.metric { padding: 22px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 2rem; letter-spacing: -0.04em; font-weight: 800; color: var(--brand-ink); line-height: 1.1; }
.metric span { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.story { position: relative; display: grid; gap: 36px; padding-left: 38px; }
.story::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--line)); }
.story-step { position: relative; }
.story-step::before { content: ""; position: absolute; left: -33px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.story-step h2 { font-size: 1.4rem; }

/* Nosotros */
.director { position: relative; overflow: hidden; isolation: isolate; max-width: 1000px; margin-inline: auto; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); border-radius: var(--radius-xl); background: radial-gradient(70% 80% at 0% 100%, rgba(42, 122, 179, 0.3), transparent 70%), var(--petrol); text-align: center; }
.director-mark { position: absolute; z-index: -1; right: -40px; bottom: -60px; color: rgba(255, 255, 255, 0.05); transform: rotate(-12deg); }
.director-mark .icon { stroke-width: 1; }
.director blockquote { margin: 0 0 22px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; color: #fff; }
.director cite { font-style: normal; font-weight: 700; color: var(--brand-2); letter-spacing: 0.04em; }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: 22px; }
.contact-card .icon-box { width: 46px; height: 46px; margin-bottom: 14px; }
.contact-card .icon-box .icon { width: 21px; height: 21px; }
.contact-card h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card p, .contact-card > a { margin: 0; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card .contact-hours { font-weight: 500; color: var(--muted); margin-top: 6px; }
.contact-card .link-arrow { margin-top: 10px; color: var(--brand-ink); }

/* Texto libre (Aviso de privacidad) */
.prose-card { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-item { margin-bottom: 40px; }

/* 404 */
.not-found { text-align: center; }
.not-found .big { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--ink); }
.not-found .big em { display: grid; place-items: center; color: var(--brand); }
.not-found .big em .icon { width: 0.9em; height: 0.9em; stroke-width: 1.6; animation: wobble 3s var(--ease) infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
.not-found h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 10px; }
.not-found p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--petrol-deep); color: var(--on-dark-2); padding-top: 72px; font-size: 0.95rem; }
:root[data-theme="dark"] .site-footer { background: #01060e; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.3fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-sub { color: var(--brand-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.footer-contact li a, .footer-contact li span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand-2); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); }
.social a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.social .icon { width: 18px; height: 18px; }
/* Las líneas divisorias miden lo mismo que el contenido (no se salen hacia los lados) */
.footer-legal, .footer-bottom { background: linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)) center top / calc(100% - 48px) 1px no-repeat; }
@media (max-width: 640px) { .footer-legal, .footer-bottom { background-size: calc(100% - 32px) 1px; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 16px; font-size: 0.8rem; color: #7d8ca5; }
.footer-bottom { padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-mark { overflow: hidden; padding-top: 8px; text-align: center; pointer-events: none; user-select: none; }
.footer-mark span {
  display: block;
  font-family: var(--font-serif);
  font-size: 30vw;
  line-height: 0.74;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2a7ab3 0%, #9fd3f2 45%, #7cc4ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask: radial-gradient(circle, #000 2.4px, transparent 3px) 0 0 / 7px 7px;
  mask: radial-gradient(circle, #000 2.4px, transparent 3px) 0 0 / 7px 7px;
  transform: translateY(calc((1 - var(--v, 1)) * 40%));
}
@media (max-width: 640px) { .footer-mark span { -webkit-mask-size: 5px 5px; mask-size: 5px 5px; -webkit-mask-image: radial-gradient(circle, #000 1.7px, transparent 2.2px); mask-image: radial-gradient(circle, #000 1.7px, transparent 2.2px); } }
body:has(.wa-float) .footer-mark { padding-bottom: 8px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #174fb0; color: #fff; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(31, 95, 143, 0.7); transform: translateY(120px); transition: transform 0.6s var(--ease), box-shadow 0.3s; }
.wa-float.is-visible { transform: none; }
.wa-float:hover { text-decoration: none; color: #fff; box-shadow: 0 18px 36px -10px rgba(31, 95, 143, 0.85); }
.wa-float .icon { width: 24px; height: 24px; stroke-width: 2; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; } }

/* ==========================================================================
   Animaciones al aparecer (sólo con JavaScript; sin JS todo se ve normal)
   ========================================================================== */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }
.js [data-reveal="left"]:not(.is-in) { transform: translateX(-26px); }
.js [data-reveal="right"]:not(.is-in) { transform: translateX(26px); }
.js [data-reveal="zoom"]:not(.is-in) { transform: scale(0.96); }
/* "backwards": al terminar, el elemento vuelve a sus estilos normales (así funcionan los efectos al pasar el mouse) */
.js [data-reveal].is-in { animation: reveal 0.9s var(--ease) backwards; animation-delay: var(--d, 0ms); }
.js [data-reveal="left"].is-in { animation-name: reveal-left; }
.js [data-reveal="right"].is-in { animation-name: reveal-right; }
.js [data-reveal="zoom"].is-in { animation-name: reveal-zoom; }
.js [data-reveal="fade"].is-in { animation-name: reveal-fade; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* "Reducir movimiento" (en Windows se activa al apagar las animaciones del
   sistema): se detienen los movimientos continuos; las entradas cortas, el
   video y los carruseles se conservan. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-bubble, .cta-cloud, .sv-xray-img em, .mapa-pulse, .ot.is-selected .ot-ring, .mapa-level-dot::after,
  .float-card, .dot, .topbar-pulse, .faqx-typing i, .not-found .big em .icon, .quiz-start .quiz-ring-fill, .badge-icon--live::after { animation-iteration-count: 1 !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker ul[aria-hidden], .ticker ul + ul { display: none; }
  .hero-bubble, .cta-cloud, .sv-xray-img em { animation: none; }
  .drop, .drop li { transition: none; }
}

/* ==========================================================================
   SG Tecnosistemas: piezas propias (mini interfaces de cómputo, portada,
   "Por qué existimos", asistentes por pasos, puertos y tiras de herramientas)
   ========================================================================== */

/* Logotipo: el led parpadea suave como el de encendido */
.brand-mark .lg-led { animation: led 3.2s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Portada: fila de componentes revisados (verde = bien, lima = a reparar) */
.dash-checks { background: linear-gradient(180deg, #e6eefc, #d6e3fa); padding: 12px; gap: 6px; }
:root[data-theme="dark"] .dash-checks { background: linear-gradient(180deg, #0f2140, #0b1830); }
.dash-checks .dt { height: 22px !important; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 40, 64, 0.08); position: relative; }
.dash-checks .dt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #cbd5e1; }
:root[data-theme="dark"] .dash-checks .dt { background: #17294a; box-shadow: none; }
.dash-checks .dt--ok { background: var(--brand); box-shadow: 0 0 0 3px rgba(42, 122, 179, 0.22); }
.dash-checks .dt--ok::after { background: #fff; }
.dash-checks .dt--fix { background: var(--peach); box-shadow: 0 0 0 3px rgba(124, 196, 238, 0.3); }
.dash-checks .dt--fix::after { background: var(--peach-ink); }

/* Teléfono derecho: arranque antes y después */
.ps-boot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 8px; width: 100%; margin-top: 18px; font-size: 0.66rem; font-weight: 700; color: var(--on-dark-2); text-align: left; }
.ps-boot i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ps-boot b { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: 0 50%; }
.ps-boot i.is-slow b { background: linear-gradient(90deg, #f87171, #fb923c); }
.ps-boot em { font-style: normal; font-family: var(--font-mono); color: #fff; }
.js .hero-stage:not(.is-in) .ps-boot b { transform: scaleX(0); }
.js .hero-stage.is-in .ps-boot b { animation: bar-grow 1.1s var(--ease) both; animation-delay: 1.2s; }
.js .hero-stage.is-in .ps-boot i.is-slow b { animation-duration: 2.2s; animation-delay: 0.9s; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: none; } }
.ps-folio { font-family: var(--font-mono); }

/* Mini interfaces de los servicios */
.sv-warn { font-weight: 750; color: var(--urgent); white-space: nowrap; }
.sv-big small { font-size: 0.55em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.sv-temp { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.sv-temp span { display: grid; place-items: center; min-width: 52px; height: 38px; padding: 0 8px; border-radius: 12px; font-weight: 800; font-size: 1rem; color: #fff; }
.sv-temp-a { background: #ef4444; }
.sv-temp-b { background: var(--brand); }
.sv-temp i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ef4444, var(--brand)); }
.sv-bars { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; margin: 6px 0 4px; font-weight: 650; }
.sv-bars b { position: relative; display: block; height: 22px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.sv-bars b::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1.4s var(--ease) 0.3s; }
.sv-bars b.is-slow::before { background: linear-gradient(90deg, #f87171, #fb923c); transition-duration: 2.4s; }
.sv-bars em { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--ink); }
.js .ax-card:not(.is-in) .sv-bars b::before { width: 0 !important; }
.sv-browser { padding: 0; overflow: hidden; gap: 0; }
.sv-browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sv-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.sv-browser-bar i:nth-child(2) { background: #febc2e; }
.sv-browser-bar i:nth-child(3) { background: #28c840; }
.sv-browser-bar span { flex: 1; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-browser-hero { display: grid; gap: 5px; margin: 10px 12px 8px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.sv-browser-hero b { display: block; height: 7px; width: 70%; border-radius: 4px; background: rgba(255, 255, 255, 0.9); }
.sv-browser-hero b + b { width: 46%; opacity: 0.6; }
.sv-browser-hero em { justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-style: normal; font-size: 0.6rem; font-weight: 800; }
.sv-browser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 12px 10px; }
.sv-browser-grid i { height: 26px; border-radius: 8px; background: var(--surface-2); }
.sv-browser .sv-stamp { margin: 0 12px 12px; }
.sv-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sv-signal i { width: 4px; height: calc(var(--b) * 3.5px); border-radius: 2px; background: var(--surface-3); }
.sv-signal i.is-on { background: var(--brand); }
.js .ax-card:not(.is-in) .sv-signal i.is-on { background: var(--surface-3); }
.sv-signal i { transition: background-color 0.4s; transition-delay: calc(var(--b) * 120ms + 300ms); }
.sv-xray-img { color: #bfdbfe; }

/* Antes y después dibujados */
.ba { background: #111e2e; }
.case-svg { display: block; width: 100%; height: 100%; }

/* Asistentes por pasos (Arma tu PC, cables, página web) */
.wz { min-height: 380px; }
.wz-stage .quiz-q h3 { margin-bottom: 8px; }
.wz-hint { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.wz-stage .quiz-q h3 + .quiz-opts, .wz-stage .quiz-q h3 + .wz-checks { margin-top: 18px; }
.wz-opt-text { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.wz-opt-text small { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.wz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wz-opt--art { border-radius: 22px; min-height: 76px; }
.wz-art { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); }
.wz-art .port-icon { width: 46px; height: 46px; }
.quiz-opt[aria-pressed="true"] .wz-art { background: var(--surface); }
.wz-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.wz-check { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.wz-check:hover { border-color: var(--brand); }
.wz-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.wz-check span { display: grid; gap: 2px; line-height: 1.3; }
.wz-check strong { font-size: 0.94rem; }
.wz-check small { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-ink); }
.wz-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wz-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.wz-head h3 { margin: 6px 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.wz-head p { margin: 0; color: var(--muted); }
.wz-price { min-width: 220px; }
.wz-price strong { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.wz-specs { display: grid; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wz-specs div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 12px 16px; background: var(--surface); }
.wz-specs div + div { border-top: 1px solid var(--line); }
.wz-specs dt { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wz-specs dd { margin: 0; font-weight: 650; color: var(--ink); }
.wz-note { margin: 0 0 8px; padding: 10px 14px; border-radius: 14px; background: var(--brand-soft); font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .wz-grid, .wz-checks { grid-template-columns: minmax(0, 1fr); }
  .wz-head { grid-template-columns: minmax(0, 1fr); }
  .wz-price { min-width: 0; }
  .wz-specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Puertos */
.port-icon { width: 56px; height: 56px; }
.port-frame { fill: var(--surface); stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2; }
.port-hole { fill: var(--petrol); }
:root[data-theme="dark"] .port-hole { fill: #020611; }
.port-pin { fill: var(--brand-2); }
.ports-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.port-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.port-card .port-icon { flex: none; padding: 6px; border-radius: 16px; background: var(--surface-2); width: 68px; height: 68px; }
.port-card strong { display: block; font-size: 1rem; color: var(--ink); }
.port-card p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) { .ports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ports-grid { grid-template-columns: minmax(0, 1fr); } }

/* Tira "Más herramientas gratis" */
.tools-strip { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--surface-2); }
:root[data-theme="dark"] .tools-strip { border: 1px solid var(--line); }
.tools-strip-k { display: block; margin-bottom: 14px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tools-strip ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.tools-strip a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.25s, transform 0.35s var(--ease); }
.tools-strip a:hover { border-color: var(--brand); transform: translateY(-2px); }
.tools-strip a > span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.tools-strip strong { font-size: 0.92rem; line-height: 1.25; }
.tools-strip small { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 1000px) { .tools-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools-strip ul { grid-template-columns: minmax(0, 1fr); } }

/* Lista de herramientas en la portada y tarjeta de configuración */
.ax-points--links a { color: var(--muted); text-decoration: none; }
.ax-points--links a:hover strong { color: var(--brand-ink); }
.tq-card--spec .tq-spec-icon { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px; background: var(--brand-soft); color: var(--brand-ink); }

/* Agenda: tres modalidades */
.modality--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .modality--3 { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .brand-mark .lg-led { animation: none; }
}

/* ==========================================================================
   v1.2: video "Así trabajamos", servicios con foto y proyectos
   ========================================================================== */

/* Video con capítulos */
.mfv .ax-head { margin-bottom: clamp(24px, 3vw, 36px); }
.mfv-frame { background: #0a1420 center / cover no-repeat; }
.mfv-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 20, 32, 0.75) 0%, transparent 38%); }
.mfv-caption { position: absolute; left: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 30px); z-index: 2; pointer-events: none; }
.mfv-cap { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: clamp(1.15rem, 2.6vw, 2rem); font-weight: 750; letter-spacing: -0.02em; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.mfv-cap b { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--peach); color: var(--peach-ink); font-size: 0.55em; }
.mfv-cap.is-on { opacity: 1; transform: none; }
.mfv-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.mfv-chapter { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; height: 100%; padding: 16px 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--muted); text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.3s, background-color 0.3s; }
.mfv-chapter:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.mfv-chapter strong { display: block; margin-bottom: 4px; font-size: 1.02rem; color: var(--ink); }
.mfv-chapter > span:last-of-type span { font-size: 0.88rem; line-height: 1.45; }
.mfv-chapter-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: 0.78rem; font-weight: 800; color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.mfv-chapter.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.mfv-chapter.is-on .mfv-chapter-n { background: var(--brand); color: #fff; }
.mfv-chapter-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.mfv-chapter-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.mfv-stats { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 760px) {
  .mfv-chapters { grid-template-columns: minmax(0, 1fr); }
  .mfv-cap { font-size: 1.1rem; }
}

/* Servicios con foto: etiqueta de entrega sobre la foto */
.ax-visual--photo { border: 0; }
.ax-visual--photo img { transition: transform 1s var(--ease); }
.ax-card:hover .ax-visual--photo img { transform: scale(1.04); }
.ax-photo-chip { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 20, 32, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ax-photo-chip .icon { color: var(--brand-2); }
.service-photo--mix { position: relative; }
.service-photo-ui { position: absolute; right: clamp(10px, 2vw, 22px); bottom: clamp(10px, 2vw, 22px); width: min(46%, 262px); }
.service-photo-ui .sv-card, .service-photo-ui .sv-chat { width: 100%; }
@media (max-width: 560px) { .service-photo-ui { display: none; } }
.ax-split-visual--photo { padding: 0; min-height: 0; background: #0a1420; }
.ax-split-visual--photo img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.pj-float { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(10, 20, 32, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; }
.pj-float:hover { text-decoration: none; border-color: var(--brand-2); }
.pj-float .icon { color: var(--peach); }
.pj-float small { display: block; font-size: 0.72rem; color: var(--on-dark-2); }
.pj-float strong { color: #fff; font-size: 0.94rem; }

/* Proyectos: captura en marco de navegador */
.pj-frame { margin: 0; border-radius: 18px; overflow: hidden; background: #111e2e; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.pj-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #111d33; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.pj-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; flex: none; }
.pj-bar i:nth-child(2) { background: #febc2e; }
.pj-bar i:nth-child(3) { background: #28c840; }
.pj-bar span { flex: 1; min-width: 0; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-family: var(--font-mono); font-size: 0.72rem; color: #a6b6cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1420; }
.pj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.pj-frame:hover .pj-shot img { transform: scale(1.03); }
.pj-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-2); }
.case-card .pj-frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.case-hero-ba .pj-frame { max-width: 1100px; }
.pj-features { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.pj-features li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; font-weight: 650; color: #fff; }
.pj-features .icon { color: var(--peach); stroke-width: 3; }
.bax .pj-live { margin-left: auto; color: var(--peach); }
.bax .pj-live + a { margin-left: 0; }
.bax--projects .bax-tab small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions--left { justify-content: flex-start; margin: 4px 0 8px; }
@media (max-width: 520px) { .bax .pj-live { margin-left: 0; } }

/* Logotipo fiel al de SG: "SG" en marino y "Tecnosistemas" en azul, en un renglón */
.brand { gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 0; box-shadow: none; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: inline-flex; flex-direction: row; align-items: baseline; gap: 0.32em; font-size: 1.3rem; line-height: 1; }
.brand-name { font-family: var(--font-sans); font-weight: 800; font-size: 1em; letter-spacing: -0.01em; text-transform: none; color: #3f5b7d; }
.brand-sub { margin: 0; font-size: 1em; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: #3f97d0; }
:root[data-theme="dark"] .brand-name, .site-footer .brand-name { color: #eef3f9; }
:root[data-theme="dark"] .brand-sub, .site-footer .brand-sub { color: #5aaee0; }
@media (max-width: 1180px) { .brand-text { font-size: 1.16rem; } }
@media (max-width: 420px) { .brand-text { font-size: 1.05rem; } .brand-mark { width: 36px; height: 36px; } }