/* =========================================================
   RENDIA — Landing
   ========================================================= */

/* ----------- Design tokens ----------- */
:root {
  /* Marca */
  --primary: #2176FF;
  /* Los dos tonos del degradado de la barra, los mismos que el panel del login
     profesional (--primary-deep/-deeper en la app). */
  --primary-deep: #0056E0;
  --primary-deeper: #0043AD;
  --primary-600: #0F5FE0;
  --primary-100: #DBE7FE;
  --indigo: #4F46E5;

  /* Neutros light */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --text-soft: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Semánticos (macros) */
  --kcal: #8C47D1;
  --protein: #0EA5E9;
  --carbs: #F59E0B;
  --fats: #EF4444;
  --fiber: #26C0AB;

  --ring-track: #EEF2F7;

  /* Radios y sombras */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .04), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .12), 0 4px 12px -6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .18), 0 10px 24px -12px rgba(15, 23, 42, .08);
  --shadow-primary: 0 20px 40px -18px rgba(33, 118, 255, .55);

  --grad-header: linear-gradient(135deg, #2176FF 0%, #4F46E5 100%);
  --grad-header-soft: linear-gradient(135deg, rgba(33,118,255,.08) 0%, rgba(79,70,229,.08) 100%);

  /* Tipografía */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #020817;
  --surface: #0B1220;
  --surface-2: #0F1A2E;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-soft: #64748B;
  --border: #1E293B;
  --border-strong: #334155;

  --primary: #3B82F6;
  --primary-deep: #1D4ED8;
  --primary-deeper: #17399B;
  --primary-600: #2563EB;
  --primary-100: rgba(59, 130, 246, .15);

  --ring-track: #1E293B;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .5), 0 4px 12px -6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 10px 24px -12px rgba(0, 0, 0, .4);
  --shadow-primary: 0 20px 40px -18px rgba(59, 130, 246, .6);

  --grad-header: linear-gradient(135deg, #3B82F6 0%, #4F46E5 100%);
  --grad-header-soft: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(79,70,229,.12) 100%);
}

/* ----------- Base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p  { margin: 0; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad-header);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------- Reveal on scroll ----------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm  { padding: 9px 16px; font-size: .92rem; }
.btn--lg  { padding: 15px 26px; font-size: 1.02rem; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--primary-600); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); }

.btn--white {
  background: #fff;
  color: var(--primary);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); }

/* ----------- Eyebrow ----------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-600);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(33,118,255,.18);
}
[data-theme="dark"] .eyebrow { color: #93C5FD; }

.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(33,118,255,.2);
}
.eyebrow--muted {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
}
.eyebrow--onblue {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}

/* ----------- Nav ----------- */
/*
 * La barra va en el azul de marca, el mismo degradado que el panel del login
 * profesional, para que la web de venta y el acceso se lean como lo mismo.
 *
 * Sobre ese azul, el contenido se redefine por tokens en vez de regla a regla:
 * enlaces, botón de tema, hamburguesa y menú móvil cuelgan de --text,
 * --text-muted, --surface y --border, así que basta con reasignarlos aquí.
 *
 * --primary NO se toca: la caja del logo es blanca con el trazo azul, igual
 * que el icono del panel, y necesita conservar el azul real. El wordmark, que
 * también colgaba de --primary, se pasa a blanco aparte.
 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-deeper) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;

  --text: #fff;
  --text-muted: rgba(255, 255, 255, .82);
  --surface: rgba(255, 255, 255, .14);
  --border: rgba(255, 255, 255, .22);

  /* Hace falta explícito: el color heredado viene de body, que resuelve --text
     fuera de la barra y por tanto en oscuro. Sin esto, lo que usa currentColor
     —el icono del selector de tema— saldría oscuro sobre el azul. */
  color: var(--text);
}
.nav.is-scrolled { border-bottom-color: rgba(255, 255, 255, .18); }

/* Blanco, no --primary: sobre el azul de la barra el azul no se leería. */
.nav .brand__word { color: #fff; }

/* El botón invertido: blanco con el texto azul. En azul sobre azul se perdería. */
.nav .btn--primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
}
.nav .btn--primary:hover { background: rgba(255, 255, 255, .9); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-heading);
}
.brand__mark { width: 32px; height: 32px; color: var(--primary); flex: none; }
.brand__word {
  font-size: 1.4rem;
  font-weight: 800;
  /* Todo el wordmark en el color de marca. Antes "ren" iba en el color de
     texto y sólo "dia" en azul; ahora la palabra va de un color, igual que en
     el resto de sitios donde aparece el logo. */
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 6px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: .95rem;
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--surface); color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.hero__blob--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(33,118,255,.5), transparent 70%);
  top: -140px; right: -80px;
}
.hero__blob--b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(79,70,229,.45), transparent 70%);
  bottom: -160px; left: -100px;
}
[data-theme="dark"] .hero__blob { opacity: .35; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero__copy .eyebrow { margin-bottom: 24px; }
.hero__title { margin-bottom: 20px; }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .92rem;
}
.hero__note svg {
  width: 16px; height: 16px;
  color: var(--fiber);
}

/* ---- Mockup dashboard ---- */
.hero__mockup {
  position: relative;
}
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center;
  transition: transform .5s ease;
}
.mockup:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
@media (max-width: 980px) {
  .mockup { transform: none; }
  .mockup:hover { transform: none; }
}

.mockup__chrome {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  gap: 6px;
}
.mockup__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.mockup__chrome span:nth-child(1) { background: #FCA5A5; }
.mockup__chrome span:nth-child(2) { background: #FCD34D; }
.mockup__chrome span:nth-child(3) { background: #86EFAC; }
.mockup__url {
  margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .72rem;
  color: var(--text-soft);
  padding: 3px 14px;
}

.mockup__body { padding: 22px; }

.mockup__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mockup__greet {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.mockup__sub {
  font-size: .82rem;
  color: var(--text-soft);
}
.mockup__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-header);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
}

.mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.stat__label {
  font-size: .72rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.stat__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1;
}
.stat__delta {
  margin-top: 4px;
  font-size: .7rem;
  color: var(--text-soft);
}
.stat__delta--up { color: var(--fiber); font-weight: 700; }

.mockup__panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.mockup__panel-head {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.chip--ok {
  background: rgba(38, 192, 171, .12);
  color: var(--fiber);
  border-color: rgba(38, 192, 171, .3);
}

.macro-ring {
  position: relative;
  width: 100px; height: 100px;
}
.macro-ring svg { width: 100%; height: 100%; }
.macro-ring__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.macro-ring__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}
.macro-ring__unit {
  font-size: .7rem;
  color: var(--text-soft);
  margin-top: 3px;
}

.macro-bars { display: flex; flex-direction: column; gap: 10px; }
.macro-bar__head {
  display: flex; justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.macro-bar__head span:last-child { color: var(--text); font-weight: 700; }
.macro-bar__track {
  height: 7px;
  background: var(--ring-track);
  border-radius: 999px;
  overflow: hidden;
}
.macro-bar__fill {
  height: 100%;
  border-radius: 999px;
}

.mockup__agenda {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agenda-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.agenda-item__title {
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
}
.agenda-item__meta {
  font-size: .7rem;
  color: var(--text-soft);
}

/* Floating cards junto al mockup */
.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
.floating-card--tl { top: -24px; left: -24px; animation-delay: 0s; }
.floating-card--br { bottom: -20px; right: -20px; animation-delay: -3s; }
.floating-card__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.floating-card__icon svg { width: 18px; height: 18px; }
.floating-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.2;
}
.floating-card__meta {
  font-size: .72rem;
  color: var(--text-soft);
  margin-top: 2px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .floating-card--tl, .floating-card--br { display: none; }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 60px 0 40px; }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ---- Propuesta dual ---- */
.dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Variante sin el conector del medio: dos tarjetas y ya. El grid base reserva
   una columna "auto" para el enlace decorativo, y sin él la segunda tarjeta
   caía en esa columna y se estrangulaba. */
.dual--pair { grid-template-columns: 1fr 1fr; }
.dual__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dual__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dual__card h3 {
  font-size: 1.5rem;
  margin: 14px 0 10px;
}
.dual__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-600);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
}
[data-theme="dark"] .dual__tag { color: #93C5FD; }
.dual__tag--alt {
  background: rgba(140,71,209,.12);
  color: var(--kcal);
}
.dual__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dual__list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--text-muted);
}
.dual__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--primary-100);
  border-radius: 50%;
}
.dual__list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
[data-theme="dark"] .dual__list li::after { border-color: #93C5FD; }

/* Lista de "no encaja": el mismo bloque pero con un guion neutro en vez del
   check, para no marcar con visto bueno cosas que son descartes. */
.dual__list--no li::before { background: rgba(148, 163, 184, .18); }
.dual__list--no li::after {
  left: 5px; top: 13px;
  width: 7px; height: 0;
  border-left: 0;
  border-bottom: 2px solid #94A3B8;
  transform: none;
}
[data-theme="dark"] .dual__list--no li::after { border-color: #64748B; }

.dual__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  gap: 6px;
}
.dual__link svg { width: 60px; height: 24px; }

@media (max-width: 840px) {
  .dual { grid-template-columns: 1fr; }
  .dual__link { transform: rotate(90deg); margin: 8px 0; }
}

/* =========================================================
   Features (Panel)
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
/* El copy de las tarjetas es de una frase, así que sin una altura mínima
   quedaban aplastadas (sobre todo las de doble ancho). El párrafo crece para
   llenar el hueco y deja los chips pegados abajo, alineados entre tarjetas. */
.feature { min-height: 210px; }
.feature > p { flex: 1 1 auto; margin-bottom: 0; }
.feature .chips { margin-top: 18px; }
@media (max-width: 640px) { .feature { min-height: 0; } }

/* El antes y el después de cada tarjeta.
 *
 * Enseñar solo lo que hace el programa obliga a que quien lee traduzca solo
 * qué se ahorra. Poniendo al lado el trabajo que hoy hace a mano, la ventaja
 * se lee sin traducir nada. */
/* Las dos caras, enfrentadas y centradas. Antes eran dos renglones pequeños
   debajo del texto y se leían como una nota al pie; es la comparación que
   explica para qué sirve la función, así que se ve como lo que es: dos fichas,
   la de hoy apagada y la de Rendia en color. */
.feature__ba {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.5;
}
/* La píldora va montada sobre el filo de la ficha, como una etiqueta cosida:
   dentro quedaba como una palabra suelta encima del texto. De ahí el hueco
   arriba (padding-top) y el desplazamiento negativo. */
.feature__ba span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 240px;
  max-width: 380px;
  text-align: center;
  text-wrap: pretty;
  padding: 26px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.feature__ba b {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
/* El icono, por máscara: toma el color del texto de la píldora, así que sirve
   igual en la gris y en la azul sin tener dos versiones. */
.feature__ba b::before {
  content: '';
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: currentColor;
}

/* El antes: gris, apagado, y un reloj porque de lo que habla es del tiempo
   que se va. */
.feature__old { color: var(--text-soft); }
.feature__old b {
  color: var(--text-soft);
  background: var(--surface);
}
.feature__old b::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* El con Rendia: azul de marca, con la marca misma en la píldora. El halo
   suave es lo que hace que el ojo vaya aquí y no a la de al lado. */
.feature__new {
  color: var(--text);
  font-weight: 600;
  border-color: rgba(33, 118, 255, .28);
  background:
    linear-gradient(180deg, rgba(33, 118, 255, .10), rgba(33, 118, 255, .04));
  box-shadow: 0 6px 20px -12px rgba(33, 118, 255, .55);
}
.feature__new b {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px -4px rgba(33, 118, 255, .6);
}
/* La marca en su caja, como el icono de la aplicación: se lee como un avatar
   y no como un trazo suelto. Va por background y no por máscara porque aquí
   interesan sus dos colores, no la silueta. */
.feature__new b::before {
  width: 15px;
  height: 15px;
  background: url("/brand/favicon.svg") center / contain no-repeat;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}

.feature--wide { grid-column: span 2; }
@media (max-width: 960px) { .feature--wide { grid-column: span 2; } }
@media (max-width: 640px) { .feature--wide { grid-column: span 1; } }

.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--fi, var(--primary)) 12%, transparent);
  color: var(--fi, var(--primary));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature__icon svg { width: 22px; height: 22px; }

.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .96rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* --- Feature IA (destacada) --- */
.feature--ai {
  grid-column: span 1;
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 71, 209, .18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(33, 118, 255, .18), transparent 55%),
    var(--surface);
  border-color: transparent;
  box-shadow: 0 20px 40px -22px rgba(140, 71, 209, .35), var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.feature--ai::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--kcal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* Sello de "va aparte del plan base".
 *
 * La app del cliente no entra en la versión base, y decirlo solo en la tabla
 * de precios obliga a bajar hasta allí para enterarse. El sello lo dice donde
 * se está leyendo. En línea, no absoluto: aquí acompaña a un título, no cuelga
 * de una esquina como el de las fichas. */
/* Doble clase a propósito: dentro de la lista de planes hay un
   `.beta__tiers span` que gana por especificidad y dejaba el rótulo en gris
   sobre el degradado, ilegible. `.plus.plus` pesa más sin tener que recolocar
   el bloque en el fichero. */
.plus.plus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--kcal));
  color: #fff;
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
  margin-left: 8px;
}
/* Sobre el azul de la sección, el degradado no se distingue del fondo y el
   blanco translúcido deja el texto con muy poco contraste. Se invierte:
   pastilla blanca y letra azul. */
.section--app .plus.plus { background: #fff; color: var(--primary-deep); }

.feature__badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--kcal));
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 8px 18px -8px rgba(140, 71, 209, .6);
}
.feature__icon--ai {
  background: linear-gradient(135deg, var(--primary), var(--kcal));
  color: #fff;
}
.chip--ai {
  background: linear-gradient(135deg, rgba(33,118,255,.14), rgba(140,71,209,.14));
  color: var(--text);
  border-color: rgba(140,71,209,.28);
}
@media (min-width: 961px) {
  .feature--ai { grid-column: span 1; }
}

/* =========================================================
   App section (móvil)
   ========================================================= */
.section--app {
  color: #fff;
  background: var(--grad-header);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}
[data-theme="dark"] .section--app {
  background: linear-gradient(135deg, #1E3A8A 0%, #3730A3 100%);
}
.app__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.app__blob {
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%);
  filter: blur(80px);
}

.app__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 940px) {
  .app__inner { grid-template-columns: 1fr; gap: 60px; }
}

.app__copy .eyebrow { margin-bottom: 20px; }
.app__title {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
}
.app__lead {
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.app__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app__features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: rgba(255,255,255,.9);
  font-size: .96rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease;
}
.app__features li:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
}
.app__features li strong { color: #fff; }
.app__ico {
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

/* ---- Phone mockup ---- */
.app__mock {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: #0F172A;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, .5),
    0 0 0 3px rgba(255,255,255,.08),
    inset 0 0 0 2px rgba(255,255,255,.05);
}
.phone__notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #2176FF 0%, #4F46E5 65%, #4F46E5 100%);
  padding: 44px 18px 20px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding: 0 6px;
}
.phone__status-icons {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.phone__status-icons svg {
  width: 16px; height: 10px;
  color: #fff;
}

.phone__hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 6px;
}
.phone__hola {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}
.phone__day {
  font-size: .78rem;
  opacity: .85;
}
.phone__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  backdrop-filter: blur(6px);
}

/* Glassmorphism card en la app */
.phone__ring-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.phone__ring {
  position: relative;
  width: 96px; height: 96px;
  flex-shrink: 0;
}
.phone__ring svg { width: 100%; height: 100%; }
.phone__ring-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.phone__ring-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}
.phone__ring-label {
  font-size: .62rem;
  opacity: .8;
  margin-top: 4px;
}

.phone__macros {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.phone__macro {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}
.phone__macro-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.phone__macro-name { flex: 1; opacity: .85; }
.phone__macro-val {
  font-weight: 700;
}

.phone__meals {
  background: rgba(255,255,255,.94);
  border-radius: 22px;
  padding: 14px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone__meals-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 2px;
}
.phone__meals-link {
  font-size: .72rem;
  color: var(--primary);
  font-weight: 700;
}

.phone__meal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.phone__meal--active {
  background: var(--primary-100);
  border-color: rgba(33,118,255,.35);
}
[data-theme="dark"] .phone__meal { background: #F1F5F9; }
[data-theme="dark"] .phone__meal--active { background: #DBE7FE; }
.phone__meal-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.phone__meal-emoji { font-size: .9rem; }
.phone__meal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.25;
}
.phone__meal-meta {
  font-size: .72rem;
  color: var(--text-soft);
  margin-top: 3px;
}
.phone__meal-swipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .68rem;
  color: var(--primary);
  font-weight: 600;
}
.phone__dots {
  display: inline-flex;
  gap: 3px;
}
.phone__dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(33,118,255,.3);
}
.phone__dots span.on {
  background: var(--primary);
  width: 14px;
  border-radius: 999px;
}

/* Chips flotantes sobre el móvil */
.phone-float {
  position: absolute;
  background: rgba(255,255,255,.94);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.35);
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.phone-float--tl { top: 20px; left: -20px; animation-delay: 0s; }
.phone-float--br { bottom: 60px; right: -30px; animation-delay: -3s; }

.phone-float__ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary-100);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1rem;
}
.phone-float__ico svg { width: 16px; height: 16px; }
.phone-float__ico--alt {
  background: rgba(38,192,171,.18);
  color: var(--fiber);
}
.phone-float__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.2;
  color: var(--text);
}
.phone-float__meta {
  font-size: .68rem;
  color: var(--text-soft);
  margin-top: 2px;
}

@media (max-width: 560px) {
  .phone-float--tl, .phone-float--br { display: none; }
  .phone { transform: scale(.9); }
}

/* =========================================================
   Por qué Rendia
   ========================================================= */
.whys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .whys { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .whys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .whys { grid-template-columns: 1fr; } }

/* Variante de 3 tarjetas: el grid base reparte en 5 columnas (son 5 en "Por qué
   Rendia"), así que con 3 items quedaban estranguladas a 1/5 del ancho. */
.whys--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .whys--3 { grid-template-columns: 1fr; } }

.why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.why:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.why h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.why p { font-size: .9rem; }

/* =========================================================
   CTA final
   ========================================================= */
.cta {
  padding: 40px 0 120px;
  overflow: hidden;
}
.cta__card {
  position: relative;
  background: var(--grad-header);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 80px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(33,118,255,.55);
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.cta__blob--a { width: 400px; height: 400px; background: rgba(255,255,255,.25); top: -180px; left: -100px; }
.cta__blob--b { width: 380px; height: 380px; background: rgba(140,71,209,.5); bottom: -180px; right: -80px; }

.cta__content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta__card h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.cta__card p {
  color: rgba(255,255,255,.9);
  font-size: 1.08rem;
  margin-bottom: 28px;
}
.cta__note {
  margin-top: 16px;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
}

/* =========================================================
   Footer
   ========================================================= */
/*
 * El pie repite el tratamiento de la barra: mismo azul de marca, para que la
 * página quede rematada arriba y abajo y el logo se lea igual en los dos
 * extremos. Los tokens se reasignan aquí y el contenido —copyright y enlaces—
 * se adapta solo, igual que en .nav.
 */
.footer {
  border-top: 1px solid transparent;
  padding: 32px 0;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-deeper) 100%);

  --text: #fff;
  --text-muted: rgba(255, 255, 255, .82);
  --text-soft: rgba(255, 255, 255, .62);
  --surface: rgba(255, 255, 255, .14);
  --border: rgba(255, 255, 255, .22);

  /* Explícito por lo mismo que en .nav: el color heredado viene de body y se
     resolvería en oscuro. */
  color: var(--text);
}

/* Blanco, no --primary, que sobre el azul no se leería. --primary se deja
   intacto para que la caja del logo conserve su trazo azul. */
.footer .brand__word { color: #fff; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: .85rem;
  color: var(--text-soft);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__links a {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--primary); }

/* =========================================================
   Reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Accesibilidad — skip link, foco visible, sr-only
   ========================================================= */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

.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;
}

.container--narrow { max-width: 800px; }

/* =========================================================
   Nav móvil
   ========================================================= */
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  place-items: center;
  gap: 4px;
  flex-direction: column;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px 22px;
}
.nav__mobile nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.nav__mobile nav a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav__mobile nav a:last-child { border-bottom: 0; }
.nav__mobile .btn { width: 100%; justify-content: center; }

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}
@media (min-width: 821px) {
  .nav__mobile { display: none !important; }
}

/* Ancla bajo nav sticky sin JS */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* La banda de "Rendia en números" —12 horas ahorradas, 27 pasos del tour— se
   quitó de la landing: ninguna de esas cifras estaba medida. Sus estilos se
   fueron con ella. */

/* =========================================================
   Cómo funciona — pasos
   ========================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.step__num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  background: var(--grad-header);
  box-shadow: var(--shadow-primary);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* Conector entre pasos */
@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -20px;
    width: 20px;
    border-top: 2px dashed var(--border-strong);
  }
}

/* =========================================================
   Testimonios — sin usar hasta tener citas reales.
   Markup de la sección: ver historial de git (index.html).
   ========================================================= */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  margin: 0;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quote blockquote {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--primary);
  opacity: .5;
  margin-bottom: 4px;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
}
.quote figcaption > span:last-child { display: flex; flex-direction: column; }
.quote__avatar {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-soft);
  font-weight: 700;
}
.quote__role { color: var(--text-soft); font-size: .82rem; }

/* =========================================================
   Seguridad / RGPD
   ========================================================= */
.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--grad-header-soft);
}
@media (max-width: 900px) {
  .security { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
}
.security__copy .eyebrow { margin-bottom: 16px; }
.security__copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.security__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.security__list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .93rem;
  color: var(--text-muted);
}
.security__list li strong { color: var(--text); }
.security__list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 17px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--fiber);
  opacity: .18;
}
.security__list li::after {
  content: "";
  position: absolute;
  left: 20px; top: 21px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--fiber);
  border-bottom: 2px solid var(--fiber);
  transform: rotate(-45deg);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  transition: color .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--primary); }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 27px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 22px 22px; }
.faq__body p { font-size: .96rem; }

/* =========================================================
   Formulario del CTA
   ========================================================= */
.cta__form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
@media (max-width: 560px) { .cta__form { flex-direction: column; } }

.cta__input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color .2s ease;
}
.cta__input::placeholder { color: var(--text-soft); }
.cta__input:focus { outline: none; border-color: rgba(255,255,255,.75); }
.cta__input[aria-invalid="true"] { border-color: #FCA5A5; }
.cta__form .btn { justify-content: center; white-space: nowrap; }
/* El reto anti-bot. Vacío hasta que alguien toca el campo, así que no reserva
   alto: si lo hiciera, dejaría un hueco en blanco a quien solo pasa a leer. */
.cta__turnstile {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.cta__turnstile:empty { margin-top: 0; }

.cta__msg {
  min-height: 22px;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}

/* Enlace activo en el nav */
.nav__links a.is-active {
  color: var(--primary);
  background: var(--primary-100);
}

/* =========================================================
   Beta (sustituye a la tabla de precios)
   ========================================================= */
.beta {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .beta { grid-template-columns: 1fr; } }

.beta__main {
  position: relative;
  padding: 38px 34px;
  border: 2px solid transparent;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-header) border-box;
  box-shadow: var(--shadow-lg);
}
.beta__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-header);
  box-shadow: var(--shadow-primary);
}
.beta__main h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
}
.beta__main > p { margin-bottom: 24px; }

.beta__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
@media (max-width: 620px) { .beta__list { grid-template-columns: 1fr; } }
.beta__list li {
  position: relative;
  padding-left: 28px;
  font-size: .95rem;
  color: var(--text-muted);
}
.beta__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-100);
}
.beta__list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
[data-theme="dark"] .beta__list li::after { border-color: #93C5FD; }

.beta__side {
  padding: 32px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-2xl);
  background: var(--grad-header-soft);
}
.beta__side h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.beta__side-lead {
  font-size: .9rem;
  margin-bottom: 20px;
}
.beta__tiers {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beta__tiers li {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.beta__tiers strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .98rem;
  color: var(--text);
  margin-bottom: 2px;
}
.beta__tiers span {
  font-size: .87rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.beta__side-note {
  font-size: .82rem;
  color: var(--text-soft);
  font-style: italic;
}

/* Nota bajo la lista de la app del cliente */
.app__foot {
  margin-top: 22px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}

/* Acceso para quien ya tiene cuenta */
.nav__login {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.nav__login:hover { color: var(--text); background: var(--surface); }
@media (max-width: 820px) { .nav__login { display: none; } }

.nav__mobile-login {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.nav__mobile-login:hover { color: var(--primary); }

/* =========================================================
   Accesos — las dos puertas del producto
   ========================================================= */
.doors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }

.door {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.door:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.door:hover .door__arrow { transform: translateX(4px); color: var(--primary); }

.door__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-100);
}
.door__icon svg { width: 26px; height: 26px; }
.door--alt .door__icon { color: var(--fiber); background: rgba(38,192,171,.14); }

.door__body { flex: 1; min-width: 0; }
.door__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.door__tag--alt { color: var(--fiber); }
.door__body h3 { margin-bottom: 6px; }
.door__body p { font-size: .93rem; margin-bottom: 10px; }

.door__url {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  color: var(--text-soft);
}

.door__arrow {
  flex: none;
  color: var(--text-soft);
  transition: transform .25s ease, color .25s ease;
}
.door__arrow svg { width: 22px; height: 22px; }

.doors__note {
  margin-top: 22px;
  text-align: center;
  font-size: .9rem;
  color: var(--text-soft);
}

.nav__mobile-access {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.nav__mobile-access a {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav__mobile-access a:hover { color: var(--primary); border-color: var(--primary); }

/* =========================================================
   Apartados pendientes de contenido
   =========================================================
   Los tres van con `hidden` en el HTML hasta que haya material de verdad:
   una captura del generador, testimonios con permiso y la foto de quien está
   detrás. `hidden` no pinta nada, así que la página no enseña huecos; para
   encenderlos basta con quitar el atributo. */

/* ----- Sección profunda (la IA) ----- */
.deep__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .deep__inner { grid-template-columns: 1fr; gap: 32px; } }

.deep__copy h2 { margin: 18px 0 14px; }
.deep__lead { font-size: 1.05rem; }

.deep__steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.deep__steps li { display: flex; gap: 14px; align-items: flex-start; }
.deep__steps b {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-100);
  color: var(--primary-600);
  font-family: var(--font-heading);
  font-size: .85rem;
}
.deep__steps div { color: var(--text-muted); font-size: .96rem; }
.deep__steps strong { color: var(--text); }

/* Nota al margen, no tarjeta: la raya es la del inciso de toda la vida.
   En gris y de 2px, que el peso de la letra ya marca el énfasis y una
   barra azul de 3px sobre texto suelto grita más de lo que dice. */
.deep__note {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--border-strong);
  font-weight: 600;
  color: var(--text);
}

/* El marco de la captura. Con la imagen dentro, el fondo no se ve. */
.deep__shot {
  min-height: 320px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}
.deep__shot img { border-radius: var(--r-lg); width: 100%; }

/* ----- Testimonios ----- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote__stars { color: #F59E0B; letter-spacing: 2px; font-size: .9rem; }
.quote blockquote { margin: 0; color: var(--text); font-size: .98rem; line-height: 1.6; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote__who strong { display: block; font-size: .92rem; }
.quote__who span { font-size: .82rem; color: var(--text-soft); }

/* ----- Quién está detrás ----- */
.founder {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .founder { flex-direction: column; gap: 18px; } }
.founder__face { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.founder h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 12px; }
.founder p + p { margin-top: 12px; }
.founder__sign { color: var(--text-soft); font-size: .9rem; }

/* ----- Bloque de confianza ----- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px 24px;
}
.trust__item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.trust__item p { font-size: .92rem; }

/* =========================================================
   Panel del nutricionista — diapositivas
   =========================================================
   El carro es scroll nativo con anclaje: sin librería, sin dependencias y sin
   quedarse roto si el guion no llega. Los botones y los puntos que añade
   script.js son un extra encima de algo que ya funciona con el dedo y con el
   teclado. */
.slides { position: relative; }

.slides__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Sitio para la sombra de las tarjetas, que si no se recorta al desbordar. */
  padding: 6px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.slides__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .slides__track { scroll-behavior: auto; } }

/* El foco es visible a propósito: el carro se recorre con las flechas y hay
   que ver dónde se está. */
.slides__track:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--r-lg);
}

/* Arriba, el texto a la izquierda y la comparación en la esquina derecha;
   debajo, la captura a todo el ancho.
   La captura ocupaba antes una de dos columnas y se quedaba en unos 600 px: a
   ese tamaño una pantalla de la aplicación no se lee, que es justo lo que
   venía a enseñar. */
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  /* La comparación se lleva algo menos de la mitad: las dos fichas caben en
     paralelo sin ahogar al texto de la izquierda. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  grid-template-areas:
    "copy comparacion"
    "shot shot";
  column-gap: 28px;
  row-gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.slide__copy { grid-area: copy; }
.slide__shot { grid-area: shot; }
.slide .feature__ba {
  grid-area: comparacion;
  align-self: start; /* pegada arriba, a la altura del titular */
  flex-wrap: nowrap;
}
/* Las dos, en paralelo y del mismo ancho. El flex-basis en 0 es lo que las
   iguala: con el de 240 px de base, la ficha de la frase más larga se quedaba
   más ancha que la otra. */
.slide .feature__ba span { flex: 1 1 0; min-width: 0; max-width: none; }

@media (max-width: 900px) {
  /* En estrecho no hay esquina que aprovechar: se apila y la comparación
     vuelve a sus dos fichas en fila. */
  .slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "comparacion" "shot";
    gap: 18px;
    padding: 22px 14px 14px;
  }
  .slide .feature__ba { flex-direction: row; width: auto; }
}

/* La de la IA conserva su fondo, que es la que hay que mirar. */
.slide--ai {
  border-color: rgba(140, 71, 209, .35);
  background: linear-gradient(135deg, rgba(33,118,255,.06), rgba(140,71,209,.08)), var(--surface);
}

/* El texto encima, que es lo que se lee primero y da contexto a la captura.
   Coincide con el orden del HTML, así que no hace falta reordenar nada. */
.slide__copy { position: relative; min-width: 0; }
.slide__copy h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.slide__copy > p { font-size: 1.02rem; }
/* El tope va en el titular y el párrafo, no en el bloque: así la comparación
   de abajo puede centrarse a todo el ancho de la tarjeta. Sin tope, la línea
   cruzaría los 1200 px y se perdería el renglón al volver. */
.slide__copy h3, .slide__copy > p { max-width: 68ch; }
.slide__copy .feature__badge { position: static; display: inline-block; margin-bottom: 10px; }
/* El bloque ya no cuelga de .slide__copy: es hermano suyo, para poder ir a la
   esquina de la tarjeta. */
.slide > .feature__ba { font-size: .88rem; }

/* El hueco de la captura. Con la imagen dentro, el fondo de trazos no se ve. */
.slide__shot {
  min-height: 300px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}
/* El height:auto es necesario porque la etiqueta lleva width/height puestos
   (reservan el hueco y evitan el salto al cargar): sin él, la imagen saldría
   con los 1200 px de alto del atributo. */
.slide__shot img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
/* Con la captura dentro sobran el alto mínimo y el trazo discontinuo, que era
   el aviso de "aquí falta algo". Queda un borde fino que separa el blanco de
   la interfaz del blanco de la página. */
.slide__shot--filled {
  min-height: 0;
  background: none;
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 820px) {
  .slide__shot { min-height: 200px; }
  .slide__shot--filled { min-height: 0; }
}

/* ----- Botones y puntos (los pone script.js) ----- */
.slides__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: background .2s ease, opacity .2s ease;
}
.slides__nav:hover { background: var(--surface-2); }
.slides__nav[disabled] { opacity: .35; cursor: default; }
.slides__nav svg { width: 20px; height: 20px; }
.slides__nav--prev { left: -14px; }
.slides__nav--next { right: -14px; }
@media (max-width: 1000px) {
  .slides__nav--prev { left: 4px; }
  .slides__nav--next { right: 4px; }
}
/* En estrecho la diapositiva se apila y se hace alta, así que unas flechas
   centradas en vertical caen justo encima del texto. Se quitan: ahí se pasa
   con el dedo, y los puntos siguen estando para saltar. */
@media (max-width: 820px) { .slides__nav { display: none; } }

.slides__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.slides__dot {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--border-strong);
  transition: background .2s ease, transform .2s ease;
}
.slides__dot[aria-current="true"] { background: var(--primary); transform: scale(1.35); }
.slides__dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
