/* ==========================================================================
   RetomaLab · estilos de la web
   Marca: branding/guia-de-marca.html · Decisiones: CLAUDE-WEB.md (sección 11)
   ========================================================================== */

/* ---------- Tipografías (servidas desde la propia web) ---------- */
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Colores de marca */
  --azul: #0F2A44;
  --azul-noche: #0A1E31;
  --azul-tinte: #173A5E;
  --naranja: #F2762E;
  --naranja-texto: #AD4C0E;
  --papel: #F6F4EF;
  --blanco: #FFFFFF;
  --gris: #5A6675;
  --linea: #DCE1E7;
  --verde-ok: #1F7A4D;
  --rojo-error: #B42318;

  /* Derivados */
  --azul-08: rgb(15 42 68 / 0.08);
  --azul-12: rgb(15 42 68 / 0.12);
  --blanco-70: rgb(255 255 255 / 0.72);
  --naranja-12: rgb(242 118 46 / 0.12);

  /* Espaciado (escala cerrada) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Bordes redondeados */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  /* Sombras: capas suaves en lugar de bordes duros */
  --sombra-1: 0 0 0 1px var(--azul-08), 0 1px 2px rgb(15 42 68 / 0.06);
  --sombra-2: 0 0 0 1px var(--azul-08), 0 2px 4px rgb(15 42 68 / 0.04), 0 12px 32px -12px rgb(15 42 68 / 0.18);
  --sombra-3: 0 0 0 1px var(--azul-08), 0 4px 8px rgb(15 42 68 / 0.04), 0 24px 56px -20px rgb(15 42 68 / 0.28);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Tipos */
  --font-titulo: "Outfit", Arial, sans-serif;
  --font-texto: "Inter", Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-400));
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--azul);
  font-family: var(--font-texto);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-titulo); font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; font-size: 16px; }
button, a, [role="button"], label { touch-action: manipulation; }
button, .btn, .chip, .seg__btn, .menu-toggle { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--naranja); color: var(--azul-noche); }
.icon { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: fixed; top: var(--s-75); left: var(--s-75); z-index: 100;
  padding: var(--s-75) var(--s-200); border-radius: var(--r-md);
  background: var(--azul); color: var(--blanco); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Estilos de texto (escala cerrada) ---------- */
.heading-1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; }
.heading-3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600; }
.title-3 { font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 600; }
.body-lead { font-size: 18px; line-height: 28px; color: var(--gris); }
.body-3 { font-size: 16px; line-height: 24px; }
.body-6 { font-size: 14px; line-height: 20px; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.caption-5 { font-size: 12px; line-height: 16px; color: var(--gris); }
.muted { color: var(--gris); }
@media (min-width: 768px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1100px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
  .heading-2 { font-size: 48px; line-height: 48px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
}

.kicker { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--naranja-texto); }
.kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--naranja); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--azul); --btn-fg: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-height: 48px; padding: var(--s-100) var(--s-300);
  border: 0; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { --btn-bg: var(--naranja); --btn-fg: var(--azul-noche); box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 6px 16px -8px rgb(242 118 46 / 0.7); }
.btn--dark { --btn-bg: var(--azul); --btn-fg: var(--blanco); }
.btn--whatsapp { --btn-bg: var(--blanco); --btn-fg: var(--azul); box-shadow: var(--sombra-1); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul-12); }
.btn--sm { min-height: 40px; padding: var(--s-75) var(--s-200); font-size: 14px; line-height: 20px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: var(--s-200) var(--s-400); font-size: 18px; line-height: 28px; }
.btn .btn__arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: #F4844A; }
  .btn--dark:hover { --btn-bg: var(--azul-tinte); }
  .btn--whatsapp:hover, .btn--ghost:hover { --btn-bg: var(--blanco); box-shadow: var(--sombra-2); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-50);
  color: var(--naranja-texto); font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
  .link-arrow:hover .icon { transform: translateX(3px); }
}

/* ---------- Cabecera flotante ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: calc(var(--s-75) + env(safe-area-inset-top, 0px)) var(--s-75) 0;
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-200);
  max-width: var(--container); height: var(--header-h); margin-inline: auto;
  padding: 0 var(--s-75) 0 var(--s-200);
  border-radius: var(--r-lg);
  background: rgb(246 244 239 / 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 300ms ease, background-color 300ms ease;
}
.site-header.is-scrolled .site-header__bar { background: rgb(246 244 239 / 0.88); box-shadow: var(--sombra-2); }
.site-header__logo { display: block; padding: var(--s-75) 0; margin-right: auto; }
.site-header__logo img { width: 132px; height: auto; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--s-50); }
.site-nav a {
  position: relative; display: block; padding: var(--s-75) var(--s-100);
  border-radius: var(--r-sm); color: var(--gris);
  font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
.site-nav a[aria-current="page"] { color: var(--azul); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--naranja);
}
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--azul); background: var(--azul-08); } }
.site-header__cta { display: none; }

.menu-toggle {
  position: relative; width: 48px; height: 48px; flex: none;
  border: 0; border-radius: var(--r-md); background: transparent; cursor: pointer;
}
.menu-toggle__line {
  position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 2px; background: var(--azul);
  transition: transform 300ms var(--ease-out);
}
.menu-toggle__line:first-child { transform: translateY(-4px); }
.menu-toggle__line:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child { transform: rotate(-45deg); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .site-header__bar { padding-left: var(--s-300); }
}

/* Menú del móvil: panel a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--s-600) + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--s-400) + env(safe-area-inset-bottom, 0px));
  background: rgb(246 244 239 / 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity 250ms var(--ease-out);
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__links a {
  display: block; padding: var(--s-100) 0;
  font-family: var(--font-titulo); font-size: 30px; line-height: 36px; font-weight: 600;
  text-decoration: none; color: var(--azul);
}
.mobile-menu__links a[aria-current="page"] { color: var(--naranja-texto); }
.mobile-menu__links li, .mobile-menu__cta {
  opacity: 0; transform: translateY(24px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.mobile-menu.is-open .mobile-menu__links li, .mobile-menu.is-open .mobile-menu__cta { opacity: 1; transform: none; }
.mobile-menu__cta { display: grid; gap: var(--s-100); --i: 4; }
body.menu-open { overflow: hidden; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--s-800); }
.section--tight { padding-block: var(--s-600); }
.section--white { background: var(--blanco); }
.section--azul { background: var(--azul); color: var(--blanco); }
@media (min-width: 1024px) { .section { padding-block: var(--s-900); } }
.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head > * + * { margin-top: var(--s-200); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Aparición al hacer scroll (solo si hay JS) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; } /* sin desplazamiento: dentro hay una hoja fija que no puede tener un transform por encima */

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + var(--s-700)); padding-bottom: var(--s-700); overflow: clip; }
.hero__grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-900)); padding-bottom: var(--s-900); min-height: min(100svh, 920px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-700); }
}
.hero__text { max-width: 680px; }
.hero__title { color: var(--azul); }
.hero__title .accent { color: var(--naranja-texto); }
.hero__lead { margin-top: var(--s-300); max-width: 560px; }
.hero__lead strong { color: var(--azul); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-500); }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin-top: var(--s-300); color: var(--gris); font-size: 14px; line-height: 20px; }
.hero__proof li { display: inline-flex; align-items: center; gap: var(--s-75); }
.hero__proof .icon { width: 16px; height: 16px; color: var(--verde-ok); }

/* Entrada del hero, coreografiada (título manda, el resto acompaña) */
.js .hero [data-enter] { opacity: 0; transform: translateY(var(--rise, 16px)); animation: enter 800ms var(--ease-out) both; animation-delay: var(--delay, 0ms); }
.js .hero [data-enter="visual"] { --rise: 0px; transform: scale(0.97); animation-duration: 1000ms; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Fondo: rejilla muy suave, como un plano de obra */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--azul-08) 1px, transparent 1px), linear-gradient(90deg, var(--azul-08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* ---------- Panel de ejemplo (hero) ---------- */
.panel {
  position: relative; max-width: 520px; margin-inline: auto; width: 100%;
  border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-3);
  padding: var(--s-75);
}
.panel__inner { border-radius: var(--r-lg); background: var(--papel); overflow: hidden; }
.panel__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-200) var(--s-200) var(--s-100); }
.panel__title { font-family: var(--font-titulo); font-weight: 600; font-size: 16px; line-height: 24px; }
.panel__date { color: var(--gris); font-size: 12px; line-height: 16px; }
.panel__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-75); padding: 0 var(--s-200) var(--s-200); }
.stat { padding: var(--s-100); border-radius: var(--r-sm); background: var(--blanco); box-shadow: var(--sombra-1); }
.stat__label { display: block; color: var(--gris); font-size: 12px; line-height: 16px; }
.stat__value { display: block; margin-top: var(--s-25); font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 480px) { .stat__value { font-size: 20px; } }
@media (max-width: 479px) {
  .panel__stats { grid-template-columns: 1fr 1fr 1.35fr; }
  .stat { padding: var(--s-75) var(--s-100); }
  .row { grid-template-columns: 32px 1fr; row-gap: var(--s-50); }
  .row__icon { width: 32px; height: 32px; grid-row: span 2; align-self: start; }
  .row > .status, .row > .tag { grid-column: 2; justify-self: start; }
  .status { justify-items: start; }
}
.stat--accent .stat__value { color: var(--naranja-texto); }
.panel__list { display: grid; gap: var(--s-50); padding: var(--s-75); background: var(--blanco); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: var(--s-100);
  padding: var(--s-100); border-radius: var(--r-md);
  transition: background-color 400ms ease;
}
.row.is-active { background: var(--naranja-12); }
.row__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--papel); color: var(--azul); }
.row__icon .icon { width: 18px; height: 18px; }
.row__main { min-width: 0; }
.row__name { display: block; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: block; color: var(--gris); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  position: relative; display: inline-grid; justify-items: end;
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.status > span {
  grid-area: 1 / 1; padding: var(--s-50) var(--s-75); border-radius: var(--r-full);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), filter 300ms ease;
}
.status__a { background: #FDECEC; color: var(--rojo-error); }
.status__b { background: #E4F3EA; color: var(--verde-ok); opacity: 0; transform: translateY(6px); filter: blur(2px); }
.row.is-done .status__a { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
.row.is-done .status__b { opacity: 1; transform: none; filter: none; }
.tag { padding: var(--s-50) var(--s-75); border-radius: var(--r-full); background: var(--papel); color: var(--azul); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.tag--naranja { background: var(--naranja-12); color: var(--naranja-texto); }

.toast {
  position: absolute; left: 50%; top: -18px; z-index: 2;
  display: flex; align-items: center; gap: var(--s-75);
  width: max-content; max-width: calc(100% - 32px);
  padding: var(--s-75) var(--s-200) var(--s-75) var(--s-75);
  border-radius: var(--r-full); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-2);
  font-size: 14px; line-height: 20px; font-weight: 500;
  transform: translate(-50%, 0); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.toast.is-hidden { opacity: 0; transform: translate(-50%, -8px) scale(0.97); }
.toast__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--naranja); color: var(--azul-noche); flex: none; }
.toast__dot .icon { width: 16px; height: 16px; }
.toast__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel__note { margin-top: var(--s-200); text-align: center; }

/* ---------- Dolores ---------- */
.pains { display: grid; gap: var(--s-100); align-items: start; }
@media (min-width: 720px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain {
  border-radius: var(--r-lg); background: var(--blanco); box-shadow: var(--sombra-1);
  transition: box-shadow 250ms ease, transform 250ms var(--ease-out);
}
.pain.is-open { box-shadow: var(--sombra-2); }
.pain__btn {
  display: flex; align-items: flex-start; gap: var(--s-200); width: 100%;
  padding: var(--s-300); border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-lg);
}
.pain__quote { flex: 1; font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 500; }
.pain__quote::before { content: "“"; color: var(--naranja); margin-right: 1px; }
.pain__quote::after { content: "”"; color: var(--naranja); margin-left: 1px; }
.pain__toggle {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-top: -2px;
  border-radius: 50%; background: var(--papel); color: var(--azul);
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.pain__toggle .icon { width: 16px; height: 16px; }
.pain.is-open .pain__toggle { transform: rotate(45deg); background: var(--naranja); color: var(--azul-noche); }
.pain__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease-out); }
.pain.is-open .pain__answer { grid-template-rows: 1fr; }
.pain__answer > div { overflow: hidden; }
.pain__answer p { padding: 0 var(--s-300) var(--s-300); color: var(--gris); opacity: 0; transform: translateY(-4px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pain.is-open .pain__answer p { opacity: 1; transform: none; transition-delay: 80ms; }
.pain__answer strong { color: var(--azul); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .pain:hover { box-shadow: var(--sombra-2); transform: translateY(-2px); } }
.pains__more {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-100);
  padding: var(--s-300); border-radius: var(--r-lg); border: 1.5px dashed var(--azul-12);
}

/* ---------- Antes / después ---------- */
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: var(--s-50); border-radius: var(--r-full); background: var(--blanco); box-shadow: var(--sombra-1);
}
.seg__indicator {
  position: absolute; top: var(--s-50); bottom: var(--s-50); left: var(--s-50); width: calc(50% - var(--s-50));
  border-radius: var(--r-full); background: var(--azul);
  transition: transform 400ms var(--ease-out), background-color 400ms ease;
}
.seg[data-active="1"] .seg__indicator { transform: translateX(100%); background: var(--naranja); }
.seg__btn {
  position: relative; z-index: 1; min-height: 44px; padding: var(--s-75) var(--s-300);
  border: 0; border-radius: var(--r-full); background: none; cursor: pointer;
  font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--gris);
  transition: color 300ms ease;
}
.seg__btn[aria-selected="true"] { color: var(--blanco); }
.seg[data-active="1"] .seg__btn[aria-selected="true"] { color: var(--azul-noche); }
.compare { display: grid; margin-top: var(--s-500); }
.compare__panel { grid-area: 1 / 1; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), filter 400ms ease; }
.compare__panel[aria-hidden="true"] { opacity: 0; transform: translateY(8px); filter: blur(4px); pointer-events: none; visibility: hidden; transition: opacity 250ms ease, transform 250ms ease, filter 250ms ease, visibility 0s 250ms; }
.day { display: grid; gap: var(--s-100); }
@media (min-width: 900px) { .day { grid-template-columns: repeat(4, 1fr); } }
.moment { padding: var(--s-300); border-radius: var(--r-lg); background: var(--blanco); box-shadow: var(--sombra-1); }
.moment__time { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--gris); font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.moment__time .icon { width: 14px; height: 14px; }
.moment__what { margin-top: var(--s-100); font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600; }
.moment__then { margin-top: var(--s-75); color: var(--gris); font-size: 14px; line-height: 20px; }
.moment__then b { font-weight: 600; }
.compare__panel--bad .moment__then b { color: var(--rojo-error); }
.compare__panel--good .moment { box-shadow: 0 0 0 1.5px rgb(242 118 46 / 0.35), 0 12px 32px -16px rgb(242 118 46 / 0.35); }
.compare__panel--good .moment__then b { color: var(--verde-ok); }
.compare__foot { margin-top: var(--s-300); display: flex; flex-wrap: wrap; gap: var(--s-200); align-items: center; justify-content: space-between; }

/* ---------- Frase de marca que se ilumina al bajar ---------- */
.tagline { padding-block: var(--s-900); }
@media (min-width: 1024px) { .tagline { padding-block: 160px; } }
.tagline__text { max-width: 900px; margin-inline: auto; text-align: center; font-family: var(--font-titulo); font-weight: 600; letter-spacing: -0.02em; font-size: 36px; line-height: 40px; text-wrap: balance; }
@media (min-width: 768px) { .tagline__text { font-size: 48px; line-height: 48px; } }
@media (min-width: 1100px) { .tagline__text { font-size: 60px; line-height: 60px; } }
.tagline__line { display: block; }
.js .tagline .w { opacity: 0.28; transition: opacity 500ms var(--ease-out), color 500ms var(--ease-out); }
.js .tagline .w.on { opacity: 1; }
.tagline .w--accent.on { color: var(--naranja); }
.tagline__sub { margin-top: var(--s-500); text-align: center; color: var(--blanco-70); }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: var(--s-300); }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; gap: var(--s-500); align-items: start; } }
.calc__inputs { display: grid; gap: var(--s-200); }
.field { display: grid; gap: var(--s-75); }
.field__label { font-weight: 600; font-size: 16px; line-height: 24px; }
.field__hint { color: var(--gris); font-size: 14px; line-height: 20px; }
.stepper {
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  border-radius: var(--r-md); background: var(--blanco); box-shadow: var(--sombra-1);
  transition: box-shadow 200ms ease;
}
.stepper:focus-within { box-shadow: 0 0 0 2px var(--naranja), 0 1px 2px rgb(15 42 68 / 0.06); }
.stepper__btn { display: grid; place-items: center; height: 56px; border: 0; background: none; cursor: pointer; color: var(--azul); border-radius: var(--r-md); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.stepper__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .stepper__btn:hover { background: var(--papel); } }
.stepper__input {
  width: 100%; min-width: 0; height: 56px; border: 0; background: none; text-align: center;
  font-family: var(--font-titulo); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--azul);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper__input:focus { outline: none; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input::placeholder { color: #A8B0BA; }
.calc__assume { display: flex; gap: var(--s-75); padding: var(--s-200); border-radius: var(--r-md); background: var(--naranja-12); color: var(--azul); font-size: 14px; line-height: 20px; }
.calc__assume .icon { width: 18px; height: 18px; color: var(--naranja-texto); margin-top: 1px; }

.result { position: relative; border-radius: var(--r-xl); background: var(--azul); color: var(--blanco); padding: var(--s-400) var(--s-300); overflow: hidden; min-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .result { padding: var(--s-400); } }
.result__cta .btn { white-space: normal; text-align: center; }
.result > * { grid-area: 1 / 1; }
.result__empty, .result__full { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.result__empty { display: grid; align-content: center; justify-items: start; gap: var(--s-200); }
.result__empty .icon { width: 32px; height: 32px; color: var(--naranja); }
.result.has-value .result__empty { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 250ms ease, transform 250ms ease, visibility 0s 250ms; }
.result__full { opacity: 0; transform: translateY(8px); visibility: hidden; }
.result.has-value .result__full { opacity: 1; transform: none; visibility: visible; }
.result__label { color: var(--blanco-70); }
.result__jobs { margin-top: var(--s-75); font-family: var(--font-titulo); font-weight: 600; font-size: 48px; line-height: 48px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result__jobs small { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--blanco-70); letter-spacing: 0; }
.result__money { margin-top: var(--s-200); display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-200); font-family: var(--font-titulo); font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result__money .year { color: var(--naranja); }
.result__notes { margin-top: var(--s-300); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / 0.14); display: grid; gap: var(--s-75); color: var(--blanco-70); font-size: 14px; line-height: 20px; }
.result__notes strong { color: var(--blanco); font-weight: 600; }
.result__cta { margin-top: var(--s-300); display: grid; gap: var(--s-200); justify-items: start; }
.result__cta .link-arrow { color: var(--blanco); }
.result__flash { animation: flash 500ms var(--ease-out); }
@keyframes flash { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- Pasos: visita → instalación → mantenimiento ---------- */
.steps { position: relative; display: grid; gap: var(--s-200); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-300); } }
.step { position: relative; padding: var(--s-400) var(--s-300) var(--s-300); border-radius: var(--r-lg); background: var(--papel); }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--azul); color: var(--blanco); font-family: var(--font-titulo); font-weight: 600;
}
.step:first-child .step__num { background: var(--naranja); color: var(--azul-noche); }
.step__theirs { margin-top: var(--s-300); color: var(--gris); font-size: 14px; line-height: 20px; }
.step__theirs s { text-decoration-color: var(--naranja); text-decoration-thickness: 2px; }
.step__title { margin-top: var(--s-50); }
.step__text { margin-top: var(--s-100); color: var(--gris); }
.steps__note { margin-top: var(--s-400); display: flex; flex-wrap: wrap; gap: var(--s-200); align-items: center; justify-content: space-between; }
.steps__line { display: none; }
@media (min-width: 900px) {
  .steps__line {
    display: block; position: absolute; top: 35px; left: 44px; right: calc(33.333% - 60px); height: 2px; z-index: 0;
    background: var(--linea); overflow: hidden; pointer-events: none;
  }
  .steps__line::after { content: ""; position: absolute; inset: 0; background: var(--naranja); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--ease-in-out) 300ms; }
  .steps.is-visible .steps__line::after { transform: scaleX(1); }
  .step { z-index: 1; background: transparent; padding-top: var(--s-200); }
}

/* ---------- Tarjetas de pilares ---------- */
.pillars { display: grid; gap: var(--s-100); }
@media (min-width: 900px) { .pillars { grid-template-columns: 1.3fr 1fr 1fr; } }
.pillar {
  display: flex; flex-direction: column; gap: var(--s-100); min-height: 220px;
  padding: var(--s-300); border-radius: var(--r-lg); background: var(--blanco); box-shadow: var(--sombra-1);
  text-decoration: none; transition: box-shadow 250ms ease, transform 250ms var(--ease-out);
}
.pillar:active { transform: scale(0.99); }
.pillar__text { color: var(--gris); }
.pillar__go { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-50); color: var(--naranja-texto); font-weight: 600; }
.pillar__go .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.pillar--dark { background: var(--azul); color: var(--blanco); box-shadow: none; }
.pillar--dark .pillar__text { color: var(--blanco-70); }
.pillar--dark .pillar__go { color: var(--naranja); }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover { box-shadow: var(--sombra-2); transform: translateY(-3px); }
  .pillar:hover .pillar__go .icon { transform: translateX(4px); }
}

/* ---------- Pilotos ---------- */
.pilot {
  display: grid; gap: var(--s-400); padding: var(--s-400);
  border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-2);
}
@media (min-width: 900px) { .pilot { grid-template-columns: 1.4fr 1fr; align-items: center; padding: var(--s-600); } }
.pilot__seats { display: flex; gap: var(--s-75); margin-top: var(--s-300); }
.seat { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); border: 1.5px dashed var(--naranja); color: var(--naranja-texto); font-family: var(--font-titulo); font-weight: 600; }
.pilot__list { display: grid; gap: var(--s-100); }
.pilot__list li { display: flex; gap: var(--s-100); }
.pilot__list .icon { width: 20px; height: 20px; color: var(--verde-ok); margin-top: 2px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: var(--s-75); max-width: 820px; margin-inline: auto; }
.faq__item { border-radius: var(--r-lg); background: var(--blanco); box-shadow: var(--sombra-1); }
.faq__q {
  display: flex; align-items: center; gap: var(--s-200); width: 100%; padding: var(--s-300);
  border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-lg);
  font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600;
}
.faq__q > span:first-child { flex: 1; }
.faq__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--papel); transition: transform 300ms var(--ease-out); }
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 var(--s-300) var(--s-300); color: var(--gris); max-width: 640px; }

/* ---------- Bloque final de diagnóstico ---------- */
.cta-final { background: var(--azul); color: var(--blanco); padding-block: var(--s-800); overflow: hidden; position: relative; }
@media (min-width: 1024px) { .cta-final { padding-block: var(--s-900); } }
.cta-final::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid var(--azul-tinte); border-left-color: transparent; transform: rotate(-20deg); pointer-events: none;
}
.cta-final__inner { position: relative; display: grid; gap: var(--s-500); }
@media (min-width: 960px) { .cta-final__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-700); } }
.cta-final .body-lead { margin-top: var(--s-200); color: var(--blanco-70); }

.choice { display: grid; gap: var(--s-100); }
.choice__card {
  display: flex; align-items: center; gap: var(--s-200); padding: var(--s-300);
  border-radius: var(--r-lg); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: var(--blanco); text-decoration: none;
  transition: background-color 250ms ease, transform 160ms var(--ease-out), box-shadow 250ms ease;
}
.choice__card:active { transform: scale(0.98); }
.choice__card--primary { background: var(--naranja); color: var(--azul-noche); box-shadow: none; }
.choice__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: rgb(255 255 255 / 0.1); flex: none; }
.choice__card--primary .choice__icon { background: rgb(10 30 49 / 0.12); }
.choice__icon .icon { width: 24px; height: 24px; }
.choice__body { flex: 1; display: grid; gap: var(--s-25); }
.choice__title { font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600; }
.choice__text { font-size: 14px; line-height: 20px; opacity: 0.8; }
.choice__arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .choice__card:hover { background: rgb(255 255 255 / 0.1); }
  .choice__card--primary:hover { background: #F4844A; }
  .choice__card:hover .choice__arrow { transform: translateX(4px); }
}
/* Versión clara (en la página de solicitud) */
.choice--light .choice__card { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra-1); }
.choice--light .choice__icon { background: var(--papel); }

/* ---------- Pie ---------- */
.site-footer { background: var(--azul-noche); color: var(--blanco-70); padding-top: var(--s-700); padding-bottom: calc(var(--s-400) + env(safe-area-inset-bottom, 0px)); font-size: 14px; line-height: 20px; }
.site-footer__grid { display: grid; gap: var(--s-500); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__tagline { margin-top: var(--s-200); max-width: 320px; }
.site-footer__heading { font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--blanco); margin-bottom: var(--s-200); }
.site-footer__list { display: grid; gap: var(--s-100); }
.site-footer a { text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--blanco); } }
.site-footer__muted { opacity: 0.7; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / 0.1); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-300); }

/* ---------- Barra fija del móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-75);
  padding: var(--s-75) var(--s-75) calc(var(--s-75) + env(safe-area-inset-bottom, 0px));
  background: rgb(246 244 239 / 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--azul-08), 0 -8px 24px -12px rgb(15 42 68 / 0.18);
  transform: translateY(110%); transition: transform 400ms var(--ease-drawer);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; padding-inline: var(--s-200); }
@media (min-width: 960px) { .mobile-bar { display: none; } }
@media (max-width: 959px) { .site-footer { padding-bottom: calc(var(--s-900) + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Página de solicitud ---------- */
.page-top { padding-top: calc(var(--header-h) + var(--s-700)); }
@media (min-width: 1024px) { .page-top { padding-top: calc(var(--header-h) + var(--s-800)); } }
.request { display: grid; gap: var(--s-500); padding-bottom: var(--s-800); grid-template-areas: "intro" "form" "after"; }
.request__aside { grid-area: intro; display: grid; gap: var(--s-400); }
.request__after { grid-area: after; display: grid; gap: var(--s-400); }
.request .form-card { grid-area: form; }
@media (min-width: 1024px) {
  .request { grid-template-columns: 1fr 1.1fr; grid-template-areas: "intro form" "after form"; column-gap: var(--s-700); row-gap: var(--s-400); align-items: start; }
  .request .form-card { position: sticky; top: calc(var(--header-h) + var(--s-400)); }
}
.promise { display: flex; gap: var(--s-100); align-items: flex-start; padding: var(--s-200); border-radius: var(--r-md); background: var(--blanco); box-shadow: var(--sombra-1); }
.promise .icon { color: var(--naranja-texto); margin-top: 2px; }
.next { display: grid; gap: var(--s-200); counter-reset: next; }
.next li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-100); }
.next li::before { counter-increment: next; content: counter(next); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--azul); color: var(--blanco); font-family: var(--font-titulo); font-weight: 600; font-size: 14px; }
.next b { display: block; font-weight: 600; }
.next span { color: var(--gris); font-size: 14px; line-height: 20px; }

.form-card { border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-3); padding: var(--s-300); }
@media (min-width: 768px) { .form-card { padding: var(--s-500); } }
.form-card__head { margin-bottom: var(--s-400); }
.form-card__head p { margin-top: var(--s-75); }
.form { display: grid; gap: var(--s-300); }
.form__row { display: grid; gap: var(--s-300); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.input, .select {
  width: 100%; min-height: 52px; padding: var(--s-100) var(--s-200);
  border: 0; border-radius: var(--r-md); background: var(--papel); color: var(--azul);
  box-shadow: inset 0 0 0 1px var(--azul-08);
  font-size: 16px; line-height: 24px;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.input::placeholder { color: #8A94A1; }
.input:focus, .select:focus { outline: none; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--naranja); }
.select { appearance: none; -webkit-appearance: none; padding-right: var(--s-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%230F2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field.has-error .input, .field.has-error .select { box-shadow: inset 0 0 0 2px var(--rojo-error); background: #FFF7F6; }
.field__error { display: none; color: var(--rojo-error); font-size: 14px; line-height: 20px; }
.field.has-error .field__error { display: block; }
.optional { color: var(--gris); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: var(--s-50); min-height: 40px; padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full); background: var(--papel); box-shadow: inset 0 0 0 1px var(--azul-08);
  font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { background: var(--azul); color: var(--blanco); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--naranja); outline-offset: 2px; }
.chip--radio input:checked + span { background: var(--naranja); color: var(--azul-noche); }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-100); align-items: start; font-size: 14px; line-height: 20px; color: var(--gris); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--azul); }
.consent a { color: var(--naranja-texto); font-weight: 600; }
.form__submit { display: grid; gap: var(--s-100); }
.form__submit .btn { position: relative; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__safe { display: flex; align-items: center; justify-content: center; gap: var(--s-50); color: var(--gris); font-size: 12px; line-height: 16px; }
.form__safe .icon { width: 14px; height: 14px; }
.form__alert { display: none; padding: var(--s-200); border-radius: var(--r-md); background: #FFF7F6; color: var(--rojo-error); font-size: 14px; line-height: 20px; box-shadow: inset 0 0 0 1px rgb(180 35 24 / 0.2); }
.form__alert.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Gracias, páginas simples y 404 ---------- */
.simple { padding-bottom: var(--s-900); }
.simple__card { max-width: 720px; margin-inline: auto; text-align: center; }
.simple__card > * + * { margin-top: var(--s-300); }
.check-badge { display: grid; place-items: center; width: 72px; height: 72px; margin-inline: auto; border-radius: 50%; background: var(--naranja); color: var(--azul-noche); }
.check-badge .icon { width: 36px; height: 36px; }
.js .check-badge .icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 500ms var(--ease-out) 300ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.simple__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100); }
.simple .next { text-align: left; max-width: 480px; margin-inline: auto; }
.pending-note { display: inline-block; padding: var(--s-75) var(--s-200); border-radius: var(--r-md); background: var(--naranja-12); color: var(--naranja-texto); font-size: 14px; line-height: 20px; font-weight: 600; }
.legal { max-width: 760px; margin-inline: auto; }
.legal > * + * { margin-top: var(--s-200); }
.legal h2 { margin-top: var(--s-500); font-size: 24px; line-height: 32px; }
.legal p, .legal li { color: var(--gris); }

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero [data-enter] { transform: none !important; }
  .js .tagline .w { opacity: 1; }
  .tagline .w--accent { color: var(--naranja); }
  .btn.is-loading::after { animation: spin 1.2s linear infinite !important; }
}

/* ==========================================================================
   Retoques premium (8/11/2026)
   ========================================================================== */

/* ---------- Transición entre páginas ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: cabecera; }
::view-transition-old(root) { animation: 180ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Titular del hero: cada línea sale de su máscara ---------- */
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span {
  transform: translateY(105%);
  animation: line-up 900ms var(--ease-out) both;
  animation-delay: calc(80ms + var(--d) * 90ms);
}
@keyframes line-up { to { transform: none; } }

/* ---------- Panel: profundidad e inclinación con el ratón ---------- */
.hero__visual { position: relative; perspective: 1400px; }
.panel { will-change: transform; }
.hero__visual::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 4% -2% 10%;
  border-radius: 40px; background: var(--naranja); opacity: 0.16; filter: blur(60px);
}

/* Mensaje de WhatsApp que sale del panel */
.bubble {
  position: absolute; z-index: 3; left: -12px; bottom: 36px;
  display: grid; gap: var(--s-50); width: min(300px, 78%);
  padding: var(--s-100) var(--s-200) var(--s-200);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm);
  background: #E7F8EE; color: #0B3B24; box-shadow: var(--sombra-3);
  font-size: 14px; line-height: 20px;
  transform-origin: 0% 100%;
  opacity: 0; transform: translateY(12px) scale(0.94);
  transition: opacity 350ms var(--ease-out), transform 450ms var(--ease-out);
  pointer-events: none;
}
.bubble.is-on { opacity: 1; transform: none; }
.bubble__head { display: inline-flex; align-items: center; gap: var(--s-50); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--verde-ok); }
.bubble__head .icon { width: 14px; height: 14px; }
@media (min-width: 1024px) { .bubble { left: -40px; bottom: -40px; } }
@media (max-width: 1023px) { .bubble { left: 8px; bottom: -28px; } .hero__visual { padding-bottom: var(--s-200); } }

/* ---------- Cinta de sectores ---------- */
.sectors { display: grid; gap: var(--s-200); padding-block: var(--s-300) var(--s-600); justify-items: center; overflow: clip; }
.sectors__label { color: var(--gris); }
.marquee {
  display: flex; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; flex: none; gap: var(--s-100); padding-right: var(--s-100); animation: marquee 48s linear infinite; }
.marquee__track li {
  padding: var(--s-75) var(--s-200); border-radius: var(--r-full);
  background: var(--blanco); box-shadow: var(--sombra-1);
  font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap;
}
.marquee__track li:nth-child(3n+1)::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: var(--s-75); border-radius: 50%; background: var(--naranja); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- Brillo que sigue al ratón en las tarjetas ---------- */
@media (hover: hover) and (pointer: fine) {
  [data-spot] { position: relative; isolation: isolate; }
  [data-spot]::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(242 118 46 / 0.10), transparent 60%);
    opacity: 0; transition: opacity 300ms ease;
  }
  [data-spot]:hover::after { opacity: 1; }
  .pillar--dark[data-spot]::after, .choice__card[data-spot]::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.10), transparent 60%); }
}

/* ---------- Contador de dolores ---------- */
.tally {
  position: sticky; z-index: 5; bottom: calc(var(--s-200) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: var(--s-100); width: max-content; max-width: 100%;
  margin: var(--s-400) auto 0; padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border-radius: var(--r-full); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3);
  opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
}
.tally.is-on { opacity: 1; transform: none; }
.tally__count { font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.tally__count b { display: inline-block; color: var(--naranja); font-weight: 700; font-size: 18px; }
.tally__count b.pop { animation: pop 350ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.35); } }
.tally__text { color: var(--blanco-70); font-size: 14px; line-height: 20px; white-space: nowrap; }
@media (max-width: 959px) { .tally { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 420px) { .tally__text { display: none; } }

/* ---------- Antes / después: marcador ---------- */
.compare__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200); }
.score { display: inline-flex; align-items: center; gap: var(--s-200); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border-radius: var(--r-full); background: var(--blanco); box-shadow: var(--sombra-1); }
.score__label { color: var(--gris); font-size: 14px; line-height: 20px; }
.score__num {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: var(--s-100); border-radius: var(--r-full);
  background: #FDECEC; color: var(--rojo-error); font-family: var(--font-titulo); font-size: 24px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color 400ms ease, color 400ms ease;
}
.score.is-good .score__num { background: #E4F3EA; color: var(--verde-ok); }
.compare__panel, .compare__panel[aria-hidden="true"] { transform: none; filter: none; }
.js .compare__panel .moment { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), box-shadow 250ms ease; transition-delay: calc(var(--i, 0) * 45ms); }
.js .compare__panel[aria-hidden="true"] .moment { opacity: 0; transform: translateY(10px); transition-delay: 0ms; }

/* ---------- Calculadora: deslizadores ---------- */
.range {
  --p: 0%;
  width: 100%; height: 28px; margin: var(--s-50) 0 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--naranja) var(--p), var(--linea) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--linea); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--naranja); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--blanco); box-shadow: 0 0 0 2px var(--naranja), 0 4px 10px rgb(15 42 68 / 0.2);
  transition: transform 160ms var(--ease-out);
}
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 0 2px var(--naranja), 0 4px 10px rgb(15 42 68 / 0.2); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--naranja), 0 0 0 6px rgb(242 118 46 / 0.3); }

/* ---------- Movimiento reducido para los retoques ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line > span { transform: none; }
  .marquee, .marquee__track { flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .panel { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   Página de Servicios
   ========================================================================== */

/* ---------- Cabecera + selector ---------- */
.svc-hero { position: relative; overflow: clip; padding-top: calc(var(--header-h) + var(--s-700)); padding-bottom: var(--s-700); }
@media (min-width: 1024px) { .svc-hero { padding-top: calc(var(--header-h) + var(--s-900)); padding-bottom: var(--s-800); } }
.svc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--azul-08) 1px, transparent 1px), linear-gradient(90deg, var(--azul-08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.svc-hero__text { max-width: 820px; margin-inline: auto; text-align: center; }
.svc-hero__lead { max-width: 600px; margin: var(--s-300) auto 0; }
.svc-hero__lead strong { color: var(--azul); font-weight: 600; }
.svc-hero__actions { justify-content: center; }
.picker { margin-top: var(--s-700); text-align: center; }
.picker__label { color: var(--gris); }
.picker__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); margin-top: var(--s-200); max-width: 980px; margin-inline: auto; }
.pick {
  display: inline-flex; align-items: center; gap: var(--s-50); min-height: 44px; padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full); background: var(--blanco); box-shadow: var(--sombra-1);
  font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--azul); text-decoration: none; text-align: left;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
@media (min-width: 768px) { .pick { font-size: 16px; line-height: 24px; } }
.pick:active { transform: scale(0.97); }
.pick .icon { width: 16px; height: 16px; }
.pick--other { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(242 118 46 / 0.55); color: var(--naranja-texto); }
@media (hover: hover) and (pointer: fine) {
  .pick:hover { box-shadow: var(--sombra-2); transform: translateY(-2px); }
  .pick--other:hover { background: var(--naranja-12); box-shadow: inset 0 0 0 1.5px var(--naranja); }
}

/* ---------- Las fugas: índice fijo + tarjetas ---------- */
.leaks { display: grid; gap: var(--s-500); }
@media (min-width: 1100px) { .leaks { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-600); align-items: start; } }
.leaks__index { display: none; }
@media (min-width: 1100px) {
  .leaks__index { display: block; position: sticky; top: calc(var(--header-h) + var(--s-500)); padding-left: var(--s-50); }
}
.leaks__index ol { position: relative; display: grid; gap: var(--s-25); }
.leaks__rail { position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--linea); overflow: hidden; }
.leaks__rail-fill { position: absolute; inset: 0; background: var(--naranja); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform 500ms var(--ease-out); }
.leaks__index a {
  position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: var(--s-100);
  padding: var(--s-75) var(--s-75) var(--s-75) 0; border-radius: var(--r-sm);
  color: var(--gris); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none;
  transition: color 250ms ease;
}
.leaks__index b {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 50%;
  background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea);
  font-family: var(--font-titulo); font-size: 12px; font-weight: 600; color: var(--gris);
  transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 300ms var(--ease-out);
}
.leaks__index a.is-past b { background: var(--naranja); box-shadow: none; color: var(--azul-noche); }
.leaks__index a[aria-current="true"] { color: var(--azul); }
.leaks__index a[aria-current="true"] b { background: var(--azul); color: var(--blanco); box-shadow: 0 0 0 4px var(--naranja-12); transform: scale(1.08); }
@media (hover: hover) and (pointer: fine) { .leaks__index a:hover { color: var(--azul); } }

.leaks__list { min-width: 0; }
.leak {
  display: grid; gap: var(--s-400); padding: var(--s-300);
  border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-1);
  scroll-margin-top: calc(var(--header-h) + var(--s-400));
}
@media (min-width: 768px) { .leak { padding: var(--s-500); } }
@media (min-width: 900px) { .leak { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-600); align-items: center; } }

/* Vídeo 9:16 (el mismo que el reel) dentro de un marco de teléfono */
.leak__media {
  position: relative; justify-self: center; width: 240px; padding: 8px;
  border-radius: 40px; background: var(--azul-noche);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 30px 60px -24px rgb(15 42 68 / 0.45);
}
@media (min-width: 900px) { .leak__media { width: 280px; justify-self: end; } }
@media (min-width: 1280px) { .leak__media { width: 300px; } }
.leak__media::before {
  content: ""; position: absolute; z-index: 2; top: 16px; left: 50%; width: 72px; height: 20px; margin-left: -36px;
  border-radius: var(--r-full); background: var(--azul-noche);
}
.leak__media .video-slot { aspect-ratio: 9 / 16; border-radius: 32px; }
.leak__media .video-slot__tag { top: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.leak__media .video-slot__label { padding-inline: var(--s-300); text-align: center; }
.leak__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leak--star { box-shadow: 0 0 0 1.5px rgb(242 118 46 / 0.5), 0 24px 56px -24px rgb(242 118 46 / 0.35); }
.leak__num { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100); font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gris); }
.leak__badge { padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: var(--naranja); color: var(--azul-noche); font-size: 12px; line-height: 16px; }
.leak__title { margin-top: var(--s-75); }
.leak__quote { margin: var(--s-200) 0 0; font-family: var(--font-titulo); font-size: 20px; line-height: 28px; font-weight: 500; color: var(--azul); }
.leak__cost { margin-top: var(--s-100); color: var(--gris); }
.leak__cost strong { color: var(--azul); font-weight: 600; }
.leak__fix-label { margin-top: var(--s-400); color: var(--naranja-texto); }
.pieces { display: grid; gap: var(--s-75); margin-top: var(--s-100); }
.pieces li { display: grid; gap: var(--s-25); padding: var(--s-100) var(--s-200); border-radius: var(--r-md); background: var(--papel); }
.pieces b { font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 600; }
.pieces span { color: var(--gris); font-size: 14px; line-height: 20px; }
.leak__demo, .leak .link-arrow { margin-top: var(--s-300); }
.leak.is-target { animation: target 1600ms var(--ease-out); }
@keyframes target { 0%, 30% { box-shadow: 0 0 0 4px var(--naranja), var(--sombra-2); } 100% { box-shadow: var(--sombra-1); } }
.leak--star.is-target { animation-name: target-star; }
@keyframes target-star { 0%, 30% { box-shadow: 0 0 0 4px var(--naranja), var(--sombra-2); } }

.video-slot {
  position: relative; display: grid; place-items: center; align-content: center; gap: var(--s-200);
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background-color: var(--azul);
  background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--blanco);
}
.video-slot__play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--naranja); color: var(--azul-noche); box-shadow: 0 0 0 10px rgb(242 118 46 / 0.18); }
.video-slot__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-slot__label { font-size: 14px; line-height: 20px; color: var(--blanco-70); }
.video-slot__tag { position: absolute; top: var(--s-100); left: var(--s-100); padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgb(255 255 255 / 0.1); font-size: 12px; line-height: 16px; font-weight: 600; }

.leaks__more {
  display: flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-400) 0; color: var(--gris); font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 500;
}
.leaks__more .icon { width: 16px; height: 16px; color: var(--naranja-texto); animation: nudge 2.4s var(--ease-in-out) infinite; }
.leaks__more--last { color: var(--azul); font-size: 16px; line-height: 24px; font-weight: 600; padding-bottom: 0; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

/* ---------- Bloque cumbre: total + 7.ª fuga ---------- */
.summit { position: relative; overflow: clip; background: var(--azul); color: var(--blanco); padding-block: var(--s-900); scroll-margin-top: var(--header-h); }
@media (min-width: 1024px) { .summit { padding-block: 128px; } }
.summit::before {
  content: ""; position: absolute; left: -160px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%;
  border: 64px solid var(--azul-tinte); border-top-color: transparent; transform: rotate(30deg); pointer-events: none;
}
.summit__inner { position: relative; }
.summit__total { max-width: 900px; margin-inline: auto; text-align: center; }
.summit__total-has { font-family: var(--font-titulo); font-weight: 600; font-size: 30px; line-height: 36px; letter-spacing: -0.015em; text-wrap: balance; }
@media (min-width: 768px) { .summit__total-has { font-size: 48px; line-height: 48px; } }
.summit__money { color: var(--naranja); white-space: nowrap; font-variant-numeric: tabular-nums; }
.summit__total-none { font-size: 18px; line-height: 28px; color: var(--blanco-70); }
.summit__total-none a { color: var(--naranja); font-weight: 600; text-underline-offset: 4px; }
.summit__grid { display: grid; gap: var(--s-500); margin-top: var(--s-800); align-items: center; }
@media (min-width: 900px) { .summit__grid { grid-template-columns: 0.75fr 1.25fr; gap: var(--s-700); } }
.summit__seven { position: relative; justify-self: center; line-height: 1; user-select: none; }
.summit__seven-num { display: block; font-family: var(--font-titulo); font-weight: 700; font-size: 200px; color: rgb(255 255 255 / 0.04); -webkit-text-stroke: 3px rgb(255 255 255 / 0.4); }
@media (min-width: 900px) { .summit__seven-num { font-size: 300px; } }
.summit__seven-q {
  position: absolute; right: -44%; top: -2%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--naranja); color: var(--azul-noche); font-family: var(--font-titulo); font-size: 36px; font-weight: 700;
  box-shadow: 0 0 0 12px rgb(242 118 46 / 0.16);
}
.js .summit__seven.is-visible .summit__seven-q { animation: q-in 700ms var(--ease-out) 300ms both; }
@keyframes q-in { from { opacity: 0; transform: scale(0.6) rotate(-20deg); } }
.kicker--light { color: var(--naranja); }
.summit__examples { display: grid; gap: var(--s-100); margin-top: var(--s-300); }
.summit__examples li { position: relative; padding-left: var(--s-400); color: var(--blanco); font-size: 18px; line-height: 28px; }
.summit__examples li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--naranja); }
.summit__lead { margin-top: var(--s-300); color: var(--blanco-70); }
.summit__lead strong { color: var(--blanco); font-weight: 600; }
.summit__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-500); }
.summit__actions .btn { white-space: normal; text-align: center; }
@media (max-width: 479px) { .summit__actions .btn { width: 100%; } }
.btn--glass { --btn-bg: rgb(255 255 255 / 0.08); --btn-fg: var(--blanco); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
@media (hover: hover) and (pointer: fine) { .btn--glass:hover { --btn-bg: rgb(255 255 255 / 0.14); } }

.fix-note { margin-top: var(--s-500); padding: var(--s-200) var(--s-300); border-radius: var(--r-md); background: var(--naranja-12); text-align: center; }
.fix-note strong { font-weight: 600; }

/* ---------- Funciona con lo que ya usas ---------- */
.connect { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 960px) { .connect { grid-template-columns: 1fr 1fr; gap: var(--s-700); } }
.hub { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin-inline: auto; }
.hub__core {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 152px; height: 60px; margin: -30px 0 0 -76px;
  border-radius: var(--r-full); background: var(--blanco); box-shadow: var(--sombra-3); z-index: 2;
}
.hub__core img { width: 112px; height: auto; }
.hub__core::after { content: ""; position: absolute; inset: -10px; border-radius: var(--r-full); box-shadow: 0 0 0 2px rgb(242 118 46 / 0.35); animation: ring 3s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.hub__node {
  position: absolute; z-index: 2; padding: var(--s-75) var(--s-200); border-radius: var(--r-full); background: var(--blanco); box-shadow: var(--sombra-2);
  font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.hub__node--1 { top: 4%; left: 50%; transform: translateX(-50%); }
.hub__node--2 { right: 0; top: 50%; transform: translateY(-50%); }
.hub__node--3 { bottom: 4%; left: 50%; transform: translateX(-50%); }
.hub__node--4 { left: 0; top: 50%; transform: translateY(-50%); }
.hub__line { position: absolute; z-index: 1; --dash: repeating-linear-gradient(var(--dir), var(--naranja) 0 6px, transparent 6px 12px); background: var(--dash); }
.hub__line--1, .hub__line--3 { left: calc(50% - 1px); width: 2px; height: 30%; --dir: 180deg; }
.hub__line--1 { top: 16%; }
.hub__line--3 { bottom: 16%; --dir: 0deg; }
.hub__line--2, .hub__line--4 { top: calc(50% - 1px); height: 2px; width: 24%; --dir: 90deg; }
.hub__line--2 { right: 22%; --dir: 270deg; }
.hub__line--4 { left: 26%; }
.hub__line { background-size: 100% 100%; animation: flow 1.2s linear infinite; }
.hub__line--1 { background: repeating-linear-gradient(180deg, var(--naranja) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation-name: flow-down; }
.hub__line--3 { background: repeating-linear-gradient(180deg, var(--naranja) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation-name: flow-up; }
.hub__line--4 { background: repeating-linear-gradient(90deg, var(--naranja) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation-name: flow-right; }
.hub__line--2 { background: repeating-linear-gradient(90deg, var(--naranja) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation-name: flow-left; }
@media (max-width: 519px) {
  .hub__line--2, .hub__line--4 { display: none; }
  .hub__node--4 { top: 30%; }
  .hub__node--2 { top: 70%; }
}
@keyframes flow-down { to { background-position: 0 12px; } }
@keyframes flow-up { to { background-position: 0 -12px; } }
@keyframes flow-right { to { background-position: 12px 0; } }
@keyframes flow-left { to { background-position: -12px 0; } }

/* ---------- Barra de fugas fija ---------- */
.leakbar {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--s-200) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  width: min(720px, calc(100% - 16px)); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  border-radius: var(--r-full); background: rgb(15 42 68 / 0.94); color: var(--blanco);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sombra-3);
  transform: translate(-50%, 160%); transition: transform 450ms var(--ease-drawer);
}
.leakbar.is-visible { transform: translate(-50%, 0); }
.leakbar__text { display: flex; align-items: center; gap: var(--s-75); min-width: 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.leakbar__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leakbar__text b { color: var(--naranja); font-weight: 700; }
.leakbar__drop { width: 18px; height: 18px; color: var(--naranja); }
.leakbar__actions { display: flex; gap: var(--s-75); flex: none; }
.leakbar__wa { --btn-bg: rgb(255 255 255 / 0.1); --btn-fg: var(--blanco); width: 40px; padding: 0; }
@media (max-width: 639px) {
  .leakbar { bottom: calc(var(--s-75) + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; gap: var(--s-75); border-radius: var(--r-lg); padding: var(--s-100); }
  .leakbar__text { justify-content: center; }
  .leakbar__actions .btn--primary { flex: 1; }
}
.page-services .site-footer { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .leaks__more .icon, .hub__core::after, .hub__line { animation: none !important; }
  .leak.is-target { animation: none; box-shadow: 0 0 0 4px var(--naranja); }
}

/* ==========================================================================
   Página Cómo lo hacemos
   ========================================================================== */

/* La cabecera de Servicios y de Cómo lo hacemos entra igual que la del Inicio */
.js .svc-hero [data-enter] { opacity: 0; transform: translateY(var(--rise, 16px)); animation: enter 800ms var(--ease-out) both; animation-delay: var(--delay, 0ms); }
.how-hero .kicker { justify-content: center; }

/* ---------- Los 3 pasos en detalle ---------- */
.phases { display: grid; gap: var(--s-200); }
.phase { display: grid; gap: var(--s-300); padding: var(--s-300); border-radius: var(--r-xl); background: var(--papel); }
@media (min-width: 900px) {
  .phase { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-500); padding: var(--s-500); }
}
.phase__head { display: flex; gap: var(--s-200); align-items: flex-start; }
.phase__head .step__num { flex: none; }
.phase__head .step__theirs { margin-top: 0; }
.phase:first-child .step__num { background: var(--naranja); color: var(--azul-noche); }
.phase__cols { display: grid; gap: var(--s-300); }
@media (min-width: 1024px) { .phase__cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-400); } }
.phase__label { color: var(--gris); margin-bottom: var(--s-100); }
.ticks { display: grid; gap: var(--s-100); }
.ticks li { position: relative; padding-left: var(--s-400); }
.ticks li::before {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid var(--naranja); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.phase__you { align-self: start; padding: var(--s-300); border-radius: var(--r-lg); background: var(--blanco); box-shadow: var(--sombra-1); }
.phase__you .phase__label { color: var(--naranja-texto); }
.phase__time { display: flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-75); font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600; }
.phase__time .icon { color: var(--naranja); }
.phase__you p:last-child { color: var(--gris); }

.easy { display: grid; gap: var(--s-100); margin-top: var(--s-400); }
@media (min-width: 900px) { .easy { grid-template-columns: repeat(3, 1fr); } }
.easy__item { display: flex; gap: var(--s-200); align-items: flex-start; padding: var(--s-300); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--linea); }
.easy__item p { color: var(--gris); }
.easy__item strong { color: var(--azul); font-weight: 600; }
.easy__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--naranja-12); color: var(--naranja-texto); }

/* ---------- Demo ---------- */
.demo { max-width: 1120px; margin-inline: auto; }

.app { position: relative; border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-3); overflow: hidden; }
.app__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-200) var(--s-300); border-bottom: 1px solid var(--linea); }
.app__brand { display: flex; align-items: center; gap: var(--s-100); min-width: 0; }
.app__logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--azul); color: var(--blanco); font-family: var(--font-titulo); font-weight: 600; font-size: 14px; }
.app__name { font-family: var(--font-titulo); font-weight: 600; }
.app__sub { color: var(--gris); font-size: 12px; line-height: 16px; }
.app__sim { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.app__sim-btn--call { --btn-bg: var(--azul); --btn-fg: var(--blanco); }
.app__sim-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) { .app__sim-btn--call:not(:disabled):hover { --btn-bg: var(--azul-tinte); } }
@media (max-width: 599px) {
  .app__bar { padding: var(--s-200); }
  .app__sim { width: 100%; }
  .app__sim-btn { flex: 1 1 0; white-space: normal; text-align: left; line-height: 16px; padding-inline: var(--s-100); }
}

.app__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-75); padding: var(--s-200); background: var(--papel); }
@media (min-width: 720px) { .app__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: var(--s-200) var(--s-300); } }
.stat--ok .stat__value { color: var(--verde-ok); }

.app__body { position: relative; }
@media (min-width: 900px) { .app__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 580px; } }
.app__listwrap { padding: var(--s-200); }
@media (min-width: 720px) { .app__listwrap { padding: var(--s-200) var(--s-300) var(--s-300); } }
.app__filters { display: inline-flex; gap: var(--s-25); padding: var(--s-25); margin-bottom: var(--s-100); border-radius: var(--r-full); background: var(--papel); }
.app__filter {
  min-height: 36px; padding: var(--s-50) var(--s-200); border: 0; border-radius: var(--r-full); background: transparent;
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gris); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.app__filter.is-active { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra-1); }
.app__list { display: grid; gap: var(--s-25); }
.app__empty { padding: var(--s-400) var(--s-200); text-align: center; color: var(--gris); }

.lead {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: var(--s-100);
  width: 100%; padding: var(--s-100); border: 0; border-radius: var(--r-md); background: transparent; text-align: left; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.lead:active { transform: scale(0.99); }
.lead.is-selected { background: var(--naranja-12); }
@media (hover: hover) and (pointer: fine) { .lead:not(.is-selected):hover { background: var(--papel); } }
.lead__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--papel); color: var(--azul); }
.lead.is-selected .lead__icon { background: var(--blanco); }
.lead__icon .icon { width: 18px; height: 18px; }
.lead__main { min-width: 0; display: grid; }
.lead__name { font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__job { color: var(--gris); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__side { display: grid; justify-items: end; gap: var(--s-25); }
.lead__due { font-size: 12px; line-height: 16px; color: var(--gris); white-space: nowrap; }
.due--late { color: var(--rojo-error); font-weight: 600; }
.due--today { color: var(--naranja-texto); font-weight: 600; }
@media (max-width: 479px) {
  .lead { grid-template-columns: 32px minmax(0, 1fr); row-gap: var(--s-50); }
  .lead__icon { width: 32px; height: 32px; grid-row: span 2; align-self: start; }
  .lead__side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
}
/* Una fila que acaba de cambiar o de entrar se ilumina un momento */
.lead.is-changed { animation: lead-flash 1200ms var(--ease-out); }
.lead.is-new { animation: lead-in 500ms var(--ease-out) both, lead-flash 1600ms var(--ease-out); }
@keyframes lead-flash { 0%, 30% { background-color: rgb(242 118 46 / 0.22); } }
@keyframes lead-in { from { opacity: 0; transform: translateY(-8px); } }

.state {
  display: inline-block; padding: var(--s-25) var(--s-75); border-radius: var(--r-full);
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
  background: #E7EEF5; color: var(--azul);
}
.state--nueva { background: var(--naranja-12); color: var(--naranja-texto); }
.state--enviado { background: #FFF1D6; color: #7A4B00; }
.state--aceptado { background: #E4F3EA; color: var(--verde-ok); }
.state--perdido { background: #EEF0F2; color: var(--gris); }

/* Ficha: columna fija en ordenador, hoja que sube desde abajo en el móvil */
.app__detail { position: relative; background: var(--blanco); outline: none; }
.app__detail-inner { padding: var(--s-300); }
@media (min-width: 900px) {
  .app__detail { border-left: 1px solid var(--linea); background: #FBFAF7; }
  .app__close, .app__scrim { display: none !important; }
}
@media (max-width: 899px) {
  .app__detail {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -12px 40px -12px rgb(10 30 49 / 0.35);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%); visibility: hidden;
    transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
  }
  .app__detail::before { content: ""; display: block; width: 40px; height: 4px; margin: var(--s-100) auto 0; border-radius: 4px; background: var(--linea); }
  .app__detail.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
  .app__detail-inner { padding-top: var(--s-100); }
  .app__scrim { position: fixed; inset: 0; z-index: 79; background: rgb(10 30 49 / 0.45); opacity: 0; transition: opacity 300ms ease; }
  .app__scrim.is-on { opacity: 1; }
}
.app__close {
  position: absolute; z-index: 1; top: var(--s-300); right: var(--s-200); display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--papel); cursor: pointer;
}
.app__close .icon { transform: rotate(45deg); }
html.demo-lock { overflow: hidden; }

.app__origin { display: inline-flex; align-items: center; gap: var(--s-50); margin-bottom: var(--s-75); color: var(--gris); font-size: 12px; line-height: 16px; font-weight: 600; }
.app__origin .icon { width: 14px; height: 14px; }
.app__detail h3 { padding-right: var(--s-500); }

.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: var(--s-300); }
.track li { position: relative; display: grid; justify-items: center; gap: var(--s-75); text-align: center; font-size: 12px; line-height: 16px; color: var(--gris); }
.track li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--linea); transition: background-color 300ms ease; }
.track li:first-child::before { display: none; }
.track__dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--linea); transition: background-color 300ms var(--ease-out), box-shadow 300ms ease, transform 300ms var(--ease-out); }
.track li.is-done::before, .track li.is-now::before { background: var(--naranja); }
.track li.is-done .track__dot { background: var(--naranja); box-shadow: none; }
.track li.is-now { color: var(--azul); font-weight: 600; }
.track li.is-now .track__dot { box-shadow: inset 0 0 0 5px var(--naranja); transform: scale(1.15); }
.track li.is-won { color: var(--verde-ok); }
.track li.is-won .track__dot { background: var(--verde-ok); box-shadow: none; }
.track li.is-lost .track__dot { background: var(--gris); box-shadow: none; }
.track li.is-lost::before { background: var(--linea); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); margin: var(--s-300) 0 0; }
.facts dt { color: var(--gris); font-size: 12px; line-height: 16px; }
.facts dd { margin: var(--s-25) 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.next { margin-top: var(--s-300); padding: var(--s-200); border-radius: var(--r-md); background: var(--papel); }
.next__label { color: var(--gris); font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.next__what { margin-top: var(--s-50); font-family: var(--font-titulo); font-weight: 600; font-size: 18px; line-height: 28px; }
.next__when { font-size: 14px; line-height: 20px; color: var(--gris); }
.next--won { background: #E4F3EA; }
.next--lost { background: #EEF0F2; }

.app__actions { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }
.app__actions .btn { flex: 1 1 auto; }
.app__actions .btn--text { flex: 1 1 100%; min-height: 40px; --btn-bg: transparent; --btn-fg: var(--gris); padding-inline: var(--s-100); }
@media (hover: hover) and (pointer: fine) { .app__actions .btn--text:hover { --btn-fg: var(--azul); } }

.history { margin-top: var(--s-400); }
.history__label { color: var(--gris); margin-bottom: var(--s-100); }
.history ul { display: grid; gap: var(--s-100); }
.history li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: var(--s-100); font-size: 14px; line-height: 20px; }
.history li::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--linea); }
.history li:first-child::before { background: var(--naranja); }
.history time { display: block; color: var(--gris); font-size: 12px; line-height: 16px; }

/* Aviso tipo notificación: aparece arriba, debajo de la cabecera */
.app__toast {
  position: fixed; z-index: 90; left: 50%; top: calc(var(--header-h) + var(--s-300));
  display: flex; gap: var(--s-100); align-items: flex-start; width: min(420px, calc(100vw - 32px));
  padding: var(--s-200); border-radius: var(--r-lg); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3);
  font-size: 14px; line-height: 20px;
  opacity: 0; transform: translate(-50%, -12px) scale(0.97); visibility: hidden; pointer-events: none;
  transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.app__toast.is-on { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s; }
.app__toast-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #25D366; color: var(--azul-noche); }
.app__toast-icon .icon { width: 18px; height: 18px; }
.app__toast[data-kind="ok"] .app__toast-icon { background: var(--verde-ok); color: var(--blanco); }
.app__toast[data-kind="web"] .app__toast-icon { background: var(--naranja); }
.app__toast-body { display: grid; gap: var(--s-25); min-width: 0; }
.app__toast-body span { color: var(--blanco-70); }

/* Debajo del panel: el aviso de cada mañana */
.demo__below { display: grid; gap: var(--s-300); margin-top: var(--s-300); }
@media (min-width: 900px) { .demo__below { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-500); align-items: center; margin-top: var(--s-400); } }
.mail { padding: var(--s-300); border-radius: var(--r-xl); background: var(--blanco); box-shadow: var(--sombra-2); }
.mail__top { display: flex; gap: var(--s-100); align-items: center; padding-bottom: var(--s-200); border-bottom: 1px solid var(--linea); }
.mail__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--naranja-12); color: var(--naranja-texto); }
.mail__from { font-family: var(--font-titulo); font-weight: 600; }
.mail__to { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); color: var(--gris); font-size: 14px; line-height: 20px; }
.mail__who { display: inline-flex; gap: var(--s-25); padding: var(--s-25); border-radius: var(--r-full); background: var(--papel); }
.mail__who button { min-height: 32px; padding: 0 var(--s-100); border: 0; border-radius: var(--r-full); background: transparent; color: var(--gris); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.mail__who button.is-active { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra-1); }
.mail__hello { margin-top: var(--s-200); }
.mail__list { display: grid; gap: var(--s-25); margin-top: var(--s-100); }
.mail__item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-100); align-items: start; width: 100%;
  padding: var(--s-75) var(--s-100); border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; cursor: pointer;
  font-size: 14px; line-height: 20px; transition: background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .mail__item:hover { background: var(--papel); } }
.mail__box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--linea); color: transparent; transition: background-color 250ms var(--ease-out), color 250ms ease, box-shadow 250ms ease; }
.mail__box .icon { width: 14px; height: 14px; }
.mail__item small { display: block; color: var(--gris); font-size: 12px; line-height: 16px; }
.mail__item.is-done .mail__box { background: var(--verde-ok); color: var(--blanco); box-shadow: none; }
.mail__item.is-done b { text-decoration: line-through; text-decoration-color: rgb(90 102 117 / 0.6); color: var(--gris); font-weight: 500; }
.mail__item.is-late small { color: var(--rojo-error); }
.demo__explain .muted { margin-top: var(--s-100); }
.demo__note { display: flex; gap: var(--s-75); align-items: flex-start; margin-top: var(--s-200); color: var(--gris); font-size: 14px; line-height: 20px; }
.demo__note .icon { width: 16px; height: 16px; margin-top: 2px; }
.demo__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-300); }
.demo__reset { border: 0; background: none; padding: 0; cursor: pointer; font-size: 14px; }
.demo__noscript { margin-top: var(--s-200); text-align: center; color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
  .lead.is-new, .lead.is-changed { animation: none; }
  .app__detail, .app__toast { transition: none !important; }
}

/* ---------- "Esto es solo un ejemplo": menos / esto / más ---------- */
.scope { margin-top: var(--s-700); padding: var(--s-400) var(--s-300); border-radius: var(--r-xl); background: var(--azul); color: var(--blanco); }
@media (min-width: 900px) { .scope { padding: var(--s-600); } }
.scope__head { max-width: 680px; }
.scope__head > * + * { margin-top: var(--s-200); }
.scope .kicker { color: var(--naranja); }
.scope .body-lead { color: var(--blanco-70); }
.scope__cases { display: grid; gap: var(--s-100); margin-top: var(--s-400); }
@media (min-width: 900px) { .scope__cases { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.scope__case { display: grid; align-content: start; gap: var(--s-75); padding: var(--s-300); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.scope__case p:last-child { color: var(--blanco-70); }
.scope__case--mid { box-shadow: inset 0 0 0 1.5px var(--naranja); background: rgb(242 118 46 / 0.08); }
.scope__tag { justify-self: start; padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgb(255 255 255 / 0.1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.scope__case--mid .scope__tag { background: var(--naranja); color: var(--azul-noche); }
.scope__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200) var(--s-400); margin-top: var(--s-400); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / 0.12); }
.scope__foot p { color: var(--blanco-70); max-width: 520px; }
.scope__foot strong { color: var(--blanco); font-weight: 600; }
@media (max-width: 599px) { .scope__foot .btn { width: 100%; } }

/* ---------- Demo: WhatsApp de seguimiento ya escrito ---------- */
.app__actions .app__draft-btn { flex: 1 1 100%; }
.draft { flex: 1 1 100%; display: grid; gap: var(--s-75); padding: var(--s-200); border-radius: var(--r-md); background: #E7F8EE; }
.draft__label { display: flex; gap: var(--s-75); align-items: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--verde-ok); }
.draft__label .icon { width: 16px; height: 16px; }
.draft__text { width: 100%; min-height: 112px; padding: var(--s-100); border: 0; border-radius: var(--r-sm); background: var(--blanco); box-shadow: inset 0 0 0 1px rgb(31 122 77 / 0.25); color: var(--azul); font-size: 16px; line-height: 24px; resize: vertical; }
.draft__text:focus { outline: 2px solid var(--verde-ok); outline-offset: 0; }
.draft__btns { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.draft__btns .btn--dark { flex: 1 1 auto; }

.app__actions .draft__btns .btn--text { flex: 0 0 auto; }

/* Demo en el móvil: cada solicitud es una tarjeta que se toca (la ficha no se ve hasta abrirla) */
@media (max-width: 899px) {
  .app__list { gap: var(--s-75); }
  .lead {
    position: relative; padding: var(--s-100) var(--s-500) var(--s-100) var(--s-100);
    background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), 0 1px 2px rgb(15 42 68 / 0.05);
  }
  .lead::after {
    content: ""; position: absolute; right: var(--s-200); top: 50%; width: 8px; height: 8px;
    border: solid var(--gris); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg);
  }
  .lead:active { background: var(--papel); }
  .lead.is-selected { background: var(--blanco); box-shadow: 0 0 0 1.5px var(--naranja), 0 1px 2px rgb(15 42 68 / 0.05); }
}
.app__actions .app__draft-btn { white-space: normal; text-align: center; }

/* ---------- Demo: guía paso a paso (acompaña al bajar) ---------- */
.coach {
  position: sticky; z-index: 20; top: calc(var(--header-h) + var(--s-200));
  display: flex; align-items: center; gap: var(--s-200);
  max-width: 760px; margin: 0 auto var(--s-300); padding: var(--s-200) var(--s-300);
  border-radius: var(--r-lg); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3);
}
.coach__num {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--naranja); color: var(--azul-noche); font-family: var(--font-titulo); font-size: 18px; line-height: 28px; font-weight: 600;
  transition: background-color 300ms var(--ease-out), color 300ms ease;
}
.coach__num .icon { display: none; width: 20px; height: 20px; }
.coach.is-done .coach__num { background: var(--verde-ok); color: var(--blanco); }
.coach.is-done .coach__num .icon { display: block; }
.coach.is-done [data-coach-num] { display: none; }
.coach__body { flex: 1; min-width: 0; }
.coach__step { color: var(--naranja); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.coach.is-done .coach__step { color: #6FD39C; }
.coach__text { margin-top: var(--s-25); color: var(--blanco-70); }
.coach__text b { color: var(--blanco); font-weight: 600; }
.coach__text a { color: var(--naranja); font-weight: 600; text-decoration: none; white-space: nowrap; }
.coach__dots { display: flex; gap: 6px; flex: none; }
.coach__dots li { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.22); transition: background-color 300ms ease, transform 300ms var(--ease-out); }
.coach__dots li.is-done { background: #6FD39C; }
@media (max-width: 599px) {
  .coach { gap: var(--s-100); padding: var(--s-100) var(--s-200); margin-bottom: var(--s-200); }
  .coach__num { width: 32px; height: 32px; font-size: 16px; line-height: 24px; }
  .coach__text { font-size: 14px; line-height: 20px; }
  .coach__dots { display: none; }
}

/* El sitio donde toca pulsar: anillo naranja que "respira" */
.is-hint { outline: 2px solid var(--naranja); outline-offset: 3px; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { outline-offset: 7px; outline-color: rgb(242 118 46 / 0.35); } }
@media (prefers-reduced-motion: reduce) { .is-hint { animation: none; } }
.coach__go { padding: 0; border: 0; background: none; color: var(--naranja); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* El aviso, en blanco como una notificación, para no confundirse con la guía (azul) */
.app__toast { background: var(--blanco); color: var(--azul); box-shadow: 0 0 0 1px var(--azul-08), 0 16px 40px -12px rgb(10 30 49 / 0.35); }
.app__toast-body span { color: var(--gris); }

/* ---------- Demo: conversación de WhatsApp tras la llamada perdida ---------- */
.app__toast.is-on { pointer-events: auto; cursor: pointer; }
.app__toast-chat { display: none; flex: 1; min-width: 0; }
.app__toast.is-chat .app__toast-body { display: none; }
.app__toast.is-chat .app__toast-chat { display: grid; gap: var(--s-75); }
.chat__head { display: grid; font-size: 14px; line-height: 20px; }
.chat__head small { color: var(--gris); font-size: 12px; line-height: 16px; }
.wa-out, .wa-in { display: block; max-width: 92%; padding: var(--s-75) var(--s-100); font-size: 14px; line-height: 20px; color: var(--azul-noche); }
.wa-out { justify-self: end; border-radius: 12px 12px 4px 12px; background: #D9FDD3; }
.wa-in { justify-self: start; border-radius: 12px 12px 12px 4px; background: var(--papel); }
.wa-meta { display: block; margin-top: var(--s-25); text-align: right; color: var(--gris); font-size: 12px; line-height: 16px; }
.wa-out .wa-meta { color: #3B7A57; }
/* El recuadro crece al aparecer "escribiendo…" */
.chat__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.chat__more > span { display: grid; overflow: hidden; }
.chat__more.is-open { grid-template-rows: 1fr; }
.wa-typing { justify-self: start; display: inline-flex; gap: 4px; margin-top: var(--s-75); padding: var(--s-100) var(--s-200); border-radius: 12px 12px 12px 4px; background: var(--papel); }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gris); opacity: 0.5; animation: wa-dot 1s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: 150ms; }
.wa-typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes wa-dot { 30% { opacity: 1; transform: translateY(-3px); } 60% { opacity: 0.5; transform: none; } }
.wa-in { display: none; margin-top: var(--s-75); }
.chat__more.is-replied .wa-typing { display: none; }
.chat__more.is-replied .wa-in { display: block; animation: wa-in 260ms var(--ease-out); }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) {
  .chat__more { transition: none; }
  .wa-typing i, .chat__more.is-replied .wa-in { animation: none; }
}
/* ✕ para cerrar el aviso (también se cierra tocando en cualquier parte) */
.app__toast { padding-right: var(--s-500); }
.app__toast-close {
  position: absolute; top: var(--s-50); right: var(--s-50); display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--gris); cursor: pointer; transition: background-color 200ms ease, color 200ms ease;
}
.app__toast-close .icon { width: 16px; height: 16px; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .app__toast-close:hover { background: var(--papel); color: var(--azul); } }

/* Al terminar los 4 pasos, la guía deja de acompañar al bajar y se queda en su sitio */
.coach.is-done { position: relative; }

/* ---------- Demo: "Tu oficina", el asistente en tu WhatsApp ---------- */
.assist { display: grid; gap: var(--s-200); padding: var(--s-200); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); background: linear-gradient(180deg, #FFF8F2, var(--blanco)); }
@media (min-width: 720px) { .assist { padding: var(--s-300); } }
@media (min-width: 1100px) { .assist { grid-template-columns: 340px minmax(0, 1fr); column-gap: var(--s-300); } }
.assist__side { display: grid; gap: var(--s-200); align-content: start; }
.assist__head { display: flex; gap: var(--s-100); align-items: center; }
.assist__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #25D366; color: var(--azul-noche); }
.assist__avatar .icon { width: 22px; height: 22px; }
.assist__title { font-family: var(--font-titulo); font-weight: 600; }
.assist__tag { display: inline-block; margin-left: var(--s-50); padding: 2px 8px; border-radius: var(--r-full); background: #E7F8EE; color: var(--verde-ok); font-family: var(--font-texto); font-size: 12px; line-height: 16px; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.assist__sub { color: var(--gris); font-size: 12px; line-height: 16px; }
.assist__hint { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: calc(var(--s-100) * -1); }
.assist__asks { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.ask {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--r-full);
  background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1); color: var(--azul);
  font-family: var(--font-texto); font-size: 14px; line-height: 20px; font-weight: 600; text-align: left; cursor: pointer; touch-action: manipulation; user-select: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, opacity 200ms ease;
}
.ask .icon { width: 16px; height: 16px; flex: none; color: var(--naranja-texto); }
.ask:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ask:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--naranja), var(--sombra-2); } }
.ask.is-used { opacity: 0.45; cursor: default; box-shadow: inset 0 0 0 1px var(--linea); }

/* La conversación, con el aspecto de un chat de WhatsApp */
.assist__chat { display: flex; flex-direction: column; gap: 6px; height: 360px; overflow-y: auto; padding: var(--s-200) var(--s-100); border-radius: var(--r-md); background: #EFEAE2; box-shadow: inset 0 0 0 1px rgb(15 42 68 / 0.06); }
@media (min-width: 600px) { .assist__chat { padding: var(--s-200); } }
.msg { max-width: 88%; padding: 6px 10px 4px; border-radius: 10px; color: var(--azul-noche); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); animation: msg-in 220ms var(--ease-out) both; }
.msg--bot { align-self: flex-start; background: var(--blanco); border-top-left-radius: 4px; }
.msg--me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.msg__time { display: block; margin-top: 2px; text-align: right; color: var(--gris); font-size: 11px; line-height: 14px; }
.msg--me .msg__time { color: #3B7A57; }
.msg--typing .msg__time { display: none; }
.msg .wa-typing { margin: 0; padding: 6px 2px; background: none; }
.msg__card { display: grid; gap: 4px; margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--papel); }
.msg__card-head { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.msg__card-head .icon { width: 16px; height: 16px; flex: none; color: var(--naranja-texto); }
.msg__row { display: flex; justify-content: space-between; gap: var(--s-200); color: var(--gris); font-size: 13px; line-height: 18px; }
.msg__row b { color: var(--azul-noche); font-weight: 600; text-align: right; }
.msg__mail { display: grid; gap: 4px; color: var(--azul); font-size: 13px; line-height: 18px; }
.msg__quote { display: block; margin: 6px 0; padding: 6px 10px; border-left: 3px solid #25D366; border-radius: 4px; background: var(--papel); }
.msg__list { margin: 4px 0 0; padding-left: 18px; }
.msg__list li::marker { color: var(--naranja); }
.msg__list em { color: var(--naranja-texto); font-style: normal; font-weight: 600; }
.msg__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__btn { min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--r-full); background: var(--papel); color: var(--azul); font-family: var(--font-texto); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out); }
.msg__btn--yes { background: #25D366; color: var(--azul-noche); }
.msg__btn:active { transform: scale(0.97); }
.msg__ok { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; color: var(--verde-ok); }
.msg__audio { display: flex; align-items: center; gap: 8px; min-width: 200px; color: var(--gris); font-size: 12px; }
.msg__play { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #3B7A57; color: var(--blanco); }
.msg__play .icon { width: 14px; height: 14px; }
.msg__wave { display: flex; flex: 1; align-items: center; gap: 2px; height: 18px; }
.msg__wave i { flex: 1; max-width: 3px; height: 40%; border-radius: 2px; background: #3B7A57; opacity: 0.6; }
.msg__wave i:nth-child(3n+1) { height: 75%; } .msg__wave i:nth-child(4n+2) { height: 100%; } .msg__wave i:nth-child(5n+3) { height: 55%; }
.msg__said { display: block; margin-top: 4px; color: #3B7A57; font-size: 12px; line-height: 16px; }
/* Miniatura de la factura fotografiada */
.msg__photo { display: grid; align-content: start; gap: 6px; width: 160px; height: 112px; margin: 2px 0 6px; padding: 12px; border-radius: 6px; background: var(--blanco); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); transform: rotate(-2deg); }
.msg__photo span { height: 5px; border-radius: 3px; background: var(--linea); }
.msg__photo span:nth-child(1) { width: 55%; height: 8px; background: var(--gris); opacity: 0.5; }
.msg__photo span:nth-child(2) { width: 80%; } .msg__photo span:nth-child(3) { width: 70%; } .msg__photo span:nth-child(4) { width: 85%; }
.msg__photo b { justify-self: end; margin-top: 4px; font-size: 12px; line-height: 16px; }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
/* Móvil y tableta: primero la conversación y debajo las frases, como sugerencias del teclado */
@media (max-width: 1099px) {
  .assist__side { display: contents; }
  .assist__chat { order: 2; height: 320px; }
  .assist__hint { order: 3; }
  .assist__asks { order: 4; }
}

/* El chat va debajo de las solicitudes: lo principal primero */
.assist { border-bottom: 0; scroll-margin-top: calc(var(--header-h) + 120px); }

/* ---------- Tarjeta "Y además: tu oficina, en un chat de WhatsApp" (Inicio y Servicios) ---------- */
.extra { display: grid; gap: var(--s-300); align-items: center; margin-top: var(--s-600); padding: var(--s-300); border-radius: var(--r-xl); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1); }
.section--white .extra { background: var(--papel); box-shadow: none; }
.section--tight .extra { margin-top: 0; }
@media (min-width: 900px) { .extra { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-600); padding: var(--s-500); } }
.extra__copy { display: grid; gap: var(--s-200); justify-items: start; }
.extra__text { color: var(--gris); max-width: 520px; }
.extra__chat { display: grid; gap: var(--s-75); padding: var(--s-200); border-radius: var(--r-lg); background: #EFEAE2; }
.extra__contact { display: flex; align-items: center; gap: var(--s-100); margin-bottom: var(--s-50); font-size: 14px; line-height: 20px; color: var(--azul-noche); }
.extra__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #25D366; color: var(--azul-noche); }
.extra__avatar .icon { width: 16px; height: 16px; }
.extra__msg { justify-self: start; max-width: 88%; padding: 6px 10px 4px; border-radius: 4px 10px 10px 10px; background: var(--blanco); color: var(--azul-noche); font-size: 14px; line-height: 20px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.extra__msg--me { justify-self: end; border-radius: 10px 4px 10px 10px; background: #D9FDD3; }
.extra__msg small { display: block; text-align: right; color: var(--gris); font-size: 11px; line-height: 14px; }
.extra__msg--me small { color: #3B7A57; }
@media (max-width: 599px) { .assist__chat { height: 260px; } }

/* "Y además" resaltado: tarjeta azul, como un extra que se suma */
.extra, .section--white .extra { position: relative; overflow: clip; background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3); }
.extra::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgb(242 118 46 / 0.28), transparent); pointer-events: none; }
.extra > * { position: relative; }
.extra__title { color: var(--blanco); }
.extra__text { color: var(--blanco-70); }
.extra__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--r-full); background: var(--naranja); color: var(--azul-noche); font-family: var(--font-titulo); font-size: 14px; line-height: 20px; font-weight: 600; }
.extra__badge .icon { width: 16px; height: 16px; }
.extra__copy .btn { margin-top: var(--s-100); }
@media (max-width: 599px) { .extra__copy .btn { width: 100%; justify-content: center; } }

/* "Y además" a lo grande: se tiene que ver que va incluido, como un regalo */
.extra__badge { gap: 8px; padding: 6px 16px 6px 12px; font-size: 16px; line-height: 24px; box-shadow: 0 6px 20px rgb(242 118 46 / 0.35); }
.extra__badge .icon { width: 20px; height: 20px; }
.extra__title { font-family: var(--font-titulo); font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.extra__title span { color: var(--naranja); }
@media (min-width: 900px) { .extra__title { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; } }
.extra__plus { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--blanco); font-weight: 600; }
.extra__plus .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #6FD39C; }
.extra__chat { position: relative; }
/* Sello "Incluido" sobre la esquina del chat */
.extra__stamp {
  position: absolute; top: -18px; right: -10px; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--naranja); color: var(--azul-noche); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25), inset 0 0 0 3px rgb(255 255 255 / 0.35);
  font-family: var(--font-titulo); font-size: 15px; line-height: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; transform: rotate(12deg);
}
@media (max-width: 599px) { .extra__stamp { width: 72px; height: 72px; font-size: 13px; top: -22px; right: -6px; } }
.extra__stamp { width: 96px; height: 96px; font-size: 14px; top: -24px; right: -14px; }
@media (max-width: 599px) { .extra__stamp { width: 82px; height: 82px; font-size: 12px; top: -26px; right: -8px; } }
@media (max-width: 599px) { .extra__badge { gap: 6px; padding: 5px 12px 5px 10px; font-size: 14px; line-height: 20px; white-space: nowrap; } .extra__badge .icon { width: 18px; height: 18px; } }
@media (max-width: 379px) { .extra__badge { font-size: 13px; padding-inline: 8px 10px; } .extra__badge .icon { width: 16px; height: 16px; } }

/* Etiqueta "Incluido para las 3 primeras empresas" montada sobre la línea de arriba del asistente */
.assist { position: relative; padding-top: calc(var(--s-300) + 12px); }
@media (min-width: 720px) { .assist { padding-top: calc(var(--s-300) + 16px); } }
.assist__badge {
  position: absolute; z-index: 2; top: 0; left: var(--s-200); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; border-radius: var(--r-full);
  background: var(--naranja); color: var(--azul-noche); box-shadow: 0 6px 20px rgb(242 118 46 / 0.35), 0 0 0 4px var(--blanco);
  font-family: var(--font-titulo); font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
}
@media (min-width: 720px) { .assist__badge { left: var(--s-300); } }
.assist__badge .icon { width: 20px; height: 20px; }
@media (max-width: 599px) { .assist__badge { gap: 6px; padding: 5px 12px 5px 10px; font-size: 14px; line-height: 20px; } .assist__badge .icon { width: 18px; height: 18px; } }
@media (max-width: 379px) { .assist__badge { font-size: 13px; padding-inline: 8px 10px; } .assist__badge .icon { width: 16px; height: 16px; } }

/* ---------- Inicio: aviso "Nuevo" encima del titular ---------- */
.hero__news {
  display: inline-flex; align-items: center; gap: var(--s-100); max-width: 100%; margin-bottom: var(--s-300); padding: 4px 14px 4px 4px;
  border-radius: var(--r-full); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
  color: var(--azul); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; touch-action: manipulation;
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.hero__news:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .hero__news:hover { box-shadow: inset 0 0 0 1px var(--naranja), var(--sombra-2); }
  .hero__news:hover .hero__news-go { transform: translateX(3px); }
}
.hero__news-tag { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: var(--r-full); background: var(--naranja); color: var(--azul-noche); font-family: var(--font-titulo); }
.hero__news-tag .icon { width: 16px; height: 16px; }
.hero__news-text { min-width: 0; }
.hero__news-go { width: 16px; height: 16px; flex: none; color: var(--naranja-texto); transition: transform 200ms var(--ease-out); }
@media (max-width: 479px) { .hero__news { font-size: 13px; line-height: 18px; gap: var(--s-75); padding-right: 10px; } }
.extra { scroll-margin-top: calc(var(--header-h) + var(--s-400)); }

/* ==========================================================================
   Rendimiento (9/11/2026): las animaciones continuas solo usan transform u opacity,
   que mueve la tarjeta gráfica sin redibujar, y se pausan cuando no se ven.
   ========================================================================== */

/* Anillo de la guía: el contorno queda fijo y "respira" un halo que solo cambia de opacidad */
.is-hint { position: relative; animation: none; }
.is-hint::before {
  content: ""; position: absolute; inset: -7px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px rgb(242 118 46 / 0.45); opacity: 0; animation: hint-glow 1.8s ease-in-out infinite;
}
@keyframes hint-glow { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .is-hint::before { animation: none; } }

/* Líneas del esquema "Lo conectamos": los guiones se desplazan con transform */
.hub__line { overflow: hidden; background: none !important; animation: none !important; }
.hub__line::before { content: ""; position: absolute; animation: 1.2s linear infinite; }
.hub__line--1::before, .hub__line--3::before { inset: -12px 0; background: repeating-linear-gradient(180deg, var(--naranja) 0 6px, transparent 6px 12px); }
.hub__line--2::before, .hub__line--4::before { inset: 0 -12px; background: repeating-linear-gradient(90deg, var(--naranja) 0 6px, transparent 6px 12px); }
.hub__line--1::before { animation-name: dash-down; }
.hub__line--3::before { animation-name: dash-up; }
.hub__line--4::before { animation-name: dash-right; }
.hub__line--2::before { animation-name: dash-left; }
@keyframes dash-down { from { transform: translateY(0); } to { transform: translateY(12px); } }
@keyframes dash-up { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes dash-right { from { transform: translateX(0); } to { transform: translateX(12px); } }
@keyframes dash-left { from { transform: translateX(0); } to { transform: translateX(-12px); } }
@media (prefers-reduced-motion: reduce) { .hub__line::before { animation: none; } }

/* Lo que está fuera de la pantalla no se anima */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- Sobre nosotros ---------- */
.about-why { display: grid; gap: var(--s-500); align-items: center; }
@media (min-width: 960px) { .about-why { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-700); } }
.about-why__text > * + * { margin-top: var(--s-200); }
.about-why__text .body-lead strong { color: var(--azul); font-weight: 600; }

.name-card { position: relative; overflow: clip; padding: var(--s-400); border-radius: var(--r-xl); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3); }
@media (min-width: 768px) { .name-card { padding: var(--s-500); } }
.name-card::before { content: ""; position: absolute; right: -140px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgb(242 118 46 / 0.24), transparent); pointer-events: none; }
.name-card > * { position: relative; }
.name-card__mark { width: 72px; height: 72px; margin-bottom: var(--s-300); }
.name-card__word { margin-top: var(--s-100); font-family: var(--font-titulo); font-weight: 700; font-size: 44px; line-height: 48px; letter-spacing: -0.02em; }
.name-card__def { margin-top: var(--s-75); color: var(--naranja); font-size: 18px; line-height: 28px; font-weight: 500; }
.name-card__text { margin-top: var(--s-300); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / 0.12); color: var(--blanco-70); }

.team { display: grid; gap: var(--s-500); }
@media (min-width: 960px) { .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); align-items: center; } }
.team__copy > * + * { margin-top: var(--s-200); }
.team__skills { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-300) !important; }
.team__skills li { padding: 6px 14px; border-radius: var(--r-full); background: var(--blanco); color: var(--azul); font-size: 14px; line-height: 20px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--linea); }
.team__steps { display: grid; gap: var(--s-100); }
.team__step { display: flex; gap: var(--s-200); align-items: flex-start; padding: var(--s-300); border-radius: var(--r-lg); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1); }
.team__step .step__num { flex: none; }
.team__step:last-child .step__num { background: var(--naranja); color: var(--azul-noche); }
.team__step h3 { color: var(--azul); }
.team__step p { margin-top: var(--s-50); color: var(--gris); }

.promises { display: grid; gap: var(--s-100); }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promises { grid-template-columns: repeat(3, 1fr); gap: var(--s-200); } }

.honest { position: relative; overflow: clip; display: grid; gap: var(--s-400); padding: var(--s-400) var(--s-300); border-radius: var(--r-xl); background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-3); }
@media (min-width: 768px) { .honest { padding: var(--s-500); } }
@media (min-width: 960px) { .honest { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-600); align-items: center; padding: var(--s-600); } }
.honest::before { content: ""; position: absolute; left: -160px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; border: 56px solid var(--azul-tinte); border-top-color: transparent; transform: rotate(30deg); pointer-events: none; }
.honest > * { position: relative; }
.honest__copy > * + * { margin-top: var(--s-200); }
.honest__title { color: var(--blanco); }
.honest__text { color: var(--blanco-70); font-size: 18px; line-height: 28px; }
.honest__text strong { color: var(--blanco); font-weight: 600; }
.honest__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-400) !important; }
@media (max-width: 479px) { .honest__actions .btn { width: 100%; justify-content: center; } }
.honest__list { display: grid; gap: var(--s-200); padding: var(--s-300); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.honest__list li { display: flex; gap: var(--s-100); color: var(--blanco); }
.honest__list .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--naranja); }

/* ---------- Páginas legales ---------- */
.legal { text-align: left; }
.legal h2 { color: var(--azul); }
.legal ul { display: grid; gap: var(--s-100); padding-left: var(--s-300); list-style: disc; }
.legal li::marker { color: var(--naranja); }
.legal strong { color: var(--azul); font-weight: 600; }
.legal a { color: var(--naranja-texto); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__date { font-size: 14px; line-height: 20px; }
.legal__data { list-style: none !important; padding: var(--s-300) !important; border-radius: var(--r-lg); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.legal__summary { margin-top: var(--s-400) !important; padding: var(--s-300); border-radius: var(--r-lg); background: var(--naranja-12); }
.legal__summary-title { font-family: var(--font-titulo); font-weight: 600; color: var(--azul) !important; margin-bottom: var(--s-100); }
.legal__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; display: block; overflow-x: auto; }
.legal__table th, .legal__table td { padding: var(--s-150, 12px) var(--s-200); text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); color: var(--gris); }
.legal__table th { color: var(--azul); font-weight: 600; background: var(--blanco); }
.legal__table code { font-size: 14px; color: var(--azul); }
.legal .pending-note { font-size: 14px; }
@media (max-width: 639px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table thead { display: none; }
  .legal__table tr { padding: var(--s-200); border-radius: var(--r-lg); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
  .legal__table tr + tr { margin-top: var(--s-100); }
  .legal__table td { padding: 0; border: 0; }
  .legal__table td + td { margin-top: var(--s-150, 12px); }
  .legal__table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--azul); font-size: 13px; line-height: 18px; font-weight: 600; }
}
