/* ═══════════════════════════════════════════════
   BitacorApp — hoja de estilos
   ═══════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────── */
:root {
  /* Marca */
  --teal:        #0D7A78;
  --teal-deep:   #0A5D5B;
  --teal-tint:   #E3F3F2;
  --mint:        #2DD4BF;

  /* Texto y superficies */
  --ink:         #16242E;
  --ink-soft:    #46606F;
  --ink-faint:   #5C7282;
  --ink-ghost:   #9AABB6;
  --line:        #E3E9EC;
  --bg:          #F5F8FA;
  --surface:     #FFFFFF;

  /* Sobre fondo oscuro */
  --on-dark:      #FFFFFF;
  --on-dark-soft: #CDD5DC;
  --on-dark-faint:#8494A0;

  /* Clasificación de presión */
  --normal:      #2F9E64;
  --elevated:    #C8932E;
  --stage-1:     #D26A35;
  --stage-2:     #C7423F;
  --crisis:      #8E2434;

  /* Radios */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(22, 36, 46, .04);
  --shadow-md: 0 12px 28px rgba(22, 36, 46, .07);
  --shadow-lg: 0 30px 60px rgba(13, 122, 120, .18);

  /* Medidas */
  --wrap:   1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 72px;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .1px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* Un display propio gana sobre el atributo hidden, así que lo forzamos */
[hidden] { display: none !important; }

a { color: var(--teal-deep); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--teal); }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Layout ────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 88px); }
.section--surface { background: var(--surface); }
.section--flush { padding-block: clamp(20px, 3vw, 40px); }

.section__head {
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* ── Tipografía ────────────────────────────── */
.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -1.2px;
}
.h1--light { color: var(--on-dark); }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.h2--light { color: var(--on-dark); }

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 600;
}

.h4 {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.35;
}

.lead {
  margin: 0;
  font-size: clamp(15.5px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-soft);
}
.lead--light { color: var(--on-dark-soft); }

.muted { color: var(--ink-faint); }

.note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rule, .paper__rule, .band__rule, .footer__rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--line);
}
.band__rule, .footer__rule { background: rgba(255, 255, 255, .12); }

/* ── Iconos base ───────────────────────────── */
.icon-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
}

/* ── Header ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.brand--light .brand__name { color: var(--on-dark); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }

.nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding-block: 4px;
}
.nav__link:hover { color: var(--teal); }
.nav__link.is-active {
  color: var(--teal-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Botones ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; }

.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-deep); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--teal-tint); color: var(--teal-deep); }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.btn--danger { background: var(--stage-2); color: #fff; }
.btn--danger:hover { background: #a5322f; color: #fff; }

.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 14.5px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.link-arrow {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal-deep);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--mint { color: var(--mint); }
.link-arrow--mint:hover { color: #7ce8da; }

/* Botones de tienda */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.store-row--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-md);
  transition: background-color .16s ease, transform .12s ease;
}
.store-btn:hover { background: #24384a; color: #fff; }
.store-btn:active { transform: translateY(1px); }
.store-btn__icon { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__text small { font-size: 10.5px; opacity: .82; }
.store-btn__text strong { font-size: 16px; font-weight: 600; }

/* ── Pills y tags ──────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.pill svg { width: 13px; height: 13px; }
.pill--tint { background: var(--teal-tint); color: var(--teal-deep); }
.pill--mint { background: rgba(45, 212, 191, .16); color: var(--mint); }

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: #F0F4F6;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag--live  { background: var(--teal); color: #fff; }
.tag--ghost { background: rgba(255, 255, 255, .14); color: #fff; }

/* ── Hero ──────────────────────────────────── */
.hero { background: var(--surface); padding-block: clamp(44px, 7vw, 92px); }
.hero--dark { background: var(--ink); }

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__copy {
  flex: 1 1 460px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__device { flex: 0 0 auto; margin-inline: auto; }

.hero__aside {
  flex: 1 1 340px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Mockup del teléfono ───────────────────── */
.hero__device { position: relative; }

/* Halo detrás del dispositivo */
.hero__device::before {
  content: '';
  position: absolute;
  inset: 8% -14% 12% -14%;
  background: radial-gradient(ellipse at center, rgba(13, 122, 120, .16), transparent 68%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

.device {
  position: relative;
  z-index: 1;
  width: 306px;
  height: 620px;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a4b58 0%, #16242E 26%, #0d171f 72%, #2b3b48 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    0 1px 2px rgba(255, 255, 255, .22) inset,
    0 18px 30px rgba(22, 36, 46, .16),
    0 40px 70px rgba(13, 122, 120, .20);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0)     rotate(0deg); }
  30%  { transform: translateY(-14px) rotate(-.7deg); }
  60%  { transform: translateY(-4px)  rotate(.5deg); }
  100% { transform: translateY(0)     rotate(0deg); }
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

/* Dynamic island */
.device__island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  border-radius: var(--r-pill);
  background: #0a1319;
  z-index: 3;
}

/* Botones laterales */
.device__btn {
  position: absolute;
  background: linear-gradient(90deg, #1d2d38, #46606F);
  border-radius: 2px;
}
.device__btn--silent   { left: -2px; top: 104px; width: 3px; height: 26px; }
.device__btn--vol-up   { left: -2px; top: 150px; width: 3px; height: 50px; }
.device__btn--vol-down { left: -2px; top: 212px; width: 3px; height: 50px; }
.device__btn--power    { right: -2px; top: 178px; width: 3px; height: 74px;
                         background: linear-gradient(270deg, #1d2d38, #46606F); }

/* Reflejo sobre la pantalla */
.device__glare {
  position: absolute;
  inset: 10px;
  border-radius: 35px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(112deg,
    rgba(255, 255, 255, .28) 0%,
    rgba(255, 255, 255, .06) 18%,
    transparent 38%,
    transparent 100%);
}

.app-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 46px 18px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.app-bar__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.app-bar__mark img { width: 100%; height: 100%; object-fit: contain; }
.app-bar__text { display: flex; flex-direction: column; }
.app-bar__text strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.app-bar__text small { font-size: 9.5px; color: var(--ink-faint); }

.app-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.app-card--tight { padding: 12px; gap: 4px; }

.app-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.reading { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.reading__num { font-family: var(--font-display); font-size: 42px; font-weight: 600; line-height: 1; }
.reading__sep { font-size: 22px; color: var(--ink-ghost); }
.reading__unit { font-size: 12px; color: var(--ink-faint); margin-left: 3px; }
.reading__meta { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-faint); }

.chip {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.chip--normal   { background: var(--normal); }
.chip--elevated { background: var(--elevated); }
.chip--stage-1  { background: var(--stage-1); }
.chip--stage-2  { background: var(--stage-2); }
.chip--crisis   { background: var(--crisis); }

.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-stat { font-family: var(--font-display); font-size: 20px; font-weight: 600; }

.spark { width: 100%; height: auto; }

.app-fab {
  background: var(--teal);
  border-radius: 13px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.app-fab svg { width: 15px; height: 15px; }

/* ── Productos ─────────────────────────────── */
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product--live { border: 1.5px solid var(--teal); }
.product--dark { background: var(--ink); border-color: var(--ink); }
.product--dark .h3 { color: var(--on-dark); }
.product--dark p  { color: var(--on-dark-soft); }
.product p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

.product__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}
.product__icon svg { width: 24px; height: 24px; }
.product__icon--muted { background: #F0F4F6; color: var(--ink-soft); }
.product__icon--ghost { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Funciones ─────────────────────────────── */
.feature {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.section--surface .feature { background: var(--bg); }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.feature__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 21px; height: 21px; }

/* ── Split (PDF / formulario) ──────────────── */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.split--form { align-items: flex-start; }

.split__copy {
  flex: 1 1 420px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split__copy .muted { font-size: 14.5px; line-height: 1.6; margin: 0; }

.split__visual { flex: 1 1 420px; display: flex; justify-content: center; }

.checklist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.5;
}
.checklist--lg li { font-size: 15.5px; gap: 12px; }
.checklist strong { font-weight: 600; }

/* ── Vista previa del PDF ──────────────────── */
.paper {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paper__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.paper__head-right { text-align: right; flex-shrink: 0; }

.paper__brand {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.paper__badge {
  background: var(--teal);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.paper__meta { margin: 0; font-size: 10.5px; color: var(--ink-faint); }

.paper__title { margin: 0; font-size: 10.5px; font-weight: 700; }

.paper__chart { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.paper__chart svg { width: 100%; height: auto; }

.paper__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.paper__stats div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.paper__stats small  { font-size: 7.5px; color: var(--ink-faint); }
.paper__stats strong { font-size: 10px; font-weight: 700; }

.paper__day {
  margin: 0;
  background: var(--bg);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
}

.paper__table { width: 100%; border-collapse: collapse; }
.paper__table thead tr { background: var(--bg); }
.paper__table th {
  text-align: left;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 5px 7px;
}
.paper__table td { font-size: 9px; padding: 6px 7px; border-bottom: 1px solid var(--line); }
.paper__table tbody tr:last-child td { border-bottom: 0; }
.paper__table .muted { color: var(--ink-ghost); }

/* ── Banda oscura ──────────────────────────── */
.band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 4vw, 60px);
}
.band__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.band__copy .btn { align-self: flex-start; margin-top: 10px; }

.band__card {
  flex: 0 1 340px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.band__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.band__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); }

/* Variante compacta: para la card del hero de médicos */
.band__card--tight { padding: 22px; gap: 11px; }
.band__card--tight .code { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .6px; }
.band__card--tight .band__note { font-size: 12.5px; line-height: 1.55; }
.band__card--tight .band__label { font-size: 10.5px; }

.band__card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.band__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(45, 212, 191, .12);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.band__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, .7);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.band__specs { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.band__specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.band__specs dt { font-size: 11.5px; color: var(--on-dark-faint); }
.band__specs dd {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-dark);
  text-align: right;
}

.code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--mint);
  word-break: break-all;
}

.band__list { margin: 0; display: flex; flex-direction: column; gap: 11px; }
.band__list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.band__list dt { font-size: 13.5px; color: var(--on-dark-soft); }
.band__list dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--on-dark); }

/* Métricas del hero de médicos */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat strong { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--on-dark); }
.stat span { font-size: 11.5px; line-height: 1.35; color: var(--on-dark-faint); }

/* ── Pasos ─────────────────────────────────── */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step { display: flex; flex-direction: column; gap: 16px; }
.step p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

.step__num {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ── Tarjetas de código ────────────────────── */
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.code-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.code-card__prefix {
  font-family: var(--font-display);
  font-size: 22px !important;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--teal) !important;
}
.code-card .feature__icon { background: var(--teal-tint); border-color: transparent; color: var(--teal-deep); }

/* ── Dos columnas ──────────────────────────── */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 60px);
}
.two-col > div:not(.two-col__divider) { flex: 1 1 340px; display: flex; flex-direction: column; gap: 22px; }
.two-col__divider { width: 1px; background: var(--line); flex-shrink: 0; }
.two-col__head { display: flex; align-items: center; gap: 12px; }
.two-col__head .feature__icon { width: 40px; height: 40px; background: var(--teal-tint); border-color: transparent; color: var(--teal-deep); }
.two-col__head .feature__icon svg { width: 20px; height: 20px; }

/* ── Planes ────────────────────────────────── */
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.plan--featured { border: 2px solid var(--teal); }

.plan__head { display: flex; flex-direction: column; gap: 8px; }
.plan__head--row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan__sub { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); }

.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); font-weight: 600; }
.price span { font-size: 15px; color: var(--ink-faint); }

.plan .btn { margin-top: auto; }

/* ── CTA final ─────────────────────────────── */
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta__inner .h2 { max-width: 680px; }
.cta__inner .lead { max-width: 520px; }

/* ── Formulario ────────────────────────────── */
.form {
  flex: 1 1 480px;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color .16s ease, background-color .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: var(--surface);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-ghost); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--stage-2); }

.form__legal { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-faint); text-align: center; }

.form__status {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.form__status.is-ok    { background: var(--teal-tint); color: var(--teal-deep); }
.form__status.is-error { background: rgba(199, 66, 63, .1); color: #a5322f; }

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(40px, 5vw, 56px) 36px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: 40px;
}
.footer__brand { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--on-dark-faint); }

.footer__cols {
  flex: 2 1 480px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 40px;
}
.footer__cols > div { display: flex; flex-direction: column; gap: 13px; }
.footer__cols a { font-size: 14px; color: var(--on-dark-faint); }
.footer__cols a:hover { color: var(--on-dark); }

.footer__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer__bottom {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__bottom p { margin: 0; font-size: 13px; color: var(--on-dark-faint); }
.footer__legal { max-width: 620px; font-size: 12.5px !important; text-align: right; }

/* ── El problema (médicos) ─────────────────── */
.pain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.pain p { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.62; color: var(--ink-soft); }
.pain__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(199, 66, 63, .09);
  color: var(--stage-2);
  display: grid;
  place-items: center;
}
.pain__icon svg { width: 21px; height: 21px; }

.turn {
  margin-top: 26px;
  background: var(--teal-tint);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.turn__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
}
.turn__icon svg { width: 18px; height: 18px; }
.turn p { margin: 0; font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--ink); }
.turn strong { font-weight: 600; }

/* ── Pantallazo del panel del médico ───────── */
.ventana {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ventana__barra {
  height: 38px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 14px;
}
.ventana__puntos { display: flex; gap: 6px; }
.ventana__puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ventana__url {
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 4px 14px;
}

.ventana__pantalla { background: var(--bg); }

.vp__head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vp__marca { display: flex; align-items: center; gap: 8px; }
.vp__marca img { width: 22px; height: 22px; object-fit: contain; }
.vp__marca span { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.vp__code {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.vp__cuerpo { padding: 14px; display: flex; flex-direction: column; gap: 12px; }

/* Embudo del pantallazo */
.vp__funnel { display: flex; align-items: stretch; gap: 5px; }

.vpf {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vpf--win { border-color: var(--teal); background: var(--teal-tint); }
.vpf__etq { font-size: 8.5px; line-height: 1.25; color: var(--ink-faint); }
.vpf--win .vpf__etq { color: var(--teal-deep); }
.vpf__n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}
.vpf--win .vpf__n { color: var(--teal-deep); }
.vpf__bar { margin-top: auto; padding-top: 7px; display: block; }
.vpf__bar i { display: block; height: 4px; border-radius: 2px; background: var(--teal); opacity: .35; }
.vpf--win .vpf__bar i { opacity: 1; }

.vpf__flecha {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-ghost);
}
.vpf__flecha svg { width: 13px; height: 13px; }
.vpf__flecha b {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 1px 5px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.vp__dinero {
  flex: 1.1 1 0;
  min-width: 0;
  background: var(--ink);
  border-radius: 10px;
  padding: 11px 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vp__dinero > span:first-child { font-size: 8.5px; color: var(--on-dark-faint); }
.vp__dinero strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--mint);
}
.vp__dinero small { font-size: 8.5px; color: var(--on-dark-soft); }
.vp__pagado {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 8.5px;
  color: var(--on-dark-faint);
}
.vp__pagado b { font-weight: 600; color: #fff; }

/* Tabla del pantallazo */
.vp__tabla {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
}
.vp__tabla-h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.vp__fila {
  display: grid;
  grid-template-columns: 1fr 26px 52px 60px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-soft);
}
.vp__fila:last-child { border-bottom: 0; }
.vp__fila strong { font-size: 11px; font-weight: 600; color: var(--ink); }
.vp__fila em {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
  padding: 3px 6px;
  border-radius: var(--r-pill);
}
.vp--pend { background: rgba(200, 147, 46, .16); color: #8a6412; }
.vp--pag  { background: rgba(47, 158, 100, .14); color: #1f7448; }

@media (max-width: 480px) {
  .vp__funnel { flex-direction: column; }
  .vpf__flecha { flex-direction: row; transform: rotate(90deg); padding: 2px 0; }
  .vpf__bar { padding-top: 5px; }
}

/* ── Preguntas frecuentes ──────────────────── */
.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 22px;
  transition: border-color .18s ease;
}
.faq__item[open] { border-color: var(--teal); }

.faq__item summary {
  padding: 19px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq__item p {
  margin: 0;
  padding: 0 0 20px;
  max-width: 68ch;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* ── Fila de confianza del hero ────────────── */
.trust {
  margin: 12px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 26px;
}
.trust li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-faint);
}
.trust strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.trust__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}
.trust__icon svg { width: 17px; height: 17px; }

/* ── Showcase de pantallas ─────────────────── */
.showcase__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.showcase__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.showcase__item--raised { margin-top: -28px; }

.showcase__item figcaption {
  max-width: 300px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink-soft);
}
.showcase__item figcaption strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

/* Teléfono pequeño para el showcase */
.device--sm {
  width: 252px;
  height: 512px;
  padding: 8px;
  border-radius: 38px;
  animation: none;
  transition: transform .35s ease;
}
.device--sm .device__screen { border-radius: 30px; }
.device--sm .device__glare  { inset: 8px; border-radius: 30px; }
.device--sm .device__island { top: 9px; width: 72px; height: 21px; }
.device--sm .device__btn--vol-up   { top: 124px; height: 42px; }
.device--sm .device__btn--vol-down { top: 176px; height: 42px; }
.device--sm .device__btn--power    { top: 148px; height: 62px; }

.device--tilt-l { transform: rotate(-3deg); }
.device--tilt-r { transform: rotate(3deg); }
.showcase__item:hover .device--sm { transform: rotate(0deg) translateY(-8px); }

/* Contenido genérico de pantalla */
.scr {
  flex: 1;
  padding: 44px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.scr__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scr__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.scr__badge {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

/* Registro */
.scr__bp { display: flex; align-items: flex-end; gap: 8px; }
.scr__bp-box {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.scr__bp-label { font-size: 8.5px; color: var(--ink-faint); }
.scr__bp-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.scr__bp-sep { font-size: 22px; color: var(--ink-ghost); padding-bottom: 10px; }

.scr__field {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scr__field-label { font-size: 9.5px; color: var(--ink-faint); }
.scr__field-val   { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.scr__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.scr__section {
  margin: 2px 0 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scr__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.scr__chip {
  font-size: 9px;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.scr__chip.is-on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }

.scr__cta {
  margin-top: auto;
  background: var(--teal);
  color: #fff;
  border-radius: 11px;
  padding: 11px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* Historial */
.scr__day {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.scr__day span { font-family: var(--font-body); font-size: 9px; font-weight: 400; color: var(--ink-faint); }

.scr__list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.scr__reading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.scr__reading:last-child { border-bottom: 0; }
.scr__reading span   { font-size: 9.5px; color: var(--ink-faint); width: 52px; }
.scr__reading strong { font-size: 12.5px; font-weight: 600; flex: 1; }
.scr__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Tendencias */
.scr__pills { display: flex; gap: 5px; }
.scr__pill {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  padding: 7px 0;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.scr__pill.is-on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }

.scr__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.scr__card svg { width: 100%; height: auto; }

.scr__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.scr__stats div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.scr__stats span   { font-size: 8px; color: var(--ink-faint); }
.scr__stats strong { font-family: var(--font-display); font-size: 13px; font-weight: 600; }

.scr__legend { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.scr__legend span { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--ink-faint); }
.scr__legend i { width: 6px; height: 6px; border-radius: 50%; }

/* Pantalla de activación de código */
.scr__hint {
  margin: -4px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-faint);
}
.scr__code {
  background: var(--surface);
  border: 1.5px solid var(--teal);
  border-radius: 11px;
  padding: 12px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--teal-deep);
}
.scr__cta--static { margin-top: 0; }

.scr__success {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.scr__success-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.scr__success-icon svg { width: 16px; height: 16px; }
.scr__success strong { font-size: 11.5px; font-weight: 700; color: var(--teal-deep); }
.scr__success span   { font-size: 9px; color: var(--ink-faint); }

.scr__unlocked { display: flex; flex-direction: column; gap: 7px; }
.scr__unlocked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink);
}

/* ── Capa decorativa (líneas de pulso) ─────── */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  color: var(--teal);
}
.decor--on-dark { color: var(--mint); }

.decor__line {
  position: absolute;
  left: -10%;
  width: 120%;
  height: auto;
  will-change: transform;
}
.decor__line--1 { top: 14%; opacity: .24; }
.decor__line--2 { top: 64%; opacity: .17; }
.decor__line--3 { top: 38%; opacity: .20; }

.decor--on-dark .decor__line--1 { opacity: .34; }
.decor--on-dark .decor__line--2 { opacity: .24; }
.decor--on-dark .decor__line--3 { opacity: .28; }

.decor__arc {
  position: absolute;
  top: -14%;
  right: -12%;
  width: clamp(320px, 38vw, 520px);
  height: auto;
  opacity: .22;
  will-change: transform;
}
.decor--on-dark .decor__arc { opacity: .28; }

/* Corazones outline sueltos */
.decor__heart {
  position: absolute;
  width: clamp(38px, 5vw, 64px);
  height: auto;
  opacity: .26;
  will-change: transform;
}
.decor--on-dark .decor__heart { opacity: .34; }

.decor__heart--a { top: 12%;  left: 6%; }
.decor__heart--b { bottom: 14%; right: 12%; width: clamp(28px, 3.6vw, 46px); opacity: .18; }
.decor__heart--c { top: 58%;  left: 42%; width: clamp(24px, 3vw, 38px); opacity: .15; }

.decor--soft .decor__line { opacity: .14; }
.decor--soft .decor__heart { opacity: .16; }

.decor--band {
  border-radius: var(--r-xl);
  color: var(--mint);
}
.decor--band .decor__line--3 { top: 26%; opacity: .26; }
.decor--band .decor__heart { opacity: .30; }

/* Las secciones que llevan decoración necesitan contexto */
.hero,
.section,
.band { position: relative; }

.hero__inner,
.section > .wrap,
.band__copy,
.band__card { position: relative; z-index: 1; }

.showcase .decor__heart--b { bottom: 8%; right: 4%; }
.decor--soft .decor__arc { top: -20%; right: -16%; }

@media (prefers-reduced-motion: reduce) {
  .decor__line, .decor__arc { transform: none !important; }
  .device { animation: none; }
  .band__state i { animation: none; }
}

/* ── Animación de entrada ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   Breakpoints
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%);
    transition: transform .26s ease;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }

  .nav__link {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link.is-active { box-shadow: none; }
  .nav__cta { margin-top: 16px; }

  .two-col__divider { display: none; }
  .footer__legal { text-align: left; }
  .paper__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .device--tilt-l, .device--tilt-r { transform: none; }
  .showcase__item--raised { margin-top: 0; }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__copy { max-width: none; }
  .split { flex-direction: column; align-items: stretch; }
  .split__copy { max-width: none; }
  .split__visual { justify-content: stretch; }
  .paper { width: 100%; }
  .band__card { flex-basis: auto; width: 100%; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; gap: 12px; }
  .store-row { flex-direction: column; }
  .store-btn { justify-content: center; }
  .plan__head--row { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .device {
    width: 100%;
    height: auto;
    aspect-ratio: 306 / 620;
    animation: none;
  }
  .hero__device::before { display: none; }
}
