/* ══════════════════════════════════════════════════════════════════════════
   Capa 3 de 3 — COMPONENTES. Todo lo que se ve y se toca.
   ══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════ BOTONES ══════════════════ */
.btn {
  --btn-bg: var(--glass-bg);
  --btn-fg: var(--fg-strong);
  --btn-bd: var(--glass-border-hi);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--d-fast) var(--e-out),
    box-shadow var(--d-base) var(--e-out),
    background-color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: var(--d-instant); }

/* Primario — el CTA. Gradiente de marca + brillo que barre al pasar el ratón. */
.btn-primary {
  --btn-fg: var(--on-primary);
  --btn-bd: transparent;
  background: var(--grad-cta);   /* [14-sep-2026] texto blanco ≥ 4.5:1 (ver tokens.css) */
  box-shadow: var(--glow-primary);
  font-weight: 700;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.42) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform var(--d-slow) var(--e-out);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { box-shadow: var(--glow-lift), var(--glow-primary); }

/* Secundario — cristal */
.btn-ghost:hover { background: var(--glass-bg-hover); border-color: var(--accent); }

/* Terciario — solo texto con subrayado animado */
.btn-link {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--accent);
}
.btn-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-base) var(--e-out);
}
.btn-link:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-link:hover { transform: none; }

.btn-lg    { padding: 1.1rem 2.1rem; font-size: var(--t-body); }
.btn-block { width: 100%; }

.btn .ic { width: 1.15em; height: 1.15em; flex: none; }
/* La flecha del CTA avanza al pasar el ratón: refuerza «esto te lleva a algo» */
.btn:hover .ic-arrow { transform: translateX(3px); }
.ic-arrow { transition: transform var(--d-fast) var(--e-out); }

/* ═══════════════════════════════════════════════ NAVEGACIÓN ═══════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out),
              backdrop-filter var(--d-base) var(--e-out);
}

/* Al bajar, la barra se «materializa» en cristal. Lo activa app.js. */
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom-color: var(--glass-border);
}

.nav .wrap { display: flex; align-items: center; gap: var(--sp-5); width: 100%; max-width: var(--wrap-wide); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: var(--sp-1); }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out);
}
.nav-link:hover { color: var(--fg-strong); background: var(--glass-bg); }
.nav-link[aria-current="page"] { color: var(--fg-strong); background: var(--glass-bg); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Conmutador de tema */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  color: var(--fg-muted);
  transition: color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .ic-sun  { display: none; }
[data-theme="light"] .theme-toggle .ic-sun  { display: block; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* Hamburguesa (solo móvil) */
.nav-burger { display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--glass-border); border-radius: var(--r-pill); background: var(--glass-bg); }
.nav-burger .ic { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-burger { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out), visibility var(--d-base);
    /* [14-sep-2026] Con la página bloqueada, un menú más alto que la pantalla
       (móvil en horizontal) se desplaza él solo. */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  /* [14-sep-2026] Menú abierto (<html class="menu-abierto">, lo pone app.js): la
     cabecera sube por encima del banner de cookies (z-modal), que tapaba los últimos
     enlaces; WhatsApp y la barra de acción, que se montaban sobre «Precios», se
     apartan mientras tanto; y la página de debajo no se desplaza. */
  html.menu-abierto { overflow: hidden; }
  html.menu-abierto .nav { z-index: calc(var(--z-modal) + 1); }
  html.menu-abierto .wa-fijo,
  html.menu-abierto .cta-movil { opacity: 0; visibility: hidden; pointer-events: none; }
  .nav-link { padding: 0.85rem 1rem; font-size: var(--t-body); }
  .nav-actions .btn-cta-nav { display: none; }
}

/* ═══════════════════════════════════════════════ CRISTAL ══════════════════ */
.glass {
  position: relative;
  background: var(--glass-bg);
  background-image: var(--grad-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glow-soft);
}

/* Rim-light: una línea de luz en el borde superior. El detalle que separa
   «tarjeta plana» de «panel de vidrio». */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--glass-border-hi), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════ TARJETAS ═════════════════ */
.card {
  padding: var(--sp-5);
  transition: transform var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-border-hi); box-shadow: var(--glow-lift); }
/* [14-sep-2026] Una tarjeta nunca ensancha la página: en «Novedades» un identificador
   sin espacios (leerColaContenidoEstado…) la estiraba a 442 px en un móvil de 390.
   break-word solo parte la palabra que no cabe; el texto normal queda igual. */
.card { min-width: 0; overflow-wrap: break-word; }

.card h3 { margin-bottom: var(--sp-2); }
.card p  { color: var(--fg-muted); font-size: var(--t-sm); }

/* Icono de tarjeta — cuadrado con halo de color */
.card-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--accent);
}
.card-ic .ic { width: 22px; height: 22px; }

/* Tarjeta enlazada: toda la superficie es clicable sin anidar <a> */
.card-link { display: block; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ═══════════════════════════════════════════════ PÍLDORAS Y BADGES ════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Punto que late — «esto está vivo ahora mismo» */
.dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent);
  animation: latido 2.4s var(--e-inout) infinite;
}
@keyframes latido {
  0%       { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 65%, transparent); }
  70%,100% { box-shadow: 0 0 0 9px transparent; }
}

/* Anillos de autonomía — el código de color del producto, en la web */
.anillo { display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 600; letter-spacing: .08em; }
.anillo::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.anillo-a0::before { background: var(--ok); }
.anillo-a1::before { background: var(--accent); }
.anillo-a2::before { background: var(--wait); }
.anillo-a3::before { background: var(--danger); }
.anillo-a0 { color: var(--ok); }
.anillo-a1 { color: var(--accent); }
.anillo-a2 { color: var(--wait); }
.anillo-a3 { color: var(--danger); }

/* ═══════════════════════════════════════════════ MÉTRICAS ════════════════ */
.stat { text-align: center; padding: var(--sp-4); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;   /* que no «baile» al contar */
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat-lbl { display: block; margin-top: var(--sp-2); font-size: var(--t-xs); color: var(--fg-muted); }

/* ═══════════════════════════════════════════════ PLANES ══════════════════ */
.planes { display: grid; gap: var(--sp-5); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.plan { display: flex; flex-direction: column; padding: var(--sp-6) var(--sp-5); height: 100%; }

/* El plan destacado se eleva de verdad: escala + luz. Anclaje visual del precio medio. */
.plan-destacado {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: var(--glow-primary);
}
@media (min-width: 60rem) {
  .plan-destacado { transform: scale(1.045); z-index: 2; }
  .plan-destacado:hover { transform: scale(1.045) translateY(-4px); }
}

.plan-tag {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--grad-cta);   /* [14-sep-2026] texto blanco ≥ 4.5:1 */
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.plan h3 { font-size: 1.3rem; margin-bottom: var(--sp-1); }
.plan-para { font-size: var(--t-xs); color: var(--fg-subtle); margin-bottom: var(--sp-4); min-height: 2.6em; }

.plan-precio { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: var(--sp-1); }
.plan-precio b {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.plan-precio span { font-size: var(--t-sm); color: var(--fg-muted); }
.plan-iva { font-size: var(--t-xs); color: var(--fg-subtle); margin-bottom: var(--sp-5); }

.plan ul { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); flex: 1; }
.plan li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--fg-muted); }
.plan li .ic { width: 18px; height: 18px; flex: none; margin-top: 0.22em; color: var(--ok); }
.plan li.no { color: var(--fg-subtle); }
.plan li.no .ic { color: var(--fg-subtle); opacity: .55; }
.plan li b { color: var(--fg-strong); font-weight: 600; }

/* Conmutador mensual/anual */
.switch-precio { display: inline-flex; padding: 4px; border-radius: var(--r-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border); }
.switch-precio button {
  padding: 0.55rem 1.15rem; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--fg-muted); font-size: var(--t-sm); font-weight: 600;
  transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
.switch-precio button[aria-pressed="true"] { background: var(--grad-cta); color: var(--on-primary); }   /* [14-sep-2026] */
.switch-precio .ahorro { font-family: var(--font-mono); font-size: 0.65rem; color: var(--ok); margin-left: .4rem; }

/* ═══════════════════════════════════════════════ ACORDEÓN (FAQ) ══════════ */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  font-weight: 600;
  color: var(--fg-strong);
  list-style: none;
  transition: color var(--d-fast) var(--e-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary .ic {
  width: 22px; height: 22px; flex: none;
  color: var(--accent);
  transition: transform var(--d-base) var(--e-out);
}
.faq-item[open] summary .ic { transform: rotate(45deg); }

.faq-item .faq-body { padding-bottom: var(--sp-5); color: var(--fg-muted); max-width: var(--wrap-text); }
.faq-item .faq-body p + p { margin-top: var(--sp-3); }

/* Apertura suave (Chrome/Safari; en el resto abre instantáneo, que también vale) */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--d-base) var(--e-out), content-visibility var(--d-base) allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ═══════════════════════════════════════════════ TESTIMONIOS ═════════════ */
.quote { padding: var(--sp-6); }
.quote blockquote { font-family: var(--font-display); font-size: var(--t-h3);
  font-weight: 500; line-height: 1.42; letter-spacing: -0.015em; color: var(--fg-strong); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.4rem; line-height: .5;
  color: var(--accent); opacity: .5; margin-bottom: var(--sp-3); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5);
  font-size: var(--t-sm); color: var(--fg-muted); }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--glass-border-hi); }
.quote figcaption b { display: block; color: var(--fg-strong); }

/* ═══════════════════════════════════════════════ CINTA (marquee) ═════════ */
.cinta { 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); }
/* [14-sep-2026 · Raúl] UNA sola cinta y más grande. La portada trae el bloque CINTA dos veces (dos filas
   iguales, una encima de otra): se oculta la segunda sin tocar el HTML generado. El hueco crece con la
   pantalla para que una vuelta mida más que lo visible: cada red sale una sola vez a la vista. */
.cinta + .cinta { display: none; }
.cinta { --cinta-gap: clamp(2.25rem, 4vw, 4.5rem); padding-block: .35rem; }
.cinta-pista { display: flex; width: max-content; gap: var(--cinta-gap); animation: desliza-cinta 48s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta-item { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono);
  font-size: clamp(.85rem, .78rem + .35vw, 1.05rem); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-subtle); white-space: nowrap; }
.cinta-item .ic { width: 16px; height: 16px; color: var(--accent); opacity: .8; }
.cinta .ic-marca { width: clamp(22px, 1.2rem + .6vw, 30px); height: clamp(22px, 1.2rem + .6vw, 30px); }
@keyframes desliza-cinta { to { transform: translateX(calc(-50% - var(--cinta-gap) / 2)); } }
@keyframes desliza { to { transform: translateX(calc(-50% - var(--sp-7) / 2)); } }

/* ═══════════════════════════════════════════════ LÍNEA DE TIEMPO ═════════ */
.linea { position: relative; padding-left: var(--sp-6); }
.linea::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
  opacity: .45;
}
.linea-paso { position: relative; padding-bottom: var(--sp-6); }
.linea-paso:last-child { padding-bottom: 0; }
.linea-paso::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 5px); top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.linea-paso h3 { font-size: 1.12rem; margin-bottom: var(--sp-2); }
.linea-paso p  { color: var(--fg-muted); font-size: var(--t-sm); }
.linea-hora { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--accent);
  letter-spacing: .1em; display: block; margin-bottom: 0.3rem; }

/* ═══════════════════════════════════════════════ FORMULARIOS ═════════════ */
.campo { display: flex; flex-direction: column; gap: 0.45rem; }

/* Etiqueta SIEMPRE visible — nunca placeholder como etiqueta */
.campo > label { font-size: var(--t-sm); font-weight: 600; color: var(--fg-strong); }
.campo .ayuda  { font-size: var(--t-xs); color: var(--fg-subtle); }

.campo input, .campo textarea, .campo select {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  color: var(--fg-strong);
  font-size: var(--t-body);   /* 16px: evita el zoom automático de iOS */
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--fg-subtle); }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Error junto al campo, nunca solo arriba del formulario */
.campo.error input, .campo.error textarea, .campo.error select { border-color: var(--danger); }
.campo .err { display: none; align-items: center; gap: 0.4rem; font-size: var(--t-xs); color: var(--danger); }
.campo.error .err { display: flex; }
.campo .err .ic { width: 14px; height: 14px; flex: none; }

/* Opciones tipo tarjeta (radio/checkbox grandes y táctiles) */
.opciones { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; width: 0; height: 0; }
.opcion span {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 56px; padding: 0.9rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  font-size: var(--t-sm); font-weight: 500;
  transition: border-color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out),
              box-shadow var(--d-fast) var(--e-out);
}
.opcion span .ic { width: 20px; height: 20px; flex: none; color: var(--fg-subtle); transition: color var(--d-fast); }
.opcion:hover span { border-color: var(--glass-border-hi); background: var(--glass-bg-hover); }
.opcion input:checked + span {
  border-color: var(--accent);
  background: var(--grad-brand-soft);
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--fg-strong);
}
.opcion input:checked + span .ic { color: var(--accent); }
.opcion input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Barra de progreso del formulario por pasos */
.pasos { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.pasos-barra { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--glass-bg); overflow: hidden; }
/* [14-sep-2026] En claro --glass-bg es blanco al 72 %: la pista vacía no se veía. */
[data-theme="light"] .pasos-barra { background: var(--glass-border); }
.pasos-relleno { height: 100%; width: 0%; border-radius: inherit; background: var(--grad-brand);
  transition: width var(--d-slow) var(--e-out); }
.pasos-txt { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--fg-muted);
  letter-spacing: .08em; white-space: nowrap; }

.paso[hidden] { display: none; }

/* Aviso de privacidad del formulario */
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-xs); color: var(--fg-muted); }
.consent input { width: 18px; height: 18px; margin-top: 0.15em; flex: none; accent-color: var(--primary); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Mensaje de resultado del envío */
.aviso { display: flex; gap: 0.8rem; padding: var(--sp-4); border-radius: var(--r-md);
  border: 1px solid var(--glass-border-hi); background: var(--glass-bg); font-size: var(--t-sm); }
.aviso .ic { width: 20px; height: 20px; flex: none; margin-top: 0.1em; }
.aviso-ok    { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.aviso-ok .ic { color: var(--ok); }
.aviso-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.aviso-error .ic { color: var(--danger); }

/* ═══════════════════════════════════════════════ MOSAICO / BENTO ═════════ */
.bento { display: grid; gap: var(--sp-4); grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 48rem) {
  .bento > * { grid-column: span 3; }
  .bento .b-ancho { grid-column: span 6; }
}
@media (min-width: 68rem) {
  .bento > * { grid-column: span 2; }
  .bento .b-medio { grid-column: span 3; }
  .bento .b-ancho { grid-column: span 4; }
  .bento .b-total { grid-column: span 6; }
}

/* ═══════════════════════════════════════════════ MEDIA ═══════════════════ */
.media { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--glass-border); }
.media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--d-story) var(--e-out), filter var(--d-story) var(--e-out); }
.media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg-deep) 88%, transparent) 100%); }
.media:hover img { transform: scale(1.05); }
.media-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-5); }
.media-cap h3 { font-size: 1.16rem; margin-bottom: 0.2rem; }
.media-cap p  { font-size: var(--t-xs); color: var(--fg-muted); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ═══════════════════════════════════════════════ CTA FINAL ═══════════════ */
.cta-panel {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
  text-align: center;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: -50% -10% auto;
  height: 140%;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.28), transparent 62%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin-bottom: var(--sp-4); }
.cta-panel .lead { margin-inline: auto; margin-bottom: var(--sp-6); }

/* ═══════════════════════════════════════════════ PIE ═════════════════════ */
.footer { border-top: 1px solid var(--glass-border); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sec-y); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-bottom: var(--sp-7); }
/* Los titulares de columna del pie son h3, no h4: en una página que va
   h1 -> h2 -> h3, un h4 en el pie salta un nivel sin motivo. Se deja
   h4 en el selector por si queda alguna página sin regenerar. */
.footer-col h3,
.footer-col h4 { font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--t-sm); color: var(--fg-muted); transition: color var(--d-fast) var(--e-out); }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { font-size: var(--t-sm); color: var(--fg-muted); margin-top: var(--sp-3); max-width: 30ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  align-items: center; padding-top: var(--sp-5); border-top: 1px solid var(--glass-border);
  font-size: var(--t-xs); color: var(--fg-subtle); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
/* [14-sep-2026] Dedo, no ratón: en móvil los enlaces del pie medían 19-21 px de alto
   (mínimo cómodo 44). Solo por debajo de 600 px; en escritorio no cambia nada. */
@media (max-width: 600px) {
  .footer-col ul { gap: 0; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; }
  .footer-bottom nav { row-gap: 0; }
  .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}

/* ═══════════════════════════════════════════════ COOKIES ════════════════ */
.cookie-bar {
  position: fixed;
  left: var(--gutter); right: var(--gutter); bottom: var(--sp-4);
  z-index: var(--z-modal);
  max-width: 44rem;
  margin-inline: auto;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  transform: translateY(140%);
  transition: transform var(--d-slow) var(--e-out);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar p { font-size: var(--t-sm); color: var(--fg-muted); flex: 1 1 18rem; }
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .row { flex: none; }

/* ═══════════════════════════════════════════════ PÁGINAS LEGALES ════════ */
.legal { max-width: var(--wrap-text); }
.legal h1 { margin-bottom: var(--sp-3); }
.legal h2 { font-size: 1.32rem; margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal h3 { font-size: 1.08rem; margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal p, .legal li { color: var(--fg-muted); }
.legal p + p { margin-top: var(--sp-3); }
.legal ul, .legal ol { margin: var(--sp-3) 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: var(--sp-2); }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal .meta { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--fg-subtle);
  letter-spacing: .08em; margin-bottom: var(--sp-6); }
.legal .pendiente {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--wait) 16%, transparent);
  border: 1px dashed color-mix(in srgb, var(--wait) 55%, transparent);
  color: var(--wait); font-family: var(--font-mono); font-size: var(--t-mono);
}
.legal .nota { padding: var(--sp-4); border-radius: var(--r-md); margin-block: var(--sp-5);
  border: 1px solid color-mix(in srgb, var(--wait) 40%, transparent);
  background: color-mix(in srgb, var(--wait) 8%, transparent); font-size: var(--t-sm); }
.legal table { width: 100%; border-collapse: collapse; margin-block: var(--sp-4); font-size: var(--t-sm); }
.legal th, .legal td { padding: var(--sp-3); text-align: left; border-bottom: 1px solid var(--glass-border); }
.legal th { color: var(--fg-strong); font-weight: 600; }
.legal td { color: var(--fg-muted); }

/* Cualquier tabla ancha hace scroll DENTRO de su caja, nunca el body */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ══════════════════════════════════════════════════════════════════════════
   BANNER DE CONSENTIMIENTO (AEPD 2026)
   La regla que más sanciones genera: si «Aceptar todo» está en la primera
   capa, «Rechazar todo» tiene que estar en la MISMA capa y con el MISMO peso.
   Aquí los dos botones son idénticos en tamaño y área; el primario solo se
   distingue por color, que es lo que permite la guía. Rechazar cuesta un clic.
   ══════════════════════════════════════════════════════════════════════════ */
.cookie-bar {
  display: block;
  max-width: 46rem;
  padding: var(--sp-5);
}
.cookie-txt h2 {
  font-size: 1.02rem;
  margin-bottom: .4rem;
}
.cookie-txt p { font-size: var(--t-sm); color: var(--fg-muted); }
.cookie-txt a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cookie-acciones {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
/* Los tres botones ocupan lo mismo: ninguno se esconde ni se empequeñece */
.cookie-acciones .btn { width: 100%; padding-inline: 1rem; }

/* [14-sep-2026] En móvil el banner medía 359 px (media pantalla) con los botones en
   2 + 1. Compacto: los tres en UNA fila de columnas iguales —mismo ancho, mismo alto,
   mismo peso, como pide la AEPD—; si un texto no cabe se parte en dos líneas dentro
   del botón y la fila entera crece a la par: nunca se encoge uno solo. */
@media (max-width: 600px) {
  .cookie-bar {
    left: var(--sp-2); right: var(--sp-2);
    bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
    padding: var(--sp-4);
  }
  .cookie-txt h2 { font-size: .95rem; margin-bottom: .2rem; }
  .cookie-txt p { font-size: var(--t-xs); line-height: 1.45; }
  .cookie-acciones { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-3); }
  .cookie-acciones .btn {
    min-height: 44px;
    padding: .55rem .25rem;
    font-size: .875rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
}

.cookie-detalle {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.cookie-fila {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--fg-muted);
  cursor: pointer;
}
.cookie-fila input {
  width: 18px; height: 18px;
  margin-top: .1em;
  flex: none;
  accent-color: var(--primary);
}
.cookie-fila input:disabled { opacity: .5; cursor: not-allowed; }
.cookie-fila b { color: var(--fg-strong); }

/* ══════════════════════════════════════════════════════════════════════════
   CAPA DE LECTURA — piezas que existen porque cambian cómo se LEE la página,
   no cómo se ve. Cada una responde a un problema concreto:

   · .migas      — ruta visible + BreadcrumbList. Google pinta la ruta en el
                   resultado en lugar de la URL cruda.
   · .respuesta  — la respuesta directa a la intención de búsqueda, arriba del
                   todo. Es lo que un buscador usa de fragmento y lo que un
                   modelo de lenguaje cita.
   · .tldr       — «En resumen»: 3-5 puntos escaneables. Mucha gente no pasa
                   del primer scroll; esto es lo que se lleva.
   · .cta-inline — llamada a la acción tras el primer párrafo, no al final.
   · .cta-movil  — barra fija en móvil: en pantalla pequeña el botón del héroe
                   desaparece a dos dedos de scroll y ya no vuelve.
   · .compartir  — Web Share API nativa con respaldo de enlaces normales.
   · .tabla-dv   — tabla de datos genérica (la comparativa ya tiene la suya).
   · .cluster    — enlaces al resto del grupo temático: el interlinkeado que
                   reparte autoridad entre la página pilar y sus satélites.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── MIGAS DE PAN ─────────────────────────────────────────────────────────── */
.migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: .06em;
  color: var(--fg-subtle);
}
.migas ol { display: contents; list-style: none; }
.migas li { display: flex; align-items: center; gap: .45rem; }
.migas a { color: var(--fg-muted); text-decoration: none; }
.migas a:hover { color: var(--accent); }
/* [14-sep-2026] Área táctil de 44 px sin mover nada: el margen negativo devuelve lo
   que añade el alto mínimo, así la línea de migas mide lo mismo que antes. */
@media (max-width: 600px) {
  .migas a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
}
.migas li + li::before { content: "/"; color: var(--fg-subtle); opacity: .55; }
.migas [aria-current="page"] { color: var(--fg); }

/* ── RESPUESTA DIRECTA A LA INTENCIÓN DE BÚSQUEDA ─────────────────────────
   Va inmediatamente debajo del H1. Un párrafo, sin rodeos, que contesta
   literalmente lo que se ha buscado. Si alguien lee solo esto ya tiene la
   respuesta; el resto de la página es la demostración.                     */
.respuesta {
  max-width: var(--wrap-text);
  margin-block: var(--sp-5);
  padding-left: var(--sp-5);
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--primary-hi), var(--accent)) 1;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--fg);
}
.respuesta strong { color: var(--fg-strong); }

/* ── EN RESUMEN (TL;DR / key takeaways) ───────────────────────────────────── */
.tldr {
  max-width: 62rem;
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
  border-radius: var(--r-lg);
}
.tldr-cab { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--sp-4); }
.tldr-cab .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.tldr-cab h2,
.tldr-cab h3 {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.tldr ul { list-style: none; display: grid; gap: var(--sp-3); }
.tldr li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--fg-muted);
}
.tldr li .ic { width: 17px; height: 17px; flex: none; margin-top: .28em; color: var(--ok); }
.tldr li b,
.tldr li strong { color: var(--fg-strong); font-weight: 600; }

/* ── CTA DESPUÉS DEL PRIMER PÁRRAFO ───────────────────────────────────────
   Deliberadamente discreto: si compite con el héroe, canibaliza el clic
   bueno. Es un empujón para quien ya ha leído lo suficiente.               */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  max-width: 62rem;
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--grad-brand-soft);
}
.cta-inline p { flex: 1 1 18rem; margin: 0; font-size: var(--t-sm); color: var(--fg); }
.cta-inline p b { color: var(--fg-strong); }
.cta-inline .btn { flex: none; }

/* ── BARRA FIJA DE ACCIÓN EN MÓVIL ────────────────────────────────────────
   Solo aparece cuando el CTA del héroe ya no está a la vista: lo marca
   app.js poniendo `is-visible`. Una barra tapando contenido antes de que
   hayas leído nada es publicidad, no ayuda. El alto se reserva con
   `padding-bottom` en el body para que no tape el pie.                     */
.cta-movil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: .7rem var(--gutter);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  transform: translateY(110%);
  transition: transform var(--d-base) var(--e-out);
}
.cta-movil.is-visible { transform: translateY(0); }
.cta-movil-txt { flex: 1 1 auto; min-width: 0; }
.cta-movil-txt b { display: block; font-size: var(--t-sm); color: var(--fg-strong); line-height: 1.25; }
.cta-movil-txt span {
  display: block;
  font-size: var(--t-xs);
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-movil .btn { flex: none; padding-inline: var(--sp-5); }

@media (max-width: 860px) {
  .cta-movil { display: flex; }
  body.con-cta-movil { padding-bottom: 4.6rem; }
}

/* ── COMPARTIR ────────────────────────────────────────────────────────────
   Sin SDK de nadie: `navigator.share` donde exista (móvil) y, donde no,
   enlaces normales que funcionan hasta sin JavaScript. Cero terceros, que es
   coherente con no cargar ni una fuente de fuera.                          */
.compartir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-block: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--glass-border);
}
.compartir-lbl {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: var(--sp-2);
}
.compartir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  padding: .4rem .9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  color: var(--fg-muted);
  font-size: var(--t-xs);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out),
              background var(--d-fast) var(--e-out);
}
.compartir-btn:hover {
  color: var(--fg-strong);
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hover);
}
.compartir-btn .ic { width: 16px; height: 16px; }
.compartir-btn.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

/* Con Web Share API nativa sobra la lista de redes: app.js pone
   `.share-nativo` y deja un único botón «Compartir». */
.compartir.share-nativo .compartir-red { display: none; }
.compartir:not(.share-nativo) .compartir-nativo { display: none; }

/* ── TABLA DE DATOS GENÉRICA ──────────────────────────────────────────────
   Una tabla se indexa y se cita mucho mejor que un párrafo con los mismos
   datos: se extrae una fila entera sin ambigüedad.                         */
.tabla-dv { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 34rem;
  /* Estándar §6: cifras tabulares — en la tabla de planes de precios los
     números quedan alineados en columna y comparables de un vistazo. */
  font-variant-numeric: tabular-nums; }
.tabla-dv caption {
  text-align: left;
  padding-bottom: var(--sp-3);
  font-size: var(--t-xs);
  color: var(--fg-subtle);
}
.tabla-dv th,
.tabla-dv td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}
.tabla-dv thead th {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
  white-space: nowrap;
}
.tabla-dv tbody th { font-weight: 500; color: var(--fg-strong); }
.tabla-dv td { color: var(--fg-muted); }
.tabla-dv td b, .tabla-dv td strong { color: var(--fg-strong); }
.tabla-dv .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.tabla-dv tbody tr:hover { background: var(--glass-bg); }
.tabla-dv tfoot th, .tabla-dv tfoot td {
  border-top: 1px solid var(--glass-border-hi);
  border-bottom: 0;
  color: var(--fg-strong);
  font-weight: 600;
}

/* ── CLUSTER: enlaces al resto del grupo temático ─────────────────────────── */
.cluster {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: var(--sp-5);
}
.cluster-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  text-decoration: none;
  transition: border-color var(--d-fast) var(--e-out),
              background var(--d-fast) var(--e-out),
              transform var(--d-fast) var(--e-out);
}
.cluster-item:hover {
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}
.cluster-item b { display: flex; align-items: center; gap: .5rem; color: var(--fg-strong); font-size: var(--t-sm); }
.cluster-item b .ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.cluster-item span { font-size: var(--t-xs); color: var(--fg-muted); line-height: 1.5; }

/* ── CAMPO TRAMPA (honeypot) ──────────────────────────────────────────────
   Un campo que ningún humano ve ni rellena, pero que un robot que rellena
   formularios a ciegas sí. Se saca de pantalla en vez de usar display:none
   porque los robots más espabilados descartan lo que está `display:none`
   en línea; lo que está «visualmente oculto» por clase se lo tragan.      */
.campo-trampa {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* El input de dentro no puede desbordar la caja de 1px: aunque el overflow ya
   lo recorta visualmente, ocupar sitio de verdad provoca scroll fantasma. */
.campo-trampa input,
.campo-trampa label { display: block; width: 1px; height: 1px; padding: 0; border: 0; min-height: 0; }

/* ── VOLVER ARRIBA ────────────────────────────────────────────────────────
   Botón flotante que crea assets/js/motion/progreso.js cuando llevas más de
   dos pantallas bajadas. Sin JS no existe: no hay que esconder nada.       */
.volver-arriba {
  position: fixed;
  right: var(--sp-4);
  /* Por encima de la barra CTA de móvil, que ocupa el borde inferior */
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-nav);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;          /* mínimo táctil cómodo */
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  color: var(--fg-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--d-base) var(--e-out),
              transform var(--d-base) var(--e-out),
              color var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out);
}
.volver-arriba.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.volver-arriba:hover { color: var(--fg-strong); border-color: var(--accent); }
@media (max-width: 860px) {
  /* La barra CTA fija de móvil vive abajo del todo: el botón sube un piso */
  .volver-arriba { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
}
/* [14-sep-2026] En un móvil, con la barra de acción a la vista, «volver arriba» era un
   tercer flotante tapando texto: se aparta mientras la barra está (app.js marca
   <html class="cta-movil-visible">) y vuelve cuando se va. */
@media (max-width: 600px) {
  html.cta-movil-visible .volver-arriba { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ── SELLOS DE CONFIANZA ──────────────────────────────────────────────────
   Solo afirmaciones comprobables, en texto: nada de insignias inventadas.  */
.confianza {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
  padding: var(--sp-4) 0 0;
  border-top: 1px solid var(--glass-border);
  list-style: none;
  font-size: var(--t-xs);
  color: var(--fg-subtle);
}
.confianza li { display: inline-flex; align-items: center; gap: .45rem; }
.confianza .ic { width: 15px; height: 15px; color: var(--accent); flex: none; }
.confianza a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.confianza a:hover { color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  .cluster-item:hover { transform: none; }
  .cta-movil { transition: none; }
  .volver-arriba { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SALIDA — diálogo de intención de salida (solo escritorio, 1 vez/sesión)
   Mismo principio que el banner de cookies: la acción de cerrar («Ahora no»)
   pesa visualmente IGUAL que la principal — mismo ancho, mismo alto, mismo
   nivel de contraste (`.btn-ghost` ya cumple AA sobre `--bg`, no es un enlace
   gris apagado). Nada de cuenta atrás ni urgencia falsa: solo el análisis
   gratuito real que ya existe en /webs.html#analiza. */
.salida-capa {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: salida-velo var(--d-base) var(--e-out);
}
.salida-caja {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: var(--sp-6);
  animation: salida-entra var(--d-slow) var(--e-out);
}
.salida-caja h2 { font-size: 1.28rem; margin-bottom: var(--sp-2); padding-right: var(--sp-6); }
.salida-caja p { color: var(--fg-muted); font-size: var(--t-sm); }

.salida-x {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.salida-x:hover, .salida-x:focus-visible { color: var(--fg-strong); border-color: var(--glass-border-hi); }
.salida-x .ic { width: 18px; height: 18px; }

.salida-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
/* Los dos botones ocupan lo mismo — ninguno se esconde ni se empequeñece,
   igual que en `.cookie-acciones` (guía AEPD de peso visual equivalente). */
.salida-acciones .btn { width: 100%; padding-inline: 1rem; text-align: center; }

@keyframes salida-velo  { from { opacity: 0; } to { opacity: 1; } }
@keyframes salida-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .salida-acciones { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .salida-capa, .salida-caja { animation: none; }
  .salida-x { transition: none; }
}

/* ═══════════════════════════════════════════════ CONTACTO DIRECTO ═══════
   [13-sep-2026 · Raúl] WhatsApp FIJO abajo a la izquierda, en todas las
   páginas y todo el rato (a la derecha vive «volver arriba»), y teléfono +
   redes a un clic al pie. Los crea app.js (contactoDirecto); `--wa-extra`
   lo pone él cuando la barra de cookies o la del móvil ocuparían su sitio.
   2.ª vuelta (mismo día): «con solo el logo ya se entiende» — el botón es un
   círculo con el logo (56 px, por encima del mínimo táctil) que late tres
   veces al llegar para que se vea, y el pie va solo con iconos.            */
.wa-fijo {
  position: fixed;
  left: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px) + var(--wa-extra, 0px));
  z-index: var(--z-nav);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .6), 0 2px 10px rgba(0, 0, 0, .28);
  transition: bottom var(--d-base) var(--e-out),
              transform var(--d-fast) var(--e-out),
              box-shadow var(--d-fast) var(--e-out);
  animation: wa-latido 2.2s ease-out 1.2s 3;
}
.wa-fijo svg { width: 30px; height: 30px; }
.wa-fijo:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px -8px rgba(37, 211, 102, .75), 0 3px 12px rgba(0, 0, 0, .3);
}
.wa-fijo:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes wa-latido {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 10px 28px -8px rgba(37, 211, 102, .6), 0 2px 10px rgba(0, 0, 0, .28); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 28px -8px rgba(37, 211, 102, .6), 0 2px 10px rgba(0, 0, 0, .28); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 28px -8px rgba(37, 211, 102, .6), 0 2px 10px rgba(0, 0, 0, .28); }
}
@media (max-width: 380px) {
  .wa-fijo { width: 52px; height: 52px; }
  .wa-fijo svg { width: 28px; height: 28px; }
}

.contacto-redes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--glass-border);
}
.contacto-redes-titulo { margin: 0; color: var(--fg-muted); }
.contacto-redes-titulo b { color: var(--fg-strong); }
.contacto-redes ul { display: flex; flex-wrap: wrap; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.contacto-redes li a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border-hi);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  color: var(--fg-strong);
  transition: color var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out),
              transform var(--d-fast) var(--e-out);
}
.contacto-redes li a svg { width: 20px; height: 20px; }
.contacto-redes li a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
/* Al pasar por encima, cada red con su color de marca (TikTok se queda con el acento). */
.contacto-redes li a[data-dv-cta="contacto-whatsapp"]:hover { color: #25D366; border-color: #25D366; }
.contacto-redes li a[data-dv-cta="contacto-instagram"]:hover { color: #E4405F; border-color: #E4405F; }
.contacto-redes li a[data-dv-cta="contacto-facebook"]:hover { color: #1877F2; border-color: #1877F2; }
.contacto-redes li a[data-dv-cta="contacto-youtube"]:hover { color: #FF0033; border-color: #FF0033; }
.contacto-redes li a[data-dv-cta="contacto-linkedin"]:hover { color: #0A66C2; border-color: #0A66C2; }
.contacto-redes li a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .wa-fijo, .contacto-redes li a { transition: none; }
  .wa-fijo { animation: none; }
  .wa-fijo:hover, .contacto-redes li a:hover { transform: none; }
}
@media print {
  .wa-fijo { display: none; }
}

/* ═══════════════════════════════════════════════ ESQUEMAS EN MÓVIL ══════
   [14-sep-2026] Los esquemas SVG de la portada miden 680 px como mínimo (estilo en
   línea de index.html, que no se toca) y en un móvil se deslizan en horizontal.
   Encogerlos al ancho dejaba la letra en 6-8 px, así que se mantiene el deslizamiento
   pero se hace EVIDENTE: aviso «Desliza →» y un borde derecho que se desvanece (lo
   que queda fuera, p. ej. el −10 % / −15 % del descuento, está ahí). Al llegar al
   final el desvanecido se retira donde el navegador sabe animar con el scroll. */
@property --esq-fundido { syntax: '<length>'; inherits: false; initial-value: 0px; }
@media (max-width: 600px) {
  .esquema-caja {
    --esq-fundido: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--esq-fundido)), rgba(0, 0, 0, .15));
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--esq-fundido)), rgba(0, 0, 0, .15));
  }
  .esquema-caja::before {
    content: "Desliza \2192";
    content: "Desliza \2192" / "";   /* decorativo: el SVG ya tiene su aria-label */
    display: block;
    margin-bottom: var(--sp-2);
    padding-right: 2.75rem;          /* fuera de la zona que se desvanece */
    text-align: right;
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  @supports (animation-timeline: scroll()) {
    .esquema-caja { animation: esquema-al-final linear both; animation-timeline: scroll(self inline); }
  }
}
@keyframes esquema-al-final { 0%, 85% { --esq-fundido: 2.5rem; } 100% { --esq-fundido: 0px; } }
