/* ==================================================================
   Woofit — portada (index.html). Solo esta página: las demás siguen
   con styles.css.

   Tokens sacados de la app (lib/theme.ts, release/1.0): lienzo crema
   #FAF8F5, tarjetas blancas con borde fino #EBE5DF, tinta #2E2E2E,
   salvia #4A5D4E para lo principal, terracota #D97D54 para destacar.
   Radios de la app: 16 / 20 / 32 y píldoras. Letra: la del sistema
   (SF en Apple, como la app) con Inter de respaldo; tracking negativo
   que crece con el tamaño (lib/typography.ts).
   ================================================================== */

:root {
  --bg: #FAF8F5;
  --bg-2: #F4F0EA;
  --card: #FFFFFF;
  --card-2: #F1ECE8;
  --line: #EBE5DF;
  --ink: #1F1F1F;
  --ink-2: #2E2E2E;
  --muted: #6E6A66;
  --grey: #8F8982;           /* segunda línea de los titulares (≥3:1 en grande) */
  --sage: #4A5D4E;
  --sage-soft: #E5ECE7;
  --sage-deep: #35452F;
  --clay: #D97D54;
  --clay-soft: #F7ECE6;
  --clay-deep: #B45F3B;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 32px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(60, 45, 30, .05), 0 4px 14px -6px rgba(60, 45, 30, .10);
  --shadow-md: 0 1px 2px rgba(60, 45, 30, .05), 0 18px 40px -18px rgba(60, 45, 30, .22);
  --shadow-lg: 0 2px 4px rgba(60, 45, 30, .06), 0 40px 80px -32px rgba(60, 45, 30, .38);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--pill);
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.line { display: block; }
.grey { color: var(--grey); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.section-sub, .lede, .split-p { color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--muted); line-height: 1.5; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--pill); border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.011em; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px #D9D1C9; background: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ==================================================================
   NAV — píldora flotante
   ================================================================== */
.nav-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; padding-inline: 12px; pointer-events: none; }
.nav {
  pointer-events: auto;
  position: relative;
  max-width: 1080px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 1px 2px rgba(60, 45, 30, .04), 0 10px 30px -18px rgba(60, 45, 30, .25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; display: block; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--pill); transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: var(--card-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--card-2); }
.lang button {
  border: 0; background: transparent; height: 30px; min-width: 38px; padding: 0 10px;
  border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.lang button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle .bar { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] .bar:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-child { transform: translateY(-3.4px) rotate(-45deg); }
.nav-sheet {
  pointer-events: auto;
  max-width: 1080px; margin: 8px auto 0; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet > a { text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 600; padding: 14px 14px; border-radius: var(--r-md); }
.nav-sheet > a:hover { background: var(--card-2); }
.lang-lg { margin: 8px 6px 4px; align-self: flex-start; }
.lang-lg button { height: 36px; padding: 0 16px; font-size: 15px; }

@media (max-width: 900px) {
  .nav-links, .nav-end > .lang { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .nav { padding-left: 12px; gap: 8px; }
  .brand span { font-size: 17px; }
  .nav-cta { padding: 0 12px; font-size: 14px; }
}

/* ==================================================================
   HERO
   ================================================================== */
.hero { position: relative; padding-top: 148px; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(217, 125, 84, .10), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(74, 93, 78, .07), transparent 70%);
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { max-width: 15ch; }
.lede { max-width: 34em; margin-top: 22px; font-size: 19px; }
.form-block { width: 100%; max-width: 480px; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pill-form {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--pill);
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pill-form:focus-within { border-color: #CFC6BD; box-shadow: 0 0 0 4px rgba(74, 93, 78, .12), var(--shadow-md); }
.pill-form input {
  flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none;
  padding: 0 8px 0 16px; font: inherit; font-size: 16px; color: var(--ink);
}
.pill-form input::placeholder { color: #A8A29B; }
.pill-form .btn { height: 46px; flex-shrink: 0; }
.waitlist-meta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--muted); text-align: center; line-height: 1.4;
}
.waitlist-meta .check { color: var(--sage); flex-shrink: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(74, 93, 78, .14); }

@media (max-width: 480px) {
  .hero { padding-top: 118px; }
  .lede { font-size: 17px; }
  .pill-form { flex-direction: column; border-radius: 26px; padding: 6px; }
  .pill-form input { width: 100%; height: 48px; text-align: center; padding: 0 12px; }
  .pill-form .btn { width: 100%; }
}

/* ---------- stage: teléfono, tarjetas y fotos ---------- */
.hero-stage {
  --pw: 300px;
  position: relative; margin: 56px auto 0; max-width: var(--container);
  height: calc(var(--pw) * 1.86);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.stage-glow {
  position: absolute; left: 50%; top: 8%; width: 640px; height: 640px; transform: translateX(-50%);
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 125, 84, .20), rgba(217, 125, 84, .06) 55%, transparent);
}
.stage-glow.sage { background: radial-gradient(closest-side, rgba(74, 93, 78, .16), rgba(74, 93, 78, .05) 55%, transparent); }

/* Marco de iPhone en CSS: la captura ya trae su barra de estado (9:41). */
.phone {
  --pw: 300px;
  position: relative; z-index: 2;
  width: var(--pw);
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(calc(150deg + var(--ry, 0deg) * 7), #4a4a4a 0%, #161616 22%, #0d0d0d 70%, #2b2b2b 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, calc(.14 + var(--glare, 0) * .16)),
    0 0 0 1px rgba(0, 0, 0, .55),
    var(--shadow-lg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * .136); background: var(--bg-2); }
.phone::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--pw) * .056); width: calc(var(--pw) * .29); height: calc(var(--pw) * .085);
  border-radius: var(--pill); background: #050505;
}
.phone-hero { position: absolute; left: 50%; top: 24px; transform: translateX(-50%) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Tarjetas flotantes en HTML */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.f-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.f-icon.clay { background: var(--clay-soft); color: var(--clay-deep); }
.f-icon.sage { background: var(--sage-soft); color: var(--sage); }
.f-icon.ink { background: var(--card-2); color: var(--ink); }
.f-text { display: flex; flex-direction: column; line-height: 1.25; }
.f-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.012em; }
.f-meta { font-size: 13.5px; color: var(--muted); }
.f-bell { color: var(--clay); margin-left: 2px; display: inline-flex; }
.f-streak {
  flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 18px 16px; border-radius: var(--r-xl);
}
.f-label, .ui-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-big { font-family: var(--display); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-top: 4px; }
.week { display: flex; gap: 5px; margin-top: 10px; }
.week i { width: 11px; height: 11px; border-radius: 50%; background: var(--clay); }
.week i.today { background: transparent; box-shadow: inset 0 0 0 2px var(--clay); }

.f-vaccine { top: 96px; right: calc(50% + 168px); }
.f-walk    { top: 300px; right: calc(50% + 118px); }
.f-streak  { top: 54px;  left: calc(50% + 172px); }
.f-pdf     { top: 236px; left: calc(50% + 132px); }
.f-deworm  { top: 380px; left: calc(50% + 176px); }

/* Fotos de perros: redondas, alrededor del teléfono */
.dog {
  position: absolute; z-index: 1; border-radius: 50%; overflow: hidden;
  background: var(--card-2); box-shadow: var(--shadow-md);
  border: 4px solid var(--card);
}
.dog img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dog-1 { width: 132px; height: 132px; top: 28px;  right: calc(50% + 420px); }
.dog-2 { width: 104px; height: 104px; top: 300px; right: calc(50% + 380px); }
.dog-3 { width: 112px; height: 112px; top: 150px; left: calc(50% + 440px); }
.dog-4 { width: 140px; height: 140px; top: 330px; left: calc(50% + 410px); }
/* Sin la foto, el hueco no se enseña (en producción). */
.dog.is-empty { display: none; }
/* En la vista previa (localhost o ?preview=1), un hueco marcado. */
.is-preview .dog.is-empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 8px, var(--bg-2) 8px, var(--bg-2) 16px);
  border: 2px dashed #CFC6BD; box-shadow: none;
}
.is-preview .dog.is-empty img { display: none; }
.is-preview .dog.is-empty::after { content: attr(data-label); font-size: 11px; font-weight: 600; color: var(--muted); }

@media (max-width: 1180px) {
  .dog-1, .dog-2, .dog-3, .dog-4 { width: 92px; height: 92px; }
  .dog-1 { right: calc(50% + 330px); top: 10px; }
  .dog-2 { right: calc(50% + 350px); top: 360px; }
  .dog-3 { left: calc(50% + 340px); top: 150px; }
  .dog-4 { left: calc(50% + 330px); top: 440px; }
}
@media (max-width: 960px) {
  .dog-2, .dog-4 { display: none !important; }
  .f-pdf { display: none; }
  .f-vaccine { right: calc(50% + 120px); }
  .f-walk { right: calc(50% + 110px); }
  .f-streak { left: calc(50% + 120px); }
  .f-deworm { left: calc(50% + 120px); }
  .dog-1 { right: calc(50% + 250px); top: 220px; width: 84px; height: 84px; }
  .dog-3 { left: calc(50% + 250px); top: 260px; width: 84px; height: 84px; }
}
/* Fila de fotos de perros bajo el formulario: solo en móvil (en escritorio
   van alrededor del teléfono). Mismos ficheros; un hueco vacío no se ve. */
.dog-stack { display: none; }

@media (max-width: 640px) {
  /* Móvil: el teléfono asoma entero por arriba; la racha en la esquina y dos
     avisos como notificaciones de iOS sobre la parte de abajo. Las fotos van
     en la fila de debajo del formulario. */
  .hero-stage { --pw: 220px; margin-top: 32px; height: calc(var(--pw) * 1.78); max-width: 440px; }
  .phone-hero { --pw: 220px; top: 8px; }
  .stage-glow { width: 420px; height: 420px; top: 4%; }
  .dog { display: none !important; }
  .f-pdf, .f-deworm { display: none; }
  .f-bell { display: inline-flex; margin-left: auto; }
  .f-streak { top: 40px; left: calc(50% + 66px); padding: 10px 14px 12px; border-radius: 18px; }
  .f-big { font-size: 28px; }
  .week { gap: 4px; margin-top: 6px; }
  .week i { width: 7px; height: 7px; }
  .f-vaccine, .f-walk {
    left: 0; right: 0; margin-inline: auto;
    width: min(316px, calc(100% - 40px));
    padding: 10px 14px 10px 10px; gap: 10px; border-radius: 18px;
    background: rgba(255, 255, 255, .9);
  }
  .f-vaccine { top: 214px; z-index: 4; }
  .f-walk { top: 282px; z-index: 3; width: min(296px, calc(100% - 60px)); opacity: .97; }
  .f-icon { width: 32px; height: 32px; border-radius: 9px; }
  .f-icon svg { width: 16px; height: 16px; }
  .f-title { font-size: 14px; }
  .f-meta { font-size: 12.5px; }
  /* Centradas con márgenes, no con transform: Reducir movimiento anula transform. */

  .dog-stack { display: flex; justify-content: center; margin-top: 2px; }
  .dog-mini {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 2.5px solid var(--bg); background: var(--card-2); box-shadow: var(--shadow-sm);
  }
  .dog-mini + .dog-mini { margin-left: -10px; }
  .dog-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .dog-mini.is-empty { display: none; }
  .dog-stack:not(:has(.dog-mini:not(.is-empty))) { display: none; }
  .is-preview .dog-stack, .is-preview .dog-stack:not(:has(.dog-mini:not(.is-empty))) { display: flex; }
  .is-preview .dog-mini.is-empty {
    display: block;
    background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 5px, var(--bg-2) 5px, var(--bg-2) 10px);
    border-style: dashed; border-color: #CFC6BD; box-shadow: none;
  }
  .is-preview .dog-mini.is-empty img { display: none; }
}

/* ==================================================================
   CHIPS
   ================================================================== */
.chips-band { padding: 40px 0 8px; }
.chips-label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 13px; border-radius: var(--pill);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.chips li svg { color: var(--sage); }
@media (max-width: 640px) {
  /* Una sola fila que se desliza, en vez de cuatro filas apiladas. */
  .chips-band { padding-top: 28px; }
  .chips {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 14px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: 0 0 auto; height: 38px; padding: 0 14px 0 11px; font-size: 14.5px; gap: 7px; }
}

/* ==================================================================
   SECTIONS
   ================================================================== */
.section { padding: 112px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; }
.section-head.left { text-align: left; align-items: flex-start; margin: 0; }
.section-head .section-sub { margin-top: 18px; }
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .section-sub, .split-p { font-size: 17px; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm); min-width: 0;
}
.tile-text h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); }
.tile-text p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile-log { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile-log .tile-text { flex: 0 0 32%; }
.tile-log .crop { flex: 1; margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--clay-soft); color: var(--clay-deep);
}
.tag-care { background: var(--sage-soft); color: var(--sage); }

/* Recortes de capturas: la región se da en fracciones de la imagen
   (x0, y0, ancho, alto). El contenedor toma la proporción de la región y
   la imagen se escala y se desplaza; con transform, los porcentajes son
   del propio tamaño de la imagen. */
.crop {
  --x0: 0; --y0: 0; --xw: 1;
  position: relative; overflow: hidden; margin-top: auto;
  border-radius: var(--r-lg); background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(60, 45, 30, .06);
  aspect-ratio: var(--ar);
}
.crop img {
  position: absolute; left: 0; top: 0; max-width: none; height: auto; display: block;
  width: calc(100% / var(--xw));
  transform: translate(calc(var(--x0) * -100%), calc(var(--y0) * -100%));
}
/* 01-home (660 × 1435) */
.crop-log   { --x0: .035; --y0: .226; --xw: .93; --ar: 2.376; }
.crop-rows  { --x0: .07;  --y0: .405; --xw: .86; --ar: 2.33; }
.crop-today { --x0: .035; --y0: .226; --xw: .93; --ar: 1.172; }
/* 10-health: «Lo próximo» (y 800–1222) */
.crop-upcoming { --x0: .035; --y0: .5575; --xw: .93; --ar: 1.45; }
/* 02-scan-vet-report */
.crop-records { --x0: .035; --y0: .075; --xw: .93; --ar: 1.19; }
/* 05-nutrition */
.crop-food { --x0: .035; --y0: .538; --xw: .93; --ar: 1.277; }
/* 07-lost-dog-alert */
.crop-lost { --x0: .035; --y0: .415; --xw: .93; --ar: 1.14; }
/* 03-vet-summary-pdf (707 × 1000) */
.crop-pdf { --x0: .06; --y0: .035; --xw: .88; --ar: 1.11; background: #fff; }

/* Cuidado compartido: el hogar encima de lo anotado hoy */
.ui-shared {
  margin-top: auto; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(60, 45, 30, .06);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.ui-shared .crop { margin-top: 0; width: 100%; border-radius: 14px; }
.home-pill.static { position: static; box-shadow: var(--shadow-sm); }

/* Racha: fragmento de interfaz */
.ui-streak {
  margin-top: auto; border-radius: var(--r-lg); background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(60, 45, 30, .06);
  padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ui-big { font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); margin-top: 10px; }
.ui-unit { font-size: 15px; color: var(--muted); margin-top: 4px; }
.week-lg { gap: 8px; margin-top: 16px; }
.week-lg i { width: 16px; height: 16px; }
.ui-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* En móvil, Funciones se desliza en horizontal: ver el bloque MÓVIL al final. */

/* ---------- spotlights ---------- */
.spotlight-alt { background: var(--bg-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-text .h2 { margin-bottom: 20px; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%234A5D4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.split-text .fine { margin-top: 22px; }
.split-visual { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.split-visual .stage-glow { top: 50%; transform: translate(-50%, -50%); width: 560px; height: 560px; }
.phone-lg { --pw: 290px; transform: translateX(var(--tx, 0px)) perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.visual-health .phone-lg { --tx: -36px; }
/* Pam: solo el teléfono con la conversación, centrado y quieto (aquí manda el
   chat: ni se inclina con el cursor ni lleva avisos flotando). */
.pdf-sheet {
  position: absolute; z-index: 3; right: 0; bottom: 18px; width: 250px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(60, 45, 30, .08), 0 30px 60px -24px rgba(60, 45, 30, .45);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(calc(-3deg + var(--rz, 0deg)));
  /* Sale del botón «Crear PDF y compartir» (home.js): --show 0 = dentro del
     botón (pequeña y transparente), 1 = en su sitio. Sin JS vale 1. */
  translate: calc((1 - var(--show, 1)) * var(--fromx, 0px)) calc((1 - var(--show, 1)) * var(--fromy, 0px));
  rotate: calc((1 - var(--show, 1)) * 9deg);
  scale: calc(.14 + .86 * var(--show, 1));
  opacity: clamp(0, calc(var(--show, 1) * 4), 1);
}
.pdf-sheet img { display: block; width: 100%; height: auto; }

/* El botón de la captura se puede pulsar (home.js le quita el «hidden»). Va
   justo encima del dibujado: en la captura (660 × 1435) ocupa x 33–627 e
   y 967–1065, y la captura mide --pw × .94 de ancho y empieza a --pw × .03. */
.pdf-btn {
  position: absolute; z-index: 2;
  left: calc(var(--pw) * .077); width: calc(var(--pw) * .846);
  top: calc(var(--pw) * 1.4073); height: calc(var(--pw) * .1396);
  margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease;
}
.pdf-btn::before { content: ""; position: absolute; inset: -8px -4px; } /* más fácil de acertar con el dedo */
.pdf-btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .pdf-btn:hover { background: rgba(255, 255, 255, .09); }
}
/* Pulsado: se oscurece al tocar, no al soltar (y cuando la hoja sale sola). */
.pdf-btn:active, .pdf-btn.is-pressed { background: rgba(40, 22, 8, .18); transition-duration: 0s; }

.visual-family .crop-today {
  position: relative; z-index: 2; width: min(470px, 100%); margin: 0;
  border-radius: var(--r-2xl); box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.f-who { z-index: 3; }
.f-who-1 { top: 64px; right: -8px; }
.f-who-2 { bottom: 76px; left: -12px; }
.home-pill {
  position: absolute; z-index: 3; top: 30px; left: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: var(--pill);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--card); flex-shrink: 0;
}
.avatar.sage { background: var(--sage-soft); color: var(--sage); }
.avatar.clay { background: var(--clay-soft); color: var(--clay-deep); }
.f-who .avatar { width: 38px; height: 38px; font-size: 15px; border: 0; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .split-visual { min-height: 0; padding: 24px 0; }
}
@media (max-width: 640px) {
  .phone-lg { --pw: 236px; }
  .visual-health .phone-lg { --tx: -28px; }
  .pdf-sheet { width: 168px; right: -4px; bottom: 6px; }
  .f-who-1 { top: auto; bottom: -6px; right: -4px; }
  .f-who-2 { display: none; }
  .visual-family { padding-top: 40px; }
  .home-pill { top: 10px; left: 6px; font-size: 13px; }
  .split-visual .stage-glow { width: 380px; height: 380px; }
}

/* ---------- carrusel de pantallas ---------- */
.screens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .2s var(--ease), opacity .2s, background-color .2s;
}
.round-btn:hover { background: var(--bg); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .35; cursor: default; }
.carousel { position: relative; }
.track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 28px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; border-radius: var(--r-xl); }
.slide { flex: 0 0 auto; width: 292px; scroll-snap-align: start; }
.slide-card {
  height: 100%; padding: 14px 14px 20px; border-radius: var(--r-2xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.slide-shot { border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px rgba(60, 45, 30, .06); }
.slide-shot img { display: block; width: 100%; height: auto; }
.slide-card figcaption { margin: 16px 6px 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }
@media (max-width: 640px) {
  .screens-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .slide { width: 74vw; max-width: 292px; }
}

/* ---------- cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--clay-soft); color: var(--clay-deep); font-family: var(--display); font-size: 20px; font-weight: 700;
}
.step h3 { margin-top: 22px; font-size: 20px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); }
.step p { margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.5; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- planes ---------- */
.plans { background: var(--bg-2); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--pill);
  background: var(--clay-soft); color: var(--clay-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.plan-price { margin-top: 18px; font-family: var(--display); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; color: var(--ink); }
.plan-period { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan .btn { margin-top: 24px; }
.plan .checks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); gap: 11px; }
.plan .checks li { font-size: 15px; }
.plan-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); }
.plan-dark .plan-name, .plan-dark .plan-price { color: var(--bg); }
.plan-dark .plan-period { color: #B5AFA8; }
.plan-dark .checks { border-top-color: rgba(255, 255, 255, .12); }
.plan-dark .checks li { color: #EDE8E2; }
.plan-dark .checks li::before {
  background-color: rgba(255, 255, 255, .10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23F0B597' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plans .fine { margin: 32px auto 0; max-width: 620px; }
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%232E2E2E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-list details a { color: var(--sage); font-weight: 600; }

/* ---------- llamada final ---------- */
.cta { padding-top: 24px; }
.cta-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 24px; border-radius: 40px;
  background: var(--ink); color: var(--bg);
}
.cta-card::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 760px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 125, 84, .30), rgba(200, 137, 59, .08) 60%, transparent);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.app-icon { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -12px rgba(0, 0, 0, .6); margin-bottom: 28px; }
.cta-card .h2 { color: var(--bg); }
.cta-card .grey { color: var(--grey); }
.cta-p { margin-top: 16px; color: #C9C3BC; font-size: 18px; }
.cta-card .pill-form { border-color: transparent; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.cta-card .waitlist-meta { color: #B5AFA8; }
.cta-card .waitlist-meta .check { color: #F0B597; }
@media (max-width: 640px) {
  .cta-card { padding: 56px 20px; border-radius: 32px; }
  .cta { padding-top: 8px; }
}

/* ---------- footer ---------- */
.footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-tag { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 26ch; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 5px 0; }
.footer-grid a:not(.brand):hover { color: var(--sage); }
.footer-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ---------- aviso de cookies (AEPD) ----------
   Un diálogo en el centro (script.js). Aceptar y Rechazar son idénticos:
   misma forma, tamaño y color, porque la AEPD exige la misma prominencia
   para las dos opciones. El interruptor de anuncios empieza apagado. */
.consent {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 28px 28px 20px; border: 0; border-radius: var(--r-2xl);
  background: var(--bg); color: var(--ink-2); text-align: center;
  box-shadow: 0 30px 80px -20px rgba(31, 31, 31, .45);
  overscroll-behavior: contain;
}
.consent::backdrop { background: rgba(31, 31, 31, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.consent[open] { animation: consent-in .45s var(--ease); }
.consent[open]::backdrop { animation: consent-fade .45s var(--ease); }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes consent-fade { from { opacity: 0; } }
html:has(.consent[open]) { overflow: hidden; }
.consent-icon { display: block; width: 44px; height: 44px; margin: 0 auto 14px; }
.consent-title { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); outline: none; }
.consent-body { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn {
  height: 48px; border: 0; border-radius: var(--pill);
  background: var(--ink); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: scale .12s ease, background-color .15s ease;
}
.consent-btn[hidden] { display: none; }
.consent-btn:active { scale: .97; }
@media (hover: hover) and (pointer: fine) { .consent-btn:hover { background: #000000; } }
.consent-links { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.consent-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-link[hidden], .consent-link[hidden] + span { display: none; }
.consent-links a { color: var(--ink-2); text-underline-offset: 3px; }
.consent-prefs { margin: 0 0 18px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.consent-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.consent-row + .consent-row { border-top: 1px solid var(--line); }
label.consent-row { cursor: pointer; }
.consent-row-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.consent-row-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.consent-row-desc { font-size: 13px; line-height: 1.45; color: var(--muted); }
.consent-always { flex-shrink: 0; padding: 4px 9px; border-radius: var(--pill); background: var(--sage-soft); color: var(--sage); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* Interruptor tipo iOS, apagado de partida. */
.consent-switch {
  position: relative; flex-shrink: 0; width: 48px; height: 30px; margin: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  border-radius: var(--pill); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s var(--ease);
}
.consent-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: translate .25s var(--ease);
}
.consent-switch:checked { background: var(--sage); box-shadow: none; }
.consent-switch:checked::after { translate: 18px 0; }
.consent-switch:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
@media (max-width: 480px) {
  .consent { padding: 24px 20px 18px; border-radius: 28px; }
  .consent-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent[open], .consent[open]::backdrop { animation: none; }
  .consent-btn, .consent-switch, .consent-switch::after { transition: none; }
}

/* Selector de planes (solo móvil): Gratis · Care · Family, como el paywall. */
.plan-switch { display: none; }

/* ==================================================================
   MÓVIL (≤ 640 px). En escritorio no cambia nada.
   - Funciones y Planes se deslizan en horizontal: una tarjeta a la vista y
     la siguiente asomando, en vez de ocho y tres tarjetas altas apiladas.
   - Cómo funciona en filas; menos aire entre secciones.
   ================================================================== */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .h2 { font-size: 32px; }
  .section-sub, .split-p { font-size: 16.5px; }
  .eyebrow { margin-bottom: 14px; }

  /* Carriles horizontales: de borde a borde, con el margen de la página dentro. */
  .bento, .plan-grid {
    display: flex; gap: 12px; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
    max-width: none;
  }
  .bento::-webkit-scrollbar, .plan-grid::-webkit-scrollbar { display: none; }
  .bento > .tile, .plan-grid > .plan { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }

  /* Funciones: misma altura, el recorte abajo con la misma proporción. */
  .tile, .tile-log { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; border-radius: 24px; }
  .tile-log .tile-text { flex: none; }
  .tile-text h3 { font-size: 18px; }
  .tile-text p { font-size: 14.5px; margin-top: 4px; }
  .tags { margin-bottom: 8px; }
  .crop-log { --ar: 1.19; }
  /* .crop-upcoming se queda en 1.45: más alto entraría la lista de abajo. */
  .crop-records { --ar: 1.3; }
  .crop-food { --ar: 1.3; }
  .crop-lost { --ar: 1.3; }
  .crop-pdf { --ar: 1.3; }
  .ui-streak { padding: 18px 14px; }
  .ui-big { font-size: 52px; }
  .week-lg i { width: 13px; height: 13px; }

  /* Spotlights: más compactos. */
  .split { gap: 24px; }
  .split-visual { padding: 4px 0 0; }
  .visual-family { padding-top: 44px; }
  .phone-lg { --pw: 214px; }
  .visual-health .phone-lg { --tx: -30px; }
  .pdf-sheet { width: 150px; right: 0; bottom: 4px; }
  .checks { margin-top: 18px; gap: 10px; }
  .checks li { font-size: 15.5px; }

  /* Pantallas */
  .screens-head { margin-bottom: 20px; gap: 16px; }
  .round-btn { width: 44px; height: 44px; }
  .track { gap: 14px; padding-bottom: 18px; }

  /* Cómo funciona: filas con el número a la izquierda. */
  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; border-radius: 20px; }
  .step-num { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .step h3 { margin-top: 0; font-size: 17px; align-self: end; }
  .step p { margin-top: 0; font-size: 15px; }

  /* Planes: selector arriba y una tarjeta a la vez. */
  .plan-switch {
    display: flex; gap: 4px; padding: 4px; margin: 0 auto 16px; width: fit-content;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow-sm);
  }
  .plan-switch button {
    border: 0; background: transparent; height: 38px; padding: 0 18px; border-radius: var(--pill);
    font-size: 15px; font-weight: 600; color: var(--muted);
  }
  .plan-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .plan-grid { align-items: flex-start; }
  .plan { padding: 22px; border-radius: 24px; }
  .plan-price { font-size: 26px; margin-top: 14px; }
  .plan .btn { margin-top: 18px; }
  .plan .checks { margin-top: 18px; padding-top: 18px; }
  .plans .fine { margin-top: 18px; }

  /* Preguntas y llamada final */
  .faq-list summary { font-size: 17px; padding: 18px 44px 18px 0; }
  .faq-list details p { padding-right: 8px; font-size: 15.5px; }
  .cta-card { padding: 44px 20px; }
  .app-icon { width: 72px; height: 72px; margin-bottom: 22px; }
  .cta-p { font-size: 16.5px; }
  .footer { padding-top: 56px; }
}

/* ---------- redes (pie) ---------- */
.socials { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.footer .footer-grid a.social {
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer .footer-grid a.social:hover { background: var(--ink); color: var(--bg); }
.footer .footer-grid a.social:active { transform: scale(.94); }
.socials-handle { font-size: 14px; color: var(--muted); margin-left: 4px; }

/* ---------- pop-up: un mes de Care gratis ---------- */
.promo {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 24px 28px 26px; border: 0; border-radius: var(--r-2xl);
  background: var(--bg); color: var(--ink-2);
  box-shadow: 0 30px 80px -20px rgba(31, 31, 31, .45);
  text-align: center; overscroll-behavior: contain;
}
.promo::backdrop { background: rgba(31, 31, 31, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.promo[open] { animation: promo-in .45s var(--ease); }
.promo[open]::backdrop { animation: promo-fade .45s var(--ease); }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes promo-fade { from { opacity: 0; } }
.promo-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.promo-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.promo-close:hover { background: var(--card-2); color: var(--ink); }
.promo-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.promo-brand img { display: block; border-radius: 9px; }
.promo-phones { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; margin: 18px 0 10px; height: 258px; }
.promo-phones::before {
  content: ""; position: absolute; inset: 6% 12%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(217, 125, 84, .20), transparent);
}
.phone-promo { --pw: 112px; z-index: 1; }
.phone-promo::after { top: calc(var(--pw) * .05); }
.promo-p1 { transform: rotate(-6deg) translateY(10px); }
.promo-p2 { transform: rotate(5deg) translateY(-8px); }
.promo-arrow { width: 62px; height: 42px; color: var(--ink); z-index: 1; margin: 0 -4px; transform: translateY(-14px); }
.promo-title { font-family: var(--display); font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); margin-top: 14px; }
.promo-sub { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.promo-form-block { max-width: none; margin-top: 20px; gap: 10px; }
.promo-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.promo-form input {
  width: 100%; height: 56px; border: 1px solid transparent; border-radius: var(--pill);
  background: var(--card-2); padding: 0 22px; font: inherit; font-size: 17px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.promo-form input::placeholder { color: #8F8982; }
.promo-form input:focus { background: var(--card); border-color: #CFC6BD; box-shadow: 0 0 0 4px rgba(74, 93, 78, .12); }
.promo-legal { font-size: 13px; line-height: 1.5; color: var(--muted); }
.promo-legal a { color: var(--ink-2); }
.promo-cta { height: 56px; font-size: 17px; }
.promo-meta:empty { display: none; }
@media (max-width: 480px) {
  .promo { width: calc(100% - 24px); padding: 20px 20px 22px; border-radius: 28px; }
  .promo-phones { height: 214px; margin-top: 12px; }
  .phone-promo { --pw: 92px; }
  .promo-arrow { width: 48px; }
  .promo-title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo[open], .promo[open]::backdrop { animation: none; }
}

/* ---------- alta en la lista (home.js, evento woofit:joined) ---------- */
.waitlist-form { position: relative; }
.joined {
  position: absolute; inset: -1px; z-index: 2; border-radius: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px;
  background: var(--sage); color: #FFFFFF; font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em;
  clip-path: circle(0px at var(--jx, 50%) var(--jy, 50%));
  animation: joined-fill .6s var(--ease) forwards;
}
.promo-form .joined { border-radius: 26px; font-size: 19px; flex-direction: column; gap: 12px; padding-bottom: 34px; }
.joined-check { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.joined-check circle { opacity: .55; stroke-dasharray: 63; stroke-dashoffset: 63; animation: joined-draw .45s .2s var(--ease) forwards; }
.joined-check path { stroke-dasharray: 14; stroke-dashoffset: 14; animation: joined-draw .3s .5s var(--ease) forwards; }
.promo-form .joined-check { width: 40px; height: 40px; }
.joined-text { opacity: 0; transform: translateY(6px); animation: joined-rise .45s .3s var(--ease) forwards; }
.waitlist-form.is-joined { animation: joined-pop .55s var(--ease); }
.paw-trail { position: absolute; left: 8%; right: 8%; bottom: calc(100% + 1px); height: 30px; pointer-events: none; color: var(--sage); }
.cta-card .paw-trail { color: #F0B597; }
/* En el pop-up no hay sitio encima (el texto queda a 20 px): las huellas cruzan la tarjeta verde por abajo. */
.promo-form .paw-trail { bottom: 16px; left: 22%; right: 22%; z-index: 3; color: rgba(255, 255, 255, .55); }
.paw {
  position: absolute; top: 0; left: calc(var(--i) * 17%); width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat;
  opacity: 0; transform: rotate(90deg) scale(.4);
  animation: paw-step 1.6s var(--ease) forwards; animation-delay: calc(.45s + var(--i) * .14s);
}
.paw:nth-child(even) { top: 8px; }
@keyframes joined-fill { to { clip-path: circle(var(--jr, 150%) at var(--jx, 50%) var(--jy, 50%)); } }
@keyframes joined-draw { to { stroke-dashoffset: 0; } }
@keyframes joined-rise { to { opacity: 1; transform: none; } }
@keyframes joined-pop { 45% { transform: scale(1.025); } }
@keyframes paw-step {
  14% { opacity: .9; transform: rotate(90deg) scale(1); }
  62% { opacity: .9; transform: rotate(90deg) scale(1); }
  100% { opacity: 0; transform: rotate(90deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .joined { animation: none; clip-path: none; }
  .joined-check circle, .joined-check path { animation: none; stroke-dashoffset: 0; }
  .joined-text { animation: none; opacity: 1; transform: none; }
  .waitlist-form.is-joined { animation: none; }
  .paw-trail { display: none; }
}

/* ---------- movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-stage .float { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.js .hero-stage.is-in .float { opacity: 1; translate: 0 0; }
.js .hero-stage.is-in .f-vaccine { transition-delay: .15s; }
.js .hero-stage.is-in .f-streak { transition-delay: .25s; }
.js .hero-stage.is-in .f-pdf { transition-delay: .35s; }
.js .hero-stage.is-in .f-walk { transition-delay: .45s; }
.js .hero-stage.is-in .f-deworm { transition-delay: .55s; }
/* Cuidado compartido: los avisos salen de uno en uno y de arriba abajo
   (el hogar, luego Tom, luego Emma), cuando home.js añade .is-in. Medio
   segundo entre uno y otro para que se lean como llegadas distintas. */
.js .visual-family .home-pill, .js .visual-family .f-who { opacity: 0; translate: 0 14px; scale: .9; }
/* La transición va solo al aparecer: al cargar, se esconden sin fundido. */
.js .visual-family.is-in .home-pill, .js .visual-family.is-in .f-who {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .45s var(--ease), translate .55s var(--ease), scale .55s cubic-bezier(.34, 1.4, .64, 1);
}
.js .visual-family.is-in .home-pill { transition-delay: .1s; }
.js .visual-family.is-in .f-who-1 { transition-delay: .6s; }
.js .visual-family.is-in .f-who-2 { transition-delay: 1.1s; }
/* Pam escribe y contesta (home.js). Encima de la captura 08-pam van recortes
   de la misma imagen, en sus coordenadas: --u es un píxel de la captura
   (660 × 1435). Una tapa del color del chat esconde la conversación; se
   teclea la pregunta, sale su burbuja, Pam «escribe» (los tres puntos de la
   app) y salta la respuesta. Sin JS, sin IntersectionObserver o con
   «Reducir movimiento» no se arma (.pc-armed) y se ve la captura tal cual. */
.pam-chat {
  --u: calc(var(--pw) * .94 / 660);
  /* Pregunta y respuesta en español; en inglés ocupan más (abajo). */
  --qx: 164; --qy: 376; --qw: 472; --qh: 74;
  --at: 471; --ah: 470;
  display: none; position: absolute; inset: calc(var(--pw) * .03); overflow: hidden;
  border-radius: calc(var(--pw) * .136); pointer-events: none;
}
html[lang="en"] .pam-chat { --qx: 103; --qw: 533; --qh: 110; --at: 507; --ah: 508; }
.visual-pam.pc-armed .pam-chat { display: block; }
.pam-chat > span { position: absolute; }
.pc-cover { left: 0; top: calc(var(--u) * 350); width: 100%; height: calc(var(--u) * 719); background: #FAF9F6; }
.pc-crop {
  overflow: hidden;
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y));
  width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--h));
}
.pam-chat .pc-crop img {
  position: absolute; max-width: none; height: auto; border-radius: 0; background: none;
  width: calc(var(--u) * 660);
  left: calc(var(--u) * var(--x) * -1); top: calc(var(--u) * var(--y) * -1);
}
.pc-q { --x: var(--qx); --y: var(--qy); --w: var(--qw); --h: var(--qh); }
.pc-avatar { --x: 20; --y: calc(var(--at) - 5); --w: 62; --h: 62; }
.pc-a { --x: 84; --y: calc(var(--at) - 5); --w: 520; --h: var(--ah); }

/* Las burbujas, escondidas hasta su momento. La pregunta sube desde el campo
   (esquina de abajo a la derecha) y la respuesta salta desde el avatar. */
.pc-q, .pc-avatar, .pc-dots, .pc-a { opacity: 0; }
.pc-q { transform-origin: 100% 100%; translate: 0 calc(var(--u) * 26); scale: .9; }
.pc-a { transform-origin: 0 0; translate: 0 calc(var(--u) * 16); scale: .9; }
.pam-chat.is-sent .pc-q {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .2s ease-out, translate .45s cubic-bezier(.2, .9, .25, 1), scale .45s cubic-bezier(.3, 1.3, .6, 1);
}
.pam-chat.is-thinking .pc-avatar, .pam-chat.is-thinking .pc-dots,
.pam-chat.is-replied .pc-avatar { opacity: 1; transition: opacity .18s ease-out; }
.pam-chat.is-replied .pc-dots { opacity: 0; transition: opacity .12s ease-out; }
.pam-chat.is-replied .pc-a {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .22s ease-out, translate .5s cubic-bezier(.2, .9, .25, 1), scale .5s cubic-bezier(.3, 1.35, .6, 1);
}

/* «Escribiendo»: los tres puntos de la app (8 pt, separados 6, la burbuja
   blanca con la esquina de arriba a la izquierda casi recta). */
.pc-dots {
  left: calc(var(--u) * 90); top: calc(var(--u) * var(--at));
  display: flex; align-items: center; gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 26);
  background: #fff; border: 1px solid #EBE5DF;
  border-radius: calc(var(--u) * 10) calc(var(--u) * 33) calc(var(--u) * 33) calc(var(--u) * 33);
}
.pc-dots i { width: calc(var(--u) * 13); height: calc(var(--u) * 13); border-radius: 50%; background: #6E6A66; opacity: .3; }
.pam-chat.is-thinking .pc-dots i { animation: pc-dot .72s cubic-bezier(.77, 0, .175, 1) infinite alternate; }
.pam-chat.is-thinking .pc-dots i:nth-child(2) { animation-delay: .16s; }
.pam-chat.is-thinking .pc-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes pc-dot { to { opacity: 1; } }

/* El campo: el texto tapa el «Pregunta sobre Luna…» de la captura; si no
   cabe, se desliza para que se vea el final, como al teclear en el móvil. */
.pc-input {
  left: calc(var(--u) * 40); top: calc(var(--u) * 1162);
  width: calc(var(--u) * 518); height: calc(var(--u) * 52);
  overflow: hidden; display: flex; align-items: center;
}
.pam-chat.has-text .pc-input { background: #fff; }
.pc-line {
  display: flex; align-items: center; flex: none; padding-left: calc(var(--u) * 9);
  white-space: pre; color: #2E2E2E;
  font: 400 calc(var(--u) * 26.3) / 1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  letter-spacing: -.01em;
}
.pc-caret {
  width: calc(var(--u) * 3); height: calc(var(--u) * 34); margin-left: 1px;
  border-radius: 2px; background: #4A5D4E; opacity: 0;
}
.pam-chat.is-focused .pc-caret { opacity: 1; animation: pc-caret 1s steps(1) infinite; }
.pam-chat.is-typing .pc-caret { animation: none; }
@keyframes pc-caret { 50% { opacity: 0; } }
/* Enviar: verde salvia con texto (en la captura está gris, sin texto). */
.pc-send {
  left: calc(var(--u) * 569); top: calc(var(--u) * 1158);
  width: calc(var(--u) * 59); height: calc(var(--u) * 59); padding: calc(var(--u) * 13);
  border-radius: 50%; background: #4A5D4E;
  opacity: 0; scale: .85; transition: opacity .15s ease-out, scale .2s ease-out;
}
.pam-chat.has-text .pc-send { opacity: 1; scale: 1; }
.pam-chat.is-pressed .pc-send { scale: .88; transition-duration: 0s; }

/* Profundidad (home.js): el teléfono se inclina hacia el cursor (--rx, --ry),
   la luz le cruza la pantalla (--gx, --gy, --glare) y las tarjetas y las
   fotos flotan a distinta profundidad (--px, --py). Sin JS, todo vale 0 y la
   portada queda como siempre. */
.float, .dog, .home-pill { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.phone::before, .slide-shot::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  /* Un reflejo de cristal en diagonal que cruza la pantalla con el cursor. */
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .6) 48%, rgba(255, 255, 255, .18) 53%, rgba(255, 255, 255, 0) 66%);
  background-size: 280% 100%; background-position: calc(100% - var(--gx, 50%)) 0;
  opacity: var(--glare, 0);
}
.phone::before { inset: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .136); }
.slide-shot { position: relative; }
.slide-shot::after { inset: 0; }
.slide-card {
  transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow .35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .slide-card:hover { box-shadow: var(--shadow-md); }
  /* Las fotos de perros saludan: un poco más grandes y ladeadas. */
  .dog { transition: scale .45s var(--ease), rotate .45s var(--ease); }
  .dog:hover { scale: 1.08; rotate: -5deg; }
}

/* Huellas que siguen al cursor por la portada: el archivo oficial (/mark.svg)
   como máscara, por detrás del teléfono y de las fotos. */
.cursor-paw {
  position: absolute; z-index: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  pointer-events: none; background: var(--clay); rotate: var(--a, 0deg);
  -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat;
  opacity: 0; animation: cursor-paw 1.9s var(--ease) forwards;
}
@keyframes cursor-paw {
  0% { opacity: 0; scale: .4; }
  12% { opacity: .5; scale: 1; }
  65% { opacity: .4; scale: 1; }
  100% { opacity: 0; scale: 1; }
}

/* Racha: al pasar por encima se marca el día de hoy (12 → 13). */
.f-streak.is-done .week i.today { background: var(--clay); box-shadow: none; animation: streak-dot .5s var(--ease); }
.f-streak.is-done .f-big { animation: streak-up .45s var(--ease); }
@keyframes streak-dot { 0% { scale: .3; } 55% { scale: 1.45; } 100% { scale: 1; } }
@keyframes streak-up { 0% { translate: 0 10px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-stage .float { opacity: 1; transform: none; translate: none; transition: none; }
  .js .visual-family .home-pill, .js .visual-family .f-who { opacity: 1; translate: none; scale: none; transition: none; }
  .btn, .round-btn, .nav-toggle .bar, .faq-list summary::after { transition: none; }
  .cursor-paw { display: none; }
  .dog, .slide-card { transition: none; }
  .dog:hover { scale: none; rotate: none; }
  .f-streak.is-done .week i.today, .f-streak.is-done .f-big { animation: none; }
  /* La hoja del PDF aparece y desaparece con un fundido, sin viajar. */
  .pdf-sheet { translate: none; rotate: none; scale: none; transition: opacity .2s ease; }
}
