/* Calculadora WhatsApp + IA · Innova Spot AI
   Colores de innovaspotai.com · Tipografía y animaciones de innovaspotai.com/landing/ */

/* Fuentes alojadas en el propio servidor (sin peticiones a Google).
   Desde 2026-10-03, las mismas de todo el sitio: Montserrat (títulos) y Outfit
   (textos), en /wp-content/uploads/fonts/ (mismo origen: la CSP lo permite). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/montserrat-v1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/outfit-v1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Marca */
  --primary: #1dd1a1;
  --primary-hover: #10ac84;
  --cyan: #48dbfb;
  --amber: #feca57;

  /* Superficies y texto */
  --bg: #0a1628;
  --surface: #0f1d33;
  --surface-2: #1a2942;
  --line: #243759;
  --line-strong: #33496f;
  --text: #f0f4ff;
  --muted: #a8b2c1;
  --faint: #7d8aa0;
  --on-primary: #05241b;
  --on-amber: #2a1e00;

  /* Segmentos del medidor */
  --seg-ads: var(--cyan);
  --seg-free: #2c7a68;
  --seg-paid: var(--amber);

  /* Degradados y movimiento (mismo sistema que la landing) */
  --cta-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --header-gradient: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  --title-shimmer: linear-gradient(100deg, #ffffff 20%, var(--cyan) 40%, var(--primary) 50%, #ffffff 60%, var(--muted) 80%);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tipografía */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.3125rem;
  --fs-xl: 1.75rem;

  --radius: 20px;
  --radius-sm: 12px;
  --pill: 50px;
  --gutter: 16px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) {
  :root { --gutter: 30px; }
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 2000;
  padding: 14px 22px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 20px; }

/* ---------- Animaciones (copiadas de la landing) ---------- */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes breathe-glow {
  0%, 100% { box-shadow: 0 10px 35px rgba(29, 209, 161, 0.35); }
  50%      { box-shadow: 0 10px 45px rgba(29, 209, 161, 0.6); }
}
@keyframes idle-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* Brillo animado sobre los títulos grandes */
.hero h1,
.section-head h2,
.report h2 {
  color: var(--text);
  background: var(--title-shimmer);
  background-size: 250% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s var(--ease-premium) infinite;
}

/* Aparición al hacer scroll (solo si hay JS y movimiento permitido) */
.js-reveal .reveal {
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
}
.js-reveal .stagger > * {
  transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium),
    border-color 0.4s ease, box-shadow 0.4s ease;
}
.js-reveal .stagger > :not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- Modo incrustado (iframe) ---------- */
.is-embed [data-embed-hide] { display: none !important; }
.is-embed .calc { padding-top: 8px; }
.is-embed .mobilebar { display: none !important; }
.is-embed .results { top: 16px; }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(72, 219, 251, 0.1);
  transition: box-shadow 0.3s ease;
}
.topbar.is-scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}
.brand:hover { color: var(--text); opacity: 0.85; }
.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-premium);
}
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.cta-header {
  padding: 12px 28px;
  background: var(--header-gradient);
  color: var(--on-primary);
  text-decoration: none;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 209, 161, 0.35);
}
.cta-header:hover {
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 209, 161, 0.55);
}
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .brand { font-size: 18px; }
  .brand__logo { width: 34px; height: 34px; }
  .cta-header { padding: 10px 18px; font-size: 13px; }
}
@media (max-width: 360px) {
  .brand__name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 40px;
  background: radial-gradient(ellipse at top, rgba(72, 219, 251, 0.13) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 18px;
  background: rgba(254, 202, 87, 0.12);
  border: 1px solid rgba(254, 202, 87, 0.3);
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffe2a0;
}
.badge-live::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  text-wrap: balance;
}
.lede {
  margin: 24px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 20px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.fact { padding: 20px 20px 0 0; }
.fact + .fact {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.fact dt {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  animation: idle-bob 4.5s ease-in-out infinite;
}
.fact:nth-child(2) dt { animation-delay: -0.9s; }
.fact:nth-child(3) dt { animation-delay: -1.8s; }
.fact:first-child dt { color: var(--primary); }
.fact dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 34ch;
}
@media (max-width: 768px) {
  .hero { padding-block: 44px 28px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: var(--fs-md); }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
}

/* ---------- Layout de la calculadora ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 8px 56px;
}
@media (max-width: 920px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Entradas ---------- */
.inputs {
  display: grid;
  gap: 0;
  padding: 8px 28px;
}
@media (max-width: 480px) {
  .inputs { padding: 4px 16px; }
}

.group {
  margin: 0;
  padding: 22px 0 26px;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 20px;
}
.group + .group { border-top: 1px solid var(--line); }

.group__title {
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
fieldset.group > legend.group__title {
  float: left;
  width: 100%;
  margin-bottom: 0;
}
fieldset.group > legend + * { clear: both; }

.field { display: grid; gap: 8px; min-width: 0; }
.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field label,
.field__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
}
.field__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.help {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
.help strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.help__rate { display: block; margin-top: 4px; }

input[type="number"],
select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: border-color 0.2s ease;
}
input[type="number"] {
  width: 8.5rem;
  max-width: 50%;
  padding: 8px 12px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
select {
  width: 100%;
  padding: 10px 40px 10px 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option, select optgroup { background: var(--surface-2); color: var(--text); }
input[type="number"]:hover, select:hover { border-color: var(--faint); }

/* Deslizadores */
input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  --fill: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--primary) var(--fill), var(--line-strong) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--primary);
  cursor: pointer;
  transition: transform 0.3s var(--ease-premium);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--primary);
  cursor: pointer;
}
input[type="range"]:focus-visible { outline-offset: 4px; }

/* Ejemplos */
.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.presets__label { font-size: var(--fs-xs); color: var(--muted); margin-right: 2px; }
.chip {
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 7px 14px;
  min-height: 36px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.chip:hover { border-color: var(--primary); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Radios ocultos accesibles */
.segmented input,
.tiers input,
.profiles input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
}
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.segmented label:hover { color: var(--text); }
.segmented input:checked + label { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--primary); }
.segmented input:focus-visible + label,
.tiers input:focus-visible + label,
.profiles input:focus-visible + label {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}
.tier,
.profile {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}
.tier:hover,
.profile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(29, 209, 161, 0.16);
}
.tier {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 12px 14px;
}
.tier__kind {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.tier__cost { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.tiers input:checked + .tier,
.profiles input:checked + .profile {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(29, 209, 161, 0.15) 0%, rgba(72, 219, 251, 0.08) 100%);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.tiers input:checked + .tier .tier__kind { color: var(--primary); }

.profiles { display: grid; gap: 10px; }
.profile {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
}
.profile__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.profile__desc { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 480px) {
  .profile { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Plantillas (opcional) */
.group--optional { display: block; }
.group--optional > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.group--optional > summary::-webkit-details-marker { display: none; }
.group--optional > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease-premium);
}
.group--optional[open] > summary::before { transform: rotate(45deg); }
.group--optional[open] > summary { margin-bottom: 12px; }
.group--optional > .help { margin-bottom: 16px; }
.group--optional .field + .field { margin-top: 16px; }
.optional {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 2px 8px;
}

/* ---------- Resultados ---------- */
.results {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface-2);
  border-color: var(--line-strong);
}
@media (max-width: 920px) {
  .results { position: static; }
}
@media (max-width: 480px) {
  .results { padding: 22px 16px; }
}
.results__title {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.total {
  margin: -8px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.total__unit { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.per-conv { margin: -12px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.per-conv strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.lines { margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-strong);
}
.line dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); min-width: 0; }
.line dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.line--meta .swatch { background: var(--cyan); }
.line--ai .swatch { background: var(--primary); }

.meter { display: grid; gap: 10px; }
.meter__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter__bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.seg { display: block; height: 100%; width: 0; transition: width 0.6s var(--ease-premium); }
.seg--ads { background: var(--seg-ads); }
.seg--free { background: var(--seg-free); }
.seg--paid { background: var(--seg-paid); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot--ads { background: var(--seg-ads); }
.dot--free { background: var(--seg-free); }
.dot--paid { background: var(--seg-paid); }

.delta {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.delta strong { color: var(--text); font-weight: 600; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  background: var(--bg);
}
.alert__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.alert__body { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.alert[data-level="warn"] { border-color: rgba(254, 202, 87, 0.45); border-left-color: var(--amber); background: rgba(254, 202, 87, 0.06); }
.alert[data-level="warn"] .alert__title { color: var(--amber); }
.alert[data-level="ok"] { border-color: rgba(29, 209, 161, 0.4); border-left-color: var(--primary); background: rgba(29, 209, 161, 0.06); }
.alert[data-level="ok"] .alert__title { color: var(--primary); }

/* Botón principal: gradiente, brillo que "respira" y flecha (estilo landing) */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: var(--pill);
  background: var(--cta-gradient);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(29, 209, 161, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: breathe-glow 3.2s ease-in-out infinite;
}
.cta svg { width: 22px; height: 22px; flex: none; }
.cta::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s var(--ease-premium);
}
.cta:hover {
  color: var(--on-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 45px rgba(29, 209, 161, 0.55);
  animation-play-state: paused;
}
.cta:hover::after { transform: translateX(5px); }
@media (max-width: 480px) {
  .cta { font-size: 17px; padding: 16px 20px; }
}
.privacy { margin: -6px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--faint); }

/* ---------- Secciones ---------- */
.compare, .explain { padding-block: 40px 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); font-size: var(--fs-md); max-width: 65ch; }
@media (max-width: 768px) {
  .section-head h2 { font-size: 36px; }
  .compare, .explain { padding-block: 28px 48px; }
}
@media (max-width: 480px) {
  .section-head h2 { font-size: 30px; }
}

/* ---------- Comparativa ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.3s ease; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.is-provider td {
  padding-top: 18px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 0;
}
.table tr.is-selected td { background: rgba(29, 209, 161, 0.1); }
.table tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--primary); }
.table tr.is-reference td { color: var(--muted); }
.model-btn {
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}
.model-btn:hover { color: var(--primary); text-decoration-color: var(--primary); }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  background: var(--primary);
  color: var(--on-primary);
}
.footnote { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); max-width: 90ch; }

/* ---------- Explicación ---------- */
.explain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 820px) {
  .explain__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.point {
  padding: 28px;
  background: linear-gradient(135deg, rgba(29, 209, 161, 0.12) 0%, rgba(72, 219, 251, 0.07) 100%);
  border: 2px solid rgba(29, 209, 161, 0.28);
  border-radius: var(--radius);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.6s var(--ease-premium);
}
.point:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(29, 209, 161, 0.22);
}
.point h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.point p { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.7; }

.warning {
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: var(--radius-sm);
  background: rgba(254, 202, 87, 0.1);
  border-left: 4px solid var(--amber);
}
.warning h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--amber); line-height: 1.3; }
.warning p { margin: 0; font-size: var(--fs-md); color: var(--text); max-width: 80ch; line-height: 1.7; }
.warning strong { color: var(--amber); font-weight: 600; }

.method {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  background: var(--surface);
}
.method summary {
  cursor: pointer;
  padding-block: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}
.method ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: var(--fs-sm); }
.method strong { color: var(--text); font-weight: 600; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px 100px; }
@media (min-width: 921px) { .footer { padding-block-end: 36px; } }
.footer__inner { display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--faint); }
.footer p { margin: 0; max-width: 100ch; }

.noscript { padding-block: 16px; color: var(--amber); font-weight: 600; }

/* ---------- Barra móvil ---------- */
.mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 41, 66, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-premium);
}
.mobilebar.is-hidden { transform: translateY(110%); }
.mobilebar__inner { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin-inline: auto; }
.mobilebar__label { font-size: var(--fs-xs); color: var(--muted); }
.mobilebar__total { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.mobilebar__link {
  margin-left: auto;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--primary);
  text-decoration: none;
}
@media (min-width: 921px) { .mobilebar { display: none; } }

/* Movimiento reducido (igual que la landing) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Informe por email ---------- */
.report-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.3s var(--ease-premium);
}
.report-link:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }

.report { padding-block: 0 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.report__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 36px;
  background: linear-gradient(135deg, rgba(29, 209, 161, 0.08), rgba(72, 219, 251, 0.05)), var(--surface);
  border-color: rgba(29, 209, 161, 0.35);
}
@media (max-width: 820px) {
  .report__panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px; }
}
.report__eyebrow {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.report h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-wrap: balance;
}
.report__savings { margin: 14px 0 0; font-size: var(--fs-md); color: var(--muted); line-height: 1.55; }
.report__savings strong { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report__list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.report__list li { position: relative; padding-left: 30px; font-size: var(--fs-sm); line-height: 1.5; }
.report__list li::before {
  /* Check con el degradado animado del sitio (antes: "✓", 2026-10-03) */
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: linear-gradient(100deg, #ffffff 20%, #06b6d4 40%, #3b82f6 50%, #ffffff 60%, #94a3b8 80%);
  background-size: 250% auto;
  animation: isiBrillo 8s ease-in-out infinite;
  -webkit-mask: url("iconos/circle-check.svg") center / contain no-repeat;
  mask: url("iconos/circle-check.svg") center / contain no-repeat;
}

.report__form { display: grid; gap: 16px; }
.report__form input[type="text"],
.report__form input[type="email"],
.report__form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}
.report__form input::placeholder { color: var(--faint); }
.report__form input:hover { border-color: var(--faint); }
.report__form input:focus { border-color: var(--primary); }
.report__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report__error {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(254, 202, 87, 0.45);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  background: rgba(254, 202, 87, 0.06);
  color: var(--amber);
  font-size: var(--fs-xs);
}
.report__submit { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
.report__submit:disabled { opacity: 0.7; cursor: wait; animation: none; transform: none; }
.report__form .privacy { margin: 0; }
.report__done {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(29, 209, 161, 0.4);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: rgba(29, 209, 161, 0.06);
}
.report__done:focus { outline: none; }
.report__done-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--primary); }
.report__done-body { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.report__done-body strong { color: var(--text); overflow-wrap: anywhere; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.report__form .privacy a { color: var(--muted); }
.report__form .privacy a:hover { color: var(--text); }

/* Pedir otro informe y ventana de aviso */
.report-again {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.report-again:hover { color: var(--cyan); }

.notice {
  width: min(440px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border: 1px solid rgba(29, 209, 161, 0.4);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.notice[open] { animation: notice-in 0.35s var(--ease-premium); }
.notice::backdrop { background: rgba(5, 12, 24, 0.72); backdrop-filter: blur(4px); }
@keyframes notice-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.notice__icon { margin: 0; font-size: 40px; line-height: 1; }
.notice__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  background: var(--header-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.notice__body { margin: 10px 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.notice__btn { width: 100%; margin-top: 20px; border: 0; font-family: inherit; cursor: pointer; animation: none; }
.notice__btn::after { content: none; }

/* ── Íconos con degradado animado (reemplazan a los emojis, 2026-10-03) ──
   Lucide (ISC) como máscara sobre el degradado del título. 1em = tamaño de letra
   del contenedor. Generado con herramientas-iconos/iconos.py. */
.isi-ico {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  background: linear-gradient(100deg, #ffffff 20%, #06b6d4 40%, #3b82f6 50%, #ffffff 60%, #94a3b8 80%);
  background-size: 250% auto;
  background-position: 0% 50%;
  animation: isiBrillo 8s ease-in-out infinite;
  -webkit-mask: var(--isi-m) center / contain no-repeat;
  mask: var(--isi-m) center / contain no-repeat;
}
.isi-ico--blanco { background: #ffffff; animation: none; }
@keyframes isiBrillo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .isi-ico { animation: none; } }

.isi-ico--hourglass { --isi-m: url("iconos/hourglass.svg"); }
.isi-ico--mail { --isi-m: url("iconos/mail.svg"); }
