/* ==========================================================================
   Activa21 — Sistema de diseño
   Autor: build inicial. Sin dependencias, sin peticiones a terceros.
   Orden: tokens → base → tipografía → layout → componentes → páginas → PWA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuente autoalojada (variable, 300–900). 47 KB total, cero terceros.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.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 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #0a0d16;
  --ink-800: #111624;
  --ink-700: #1b2133;
  --ink-600: #2a3247;
  --paper: #fbf9f5;
  --paper-2: #f2eee6;
  --white: #ffffff;

  --lime: #c9f24d;
  --lime-600: #a9d92f;
  --coral: #ff6b3d;
  --violet: #7b5cff;
  --sky: #58d6ff;

  --text: #12172a;
  --text-soft: #4c556b;
  --text-mute: #737d93;
  --text-on-dark: #f6f8fb;
  --text-on-dark-soft: #a9b3c8;

  --line: rgba(18, 23, 42, 0.1);
  --line-strong: rgba(18, 23, 42, 0.18);
  --line-dark: rgba(255, 255, 255, 0.12);

  --ok: #16a34a;
  --warn: #b45309;

  /* Gradientes reutilizables */
  --grad-hot: linear-gradient(120deg, var(--coral) 0%, #ff9a3d 45%, var(--lime) 100%);
  --grad-cool: linear-gradient(120deg, var(--violet) 0%, #4aa8ff 55%, var(--sky) 100%);
  --grad-ink: linear-gradient(160deg, #0a0d16 0%, #131a2c 45%, #1d1633 100%);

  /* Forma y sombra */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(10, 13, 22, 0.06), 0 6px 18px rgba(10, 13, 22, 0.06);
  --sh-2: 0 12px 32px rgba(10, 13, 22, 0.1);
  --sh-3: 0 26px 60px rgba(10, 13, 22, 0.18);
  --sh-glow: 0 18px 44px rgba(201, 242, 77, 0.28);

  /* Medidas */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);
  --section-y: clamp(3.6rem, 9vw, 7rem);
  --header-h: 68px;

  /* Tipografía fluida */
  --fs-display: clamp(2.55rem, 7.4vw, 5.2rem);
  --fs-h1: clamp(2.1rem, 5.6vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.9vw, 2.6rem);
  --fs-h3: clamp(1.16rem, 2.1vw, 1.5rem);
  --fs-lead: clamp(1.02rem, 1.7vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.79rem;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. Tipografía
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.24;
  letter-spacing: -0.012em;
}
p {
  margin: 0 0 1.05rem;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 650;
}
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  line-height: 1.6;
}
.on-dark .lead,
.on-dark p {
  color: var(--text-on-dark-soft);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.on-dark .eyebrow {
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.no-rule::before {
  display: none;
}
.mark {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mark-flat {
  color: var(--coral);
}
.small {
  font-size: var(--fs-sm);
}
.mute {
  color: var(--text-mute);
}
.center {
  text-align: center;
}
.balance {
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - (var(--gutter) * 2), 760px);
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section-tight {
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.on-dark {
  background: var(--grad-ink);
  color: var(--text-on-dark);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--text-on-dark);
}
.on-paper-2 {
  background: var(--paper-2);
}
.stack > * + * {
  margin-top: 1rem;
}
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.g-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g-auto {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.split {
  display: grid;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head.center {
  margin-inline: auto;
}
.section-head h2 {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
  box-shadow: var(--sh-1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: 1.06rem;
}
.btn-sm {
  padding: 0.62rem 1.05rem;
  font-size: 0.87rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  --btn-bg: var(--lime);
  --btn-fg: #10160a;
  box-shadow: var(--sh-glow);
}
.btn-primary:hover {
  --btn-bg: #d7ff5f;
}
.btn-coral {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  box-shadow: 0 16px 40px rgba(255, 107, 61, 0.32);
}
.btn-dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(18, 23, 42, 0.05);
}
.on-dark .btn-ghost {
  --btn-fg: var(--text-on-dark);
  border-color: var(--line-dark);
}
.on-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-white {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
/* Destello al pasar el ratón */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::after {
  left: 120%;
}
.btn-primary::after {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 620;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover {
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   7. Etiquetas y píldoras
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.36rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 620;
  background: rgba(18, 23, 42, 0.06);
  color: var(--text-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-lime {
  background: rgba(201, 242, 77, 0.22);
  border-color: rgba(169, 217, 47, 0.4);
  color: #3f5310;
}
.badge-coral {
  background: rgba(255, 107, 61, 0.14);
  border-color: rgba(255, 107, 61, 0.32);
  color: #a3341a;
}
.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ribbon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  padding: 0.34rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 107, 61, 0.36);
}

/* --------------------------------------------------------------------------
   8. Cabecera y navegación
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 13, 22, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.22rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-hot);
  display: grid;
  place-items: center;
  color: #12160a;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(255, 107, 61, 0.32);
  flex: none;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 620;
  margin-top: -3px;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--text-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(18, 23, 42, 0.06);
  color: var(--text);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}
.nav-toggle span::before {
  transform: translateY(-6px);
}
.nav-toggle span::after {
  transform: translateY(6px);
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.22s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--r-md);
  }
  .header-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-ink);
  color: var(--text-on-dark);
  padding-block: clamp(2.6rem, 7vw, 5.2rem) clamp(3rem, 8vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before {
  width: 44rem;
  height: 44rem;
  top: -18rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.75), transparent 65%);
  animation: float 22s var(--ease) infinite alternate;
}
.hero::after {
  width: 34rem;
  height: 34rem;
  bottom: -16rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(201, 242, 77, 0.5), transparent 65%);
  animation: float 18s var(--ease) infinite alternate-reverse;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.hero .lead {
  color: #c9d2e4;
  max-width: 46ch;
}
.hero-actions {
  margin-top: 1.8rem;
}
.hero-trust {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.tick {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(201, 242, 77, 0.2);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--lime);
}

/* Móvil del hero (maqueta 100% CSS, sin imágenes) */
.phone {
  position: relative;
  width: min(320px, 82vw);
  margin-inline: auto;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(180deg, #262d42, #12172a);
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  border-radius: 28px;
  background: #fbf9f5;
  color: var(--text);
  padding: 1rem 0.95rem 1.15rem;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-mute);
  font-weight: 600;
}
.phone-title {
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.progress {
  height: 9px;
  border-radius: 99px;
  background: rgba(18, 23, 42, 0.09);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-hot);
  width: 0;
  transition: width 1.2s var(--ease);
}
.phone-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.phone-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 550;
}
.phone-item .dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(201, 242, 77, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #3f5310;
  flex: none;
}
.phone-item.is-done {
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(18, 23, 42, 0.25);
}
.phone-item.is-done .dot {
  background: var(--lime);
  color: #10160a;
}
.phone-badge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: #10162a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}
.phone-badge b {
  color: var(--lime);
}
.hero-visual {
  position: relative;
}
.float-card {
  position: absolute;
  width: 100px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 0.6rem 0.65rem;
  box-shadow: var(--sh-2);
  font-size: 0.73rem;
  font-weight: 620;
  line-height: 1.25;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  animation: bob 6s var(--ease) infinite alternate;
}
.float-card.fc-1 {
  left: 2px;
  top: 24%;
}
.float-card.fc-2 {
  right: 2px;
  bottom: 26%;
  animation-delay: -2s;
}
.float-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.fc-1 .float-ico {
  background: rgba(123, 92, 255, 0.16);
  color: var(--violet);
}
.fc-2 .float-ico {
  background: rgba(255, 107, 61, 0.16);
  color: var(--coral);
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -34px, 0) scale(1.06);
  }
}
@keyframes bob {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: 2;
    margin-top: 0.6rem;
  }
}
/* Las tarjetas flotantes son decorativas: si no hay sitio, desaparecen */
@media (max-width: 1249px) {
  .float-card {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   10. Marquesina de beneficios
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--lime);
  color: #10160a;
  padding: 0.85rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(16, 22, 10, 0.12);
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: slide 34s linear infinite;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.marquee-track span::before {
  content: "◆";
  opacity: 0.5;
  font-size: 0.7rem;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   11. Tarjetas
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.card-flat {
  box-shadow: none;
}
.card-ink {
  background: var(--ink-800);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.card-ink h3 {
  color: var(--text-on-dark);
}
.card-ink p {
  color: var(--text-on-dark-soft);
}
.card-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
}
.card-glass h3 {
  color: var(--text-on-dark);
}
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: rgba(18, 23, 42, 0.06);
  color: var(--ink);
  flex: none;
}
.icon-box.lime {
  background: rgba(201, 242, 77, 0.28);
  color: #3f5310;
}
.icon-box.coral {
  background: rgba(255, 107, 61, 0.16);
  color: #b23f1c;
}
.icon-box.violet {
  background: rgba(123, 92, 255, 0.16);
  color: #5334d6;
}
.icon-box svg {
  width: 22px;
  height: 22px;
}

/* Pasos numerados */
.step {
  position: relative;
  padding-left: 4.1rem;
}
.step-num {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--ink);
  color: var(--lime);
  box-shadow: var(--sh-1);
}
.step-line {
  position: absolute;
  left: 25px;
  top: 62px;
  bottom: -26px;
  width: 2px;
  background: linear-gradient(var(--line-strong), transparent);
}
.step:last-child .step-line {
  display: none;
}

/* Estadísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}
.stat-num {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  margin-top: 0.35rem;
  display: block;
}
.on-dark .stat-label {
  color: var(--text-on-dark-soft);
}

/* --------------------------------------------------------------------------
   12. Programas / precios
   -------------------------------------------------------------------------- */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
}
.plan-featured {
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #fff, #fdfbf4);
  box-shadow: var(--sh-2);
}
@media (min-width: 901px) {
  .plan-featured {
    transform: scale(1.035);
  }
  .plan-featured:hover {
    transform: scale(1.035) translateY(-6px);
  }
}
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
}
.plan-price b {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price s {
  color: var(--text-mute);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.plan-price small {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  margin-bottom: 0.3rem;
}
.plan ul {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 1.5rem;
  font-size: 0.94rem;
}
.plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text-soft);
}
.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}
.plan li.off {
  color: var(--text-mute);
  opacity: 0.72;
}
.plan li.off svg {
  color: var(--text-mute);
}
.plan-foot {
  margin-top: auto;
}
.plan-note {
  margin-top: 0.7rem;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  text-align: center;
}
.guarantee {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.24);
  color: #14532d;
  font-size: var(--fs-sm);
}
.on-dark .guarantee {
  background: rgba(201, 242, 77, 0.1);
  border-color: rgba(201, 242, 77, 0.3);
  color: var(--text-on-dark);
}

/* Tabla comparativa */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.93rem;
}
table.compare th,
table.compare td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.compare thead th {
  background: var(--paper-2);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
table.compare tbody tr:last-child td {
  border-bottom: 0;
}
table.compare td.yes {
  color: var(--ok);
  font-weight: 650;
}
table.compare td.no {
  color: var(--text-mute);
}
table.compare th.hl {
  background: rgba(201, 242, 77, 0.22);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13. Testimonios
   -------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
}
.quote p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-soft);
}
.quote p::before {
  content: "«";
}
.quote p::after {
  content: "»";
}
.who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #fff;
  flex: none;
  font-size: 0.9rem;
}
.who-meta {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  line-height: 1.35;
}
.who-meta b {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   14. Test de punto de partida
   ------------------------------------------------------------------------- */
.quiz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--sh-2);
  max-width: 720px;
  margin-inline: auto;
}
.quiz-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(18, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.quiz-bar > i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--grad-cool);
  border-radius: 99px;
  transition: width 0.4s var(--ease);
}
.quiz-step {
  display: none;
}
.quiz-step.is-active {
  display: block;
  animation: fade-up 0.45s var(--ease) both;
}
.quiz-q {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.quiz-opts {
  display: grid;
  gap: 0.6rem;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 550;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
  width: 100%;
}
.quiz-opt:hover {
  border-color: var(--ink);
  transform: translateX(3px);
  background: #fdfcf8;
}
.quiz-opt .k {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(18, 23, 42, 0.06);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.85rem;
  flex: none;
}
.quiz-result {
  display: none;
}
.quiz-result.is-active {
  display: block;
  animation: fade-up 0.5s var(--ease) both;
}
.quiz-result-card {
  border-radius: var(--r-lg);
  padding: 1.2rem;
  background: rgba(201, 242, 77, 0.16);
  border: 1px solid rgba(169, 217, 47, 0.4);
  margin-bottom: 1rem;
}
.quiz-back {
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: var(--fs-sm);
  cursor: pointer;
  text-decoration: underline;
  padding: 0.6rem 0;
}
.quiz-back:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   15. Acordeón FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 620;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--coral);
  line-height: 1;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   16. Banda CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 5vw, 3.4rem);
  background: var(--grad-hot);
  color: #17120a;
  box-shadow: var(--sh-2);
}
.cta-band h2 {
  color: #17120a;
}
.cta-band p {
  color: rgba(23, 18, 10, 0.78);
  max-width: 52ch;
}
.cta-band .btn-dark {
  box-shadow: 0 16px 40px rgba(10, 13, 22, 0.28);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(30px);
  pointer-events: none;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   17. Formularios
   -------------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.16);
}
.field .hint {
  font-size: var(--fs-xs);
  color: var(--text-mute);
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--violet);
  flex: none;
}
.form-status {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: #b91c1c;
}

/* --------------------------------------------------------------------------
   18. Pie
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-soft);
  padding-block: clamp(2.6rem, 6vw, 4rem) 2rem;
  font-size: 0.92rem;
}
.site-footer h3 {
  color: var(--text-on-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.footer-grid a:hover {
  color: var(--lime);
}
.footer-links {
  display: grid;
  gap: 0.55rem;
}
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #7c869b;
}
.footer-bottom strong {
  color: #d3dae7;
  font-weight: 650;
}
.disclaimer {
  margin-top: 1.6rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: #98a3b8;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   19. Barra fija móvil + aviso de instalación
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(10, 13, 22, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.sticky-cta.is-visible {
  transform: translateY(0);
}
.sticky-cta .price {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.sticky-cta .price small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0;
}
.sticky-cta .btn {
  flex: 1;
}
@media (max-width: 900px) {
  .sticky-cta {
    display: flex;
  }
  body.has-sticky-cta {
    padding-bottom: 84px;
  }
}

.install-prompt {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 95;
  max-width: 460px;
  margin-inline: auto;
  display: none;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--r-lg);
  background: var(--ink-800);
  color: var(--text-on-dark);
  box-shadow: var(--sh-3);
  border: 1px solid var(--line-dark);
  animation: fade-up 0.5s var(--ease) both;
}
.install-prompt.is-visible {
  display: flex;
}
body.has-sticky-cta .install-prompt {
  bottom: calc(84px + env(safe-area-inset-bottom));
}
.install-prompt p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
}
.install-prompt strong {
  color: var(--text-on-dark);
  display: block;
}
.install-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   20. Consentimiento de cookies (sin rastreadores por defecto)
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 120;
  max-width: 620px;
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  display: none;
  gap: 0.9rem;
  font-size: var(--fs-sm);
}
.consent.is-visible {
  display: grid;
  animation: fade-up 0.4s var(--ease) both;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .consent {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
    font-size: 0.83rem;
    line-height: 1.45;
  }
  .consent .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* Contador de progreso del plan */
.plan-counter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   21. Aviso flotante (toast)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 130;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--sh-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast button {
  background: none;
  border: 0;
  color: var(--lime);
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.4rem;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   22. Páginas interiores / legales
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--grad-ink);
  color: var(--text-on-dark);
  padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(2.4rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: -16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.6), transparent 65%);
  filter: blur(60px);
}
.page-hero > * {
  position: relative;
}
.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--text-on-dark-soft);
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--lime);
}
.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-top: 2.4rem;
}
.prose h3 {
  margin-top: 1.8rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}
.prose ol {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}
.prose li {
  margin-bottom: 0.45rem;
}
.prose a {
  color: #5334d6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: 0.93rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.prose th {
  background: var(--paper-2);
}
.callout {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border-left: 4px solid var(--violet);
  background: rgba(123, 92, 255, 0.07);
  font-size: 0.95rem;
  margin: 1.4rem 0;
}
.callout.warn {
  border-color: var(--coral);
  background: rgba(255, 107, 61, 0.08);
}

/* Ficha de producto */
.buybox {
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
@media (max-width: 900px) {
  .buybox {
    grid-template-columns: 1fr;
  }
}
.buybox-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  box-shadow: var(--sh-2);
}
@media (max-width: 900px) {
  .buybox-panel {
    position: static;
  }
}
.buybox-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}
.buybox-list li {
  display: flex;
  gap: 0.55rem;
  color: var(--text-soft);
}
.buybox-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}
.switch {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.switch button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 620;
  cursor: pointer;
  color: var(--text-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--text);
  box-shadow: var(--sh-1);
}
@media (min-width: 901px) {
  .media-frame {
    aspect-ratio: 1 / 1;
  }
}
.media-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1a2036, #0d1120 60%, #241a3d);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  position: relative;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 20%,
    rgba(201, 242, 77, 0.25),
    transparent 55%
  );
}
.media-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}
.module-list {
  display: grid;
  gap: 1rem;
}
.module {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.module-n {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--paper-2);
  color: var(--text);
  font-size: 1.05rem;
}
.module h3 {
  margin-bottom: 0.25rem;
}
.module p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   23. App de plan (PWA) y estados
   -------------------------------------------------------------------------- */
.app-shell {
  display: grid;
  gap: 1.2rem;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: var(--sh-1);
}
.timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.timer-display {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 4.6ch;
}
.timer-ring {
  --p: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--coral) calc(var(--p) * 1%), rgba(18, 23, 42, 0.1) 0);
  display: grid;
  place-items: center;
}
.timer-ring::after {
  content: "";
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
}
.checklist {
  display: grid;
  gap: 0.5rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.checklist li:hover {
  border-color: var(--line-strong);
}
.checklist li.done {
  background: rgba(201, 242, 77, 0.16);
  border-color: rgba(169, 217, 47, 0.5);
}
.checklist input {
  width: 22px;
  height: 22px;
  accent-color: #10160a;
  flex: none;
}
.checklist .ex-meta {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  white-space: nowrap;
}
.day-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.day-pill {
  flex: none;
  width: 58px;
  padding: 0.55rem 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  line-height: 1.25;
}
.day-pill b {
  display: block;
  font-size: 1rem;
  color: var(--text);
}
.day-pill.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text-on-dark-soft);
}
.day-pill.is-active b {
  color: var(--lime);
}
.day-pill.is-done {
  background: rgba(201, 242, 77, 0.2);
  border-color: rgba(169, 217, 47, 0.5);
}
.empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   24. Animaciones de entrada
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   25. Utilidades
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide-mobile {
  display: initial;
}
@media (max-width: 700px) {
  .hide-mobile {
    display: none;
  }
  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--warn);
}
@media print {
  .site-header,
  .sticky-cta,
  .consent,
  .install-prompt {
    display: none !important;
  }
}
