/* PupHarmony · portada pública (pupharmony.cloud)
   Sin recursos externos: fuentes, fotos e íconos se sirven desde este dominio
   para respetar la CSP estricta de nginx (infra/prod/nginx/pupharmony.conf).
   Fuentes (SIL OFL 1.1, ver assets/fonts/OFL-*.txt): Fraunces para titulares;
   Inter y Plus Jakarta Sans, las mismas de la app. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-soft-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-soft-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Papel cálido y tinta: la base editorial */
  --paper: #FBF7F2;
  --paper-2: #F4EDE4;
  --card: #FFFFFF;
  --ink: #1B1A2E;
  --ink-2: #45425A;
  --muted: #625F75;
  --line: #E8E0D5;
  /* Marca (los mismos de la app) */
  --violet: #5B4BD6;
  --violet-ink: #4535C4;
  --lilac: #ECEAFD;
  --app-bg: #F6F5FB;
  --app-text: #1B1A2E;
  --app-2: #5E5C70;
  /* Acentos */
  --honey: #F2A65A;
  --honey-soft: #FCEBD6;
  --night: #16132A;
  --night-2: #221D3D;
  --night-3: #2D2750;
  --ok: #0B7A65;
  --ok-tint: #E1F3EE;
  --warn: #A04A08;
  --warn-tint: #FDF0E1;
  --danger: #C42B1C;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4.5vw, 40px);
  --radius: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 46, .06), 0 4px 12px rgba(27, 26, 46, .06);
  --shadow: 0 2px 6px rgba(27, 26, 46, .06), 0 18px 40px -12px rgba(27, 26, 46, .22);
  --shadow-lg: 0 4px 10px rgba(27, 26, 46, .08), 0 40px 80px -24px rgba(27, 26, 46, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.hard :focus-visible, .closing :focus-visible, .foot :focus-visible, .cta-box :focus-visible { outline-color: var(--honey); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fill { fill: currentColor; stroke: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: "SOFT" 100;
  font-size: clamp(2.6rem, 9.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 480; color: var(--violet); }
.display--md { font-size: clamp(2.1rem, 6.4vw, 3.9rem); line-height: 1.04; }
.display--lg { font-size: clamp(2.5rem, 8vw, 5.4rem); }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.lead--sm { font-size: clamp(1.05rem, 2.2vw, 1.18rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 7vw, 88px); }
.section-head--light .eyebrow { color: var(--honey); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: #fff;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -10px rgba(27, 26, 46, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); background: #2A2843; box-shadow: 0 14px 30px -12px rgba(27, 26, 46, .6); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(27, 26, 46, .22); }
.btn--ghost:hover { background: rgba(27, 26, 46, .05); box-shadow: inset 0 0 0 1.5px rgba(27, 26, 46, .4); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--honey-soft); }
.btn--small { min-height: 42px; padding: 9px 18px; font-size: .9375rem; white-space: nowrap; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--violet-ink); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link .i { transition: transform .25s var(--ease); }
.link:hover .i { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, .94);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.top.is-scrolled {
  background: rgba(251, 247, 242, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.top__inner {
  max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; padding: 3px; border-radius: 11px; background: var(--violet); color: #fff; box-shadow: 0 6px 14px -6px rgba(91, 75, 214, .7); }
.brand__name { font: 800 1.1875rem/1 var(--ui); letter-spacing: -.02em; }
.top__nav { display: none; gap: 30px; }
.top__nav a { font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.top__nav a:hover { color: var(--ink); background-size: 100% 1.5px; }

/* ---------- 1. Portada ---------- */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(72px, 10vw, 128px);
  display: grid; gap: clamp(40px, 6vw, 64px);
  overflow-x: clip;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(242, 166, 90, .25); }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .i { color: var(--violet); width: 1.1em; height: 1.1em; }

.hero__art { position: relative; padding-bottom: 40px; }
.hero__art::before {
  /* Disco miel detrás de la foto */
  content: ""; position: absolute; z-index: -1;
  width: 78%; aspect-ratio: 1; right: -12%; top: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE2BD 0%, var(--honey-soft) 45%, rgba(252, 235, 214, 0) 70%);
}
.hero__photo {
  width: 82%; margin-left: auto;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 32px 32px;
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.hero__phone { --pw: clamp(186px, 50vw, 290px); position: absolute; left: 0; bottom: 0; }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .8125rem; line-height: 1.3; color: var(--ink);
  max-width: 250px;
}
.float b { display: block; font-weight: 600; font-size: .875rem; }
.float small { color: var(--muted); font-size: .78rem; }
.float__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lilac); color: var(--violet); flex: none; }
.float__icon--ok { background: var(--ok); color: #fff; }
.float--a { right: 0; bottom: 4px; }
.float--b { right: 4%; bottom: 14%; display: none; }

/* ---------- Teléfono con la app (medidas en puntos de iPhone × --u) ---------- */
.phone {
  --u: calc(var(--pw) / 410);
  width: var(--pw);
  padding: calc(10 * var(--u));
  border-radius: calc(60 * var(--u));
  background: #121120;
  box-shadow: 0 0 0 calc(2 * var(--u)) #3A3852 inset, var(--shadow-lg);
}
.phone__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: calc(50 * var(--u));
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--sans);
  font-size: calc(15 * var(--u));
  line-height: 1.3;
  padding: 0 calc(18 * var(--u));
}
.phone__screen .i { width: 1.4em; height: 1.4em; }
.ui-status { display: flex; justify-content: space-between; align-items: center; height: calc(50 * var(--u)); padding: 0 calc(14 * var(--u)); font-weight: 600; font-size: calc(15 * var(--u)); }
.ui-status__icons { display: flex; gap: calc(5 * var(--u)); }
.ui-status__icons i { display: block; width: calc(16 * var(--u)); height: calc(10 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--app-text); }
.ui-status__icons i:nth-child(1) { width: calc(17 * var(--u)); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ui-status__icons i:nth-child(3) { width: calc(24 * var(--u)); background: none; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) var(--app-text); position: relative; }
.ui-status__icons i:nth-child(3)::after { content: ""; position: absolute; inset: calc(2.5 * var(--u)) calc(6 * var(--u)) calc(2.5 * var(--u)) calc(2.5 * var(--u)); border-radius: calc(1.5 * var(--u)); background: var(--app-text); }
.ui-head { display: flex; justify-content: space-between; align-items: center; margin: calc(6 * var(--u)) 0 calc(14 * var(--u)); }
.ui-hello { font-size: calc(14 * var(--u)); color: var(--app-2); font-weight: 500; }
.ui-title { font: 800 calc(26 * var(--u))/1.15 var(--ui); letter-spacing: -.01em; }
.ui-bell { display: grid; place-items: center; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; background: #fff; }
.ui-pets { display: flex; gap: calc(14 * var(--u)); margin-bottom: calc(14 * var(--u)); }
.ui-pet { display: grid; justify-items: center; gap: calc(5 * var(--u)); font-size: calc(12 * var(--u)); color: var(--app-2); }
.ui-pet b { font-weight: 600; }
.ui-pet img, .ui-pet__ini { width: calc(54 * var(--u)); height: calc(54 * var(--u)); border-radius: 50%; object-fit: cover; }
.ui-pet__ini { display: grid; place-items: center; background: var(--lilac); color: var(--violet); font: 800 calc(20 * var(--u))/1 var(--ui); }
.ui-pet.is-on img { box-shadow: 0 0 0 calc(2.5 * var(--u)) var(--app-bg), 0 0 0 calc(5 * var(--u)) var(--violet); }
.ui-pet.is-on b { color: var(--app-text); font-weight: 700; }
.ui-pet--add .ui-pet__ini { background: #fff; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) #D9D5F3; }
.ui-card { background: #fff; border-radius: calc(24 * var(--u)); overflow: hidden; margin-bottom: calc(14 * var(--u)); }
.ui-card__photo { position: relative; height: calc(150 * var(--u)); }
.ui-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ui-chip { position: absolute; top: calc(12 * var(--u)); right: calc(12 * var(--u)); display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 999px; font-size: calc(12.5 * var(--u)); font-weight: 700; }
.ui-chip .i { width: 1.15em; height: 1.15em; stroke-width: 2.6; }
.ui-chip--ok { background: var(--ok-tint); color: #0B6B58; }
.ui-card__body { padding: calc(14 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)); }
.ui-name { font: 800 calc(24 * var(--u))/1.15 var(--ui); }
.ui-meta { font-size: calc(14 * var(--u)); color: var(--app-2); margin-bottom: calc(12 * var(--u)); }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); }
.ui-stats > span { display: grid; align-content: start; padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--app-bg); }
.ui-stats b { font-size: calc(17 * var(--u)); font-weight: 700; white-space: nowrap; }
.ui-stats small { font-size: calc(12 * var(--u)); color: var(--app-2); }
.ui-accent { color: var(--violet); }
.ui-bar { display: block; height: calc(4 * var(--u)); margin: calc(4 * var(--u)) 0 calc(2 * var(--u)); border-radius: 2px; background: #E4E1F7; overflow: hidden; }
.ui-bar i { display: block; width: 92%; height: 100%; background: var(--violet); }
.ui-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(8 * var(--u)); margin-bottom: calc(20 * var(--u)); }
.ui-quick > span { display: grid; justify-items: center; gap: calc(6 * var(--u)); padding: calc(12 * var(--u)) 0 calc(10 * var(--u)); border-radius: calc(18 * var(--u)); background: #fff; font-size: calc(11 * var(--u)); font-weight: 600; text-align: center; color: var(--app-text); }
.ui-quick i { display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: var(--lilac); color: var(--violet); }
.ui-quick > span:last-child i { background: #FDE8E6; color: var(--danger); }
.ui-section { display: flex; justify-content: space-between; margin: 0 calc(4 * var(--u)) calc(8 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 700; color: var(--app-2); }
.ui-section .ui-accent { font-weight: 600; }

/* Fila de tarea (la misma de la app) */
.ui-task { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; margin-bottom: 8px; }
.ui-task > span:last-child { display: grid; min-width: 0; }
.ui-task b { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ui-task small { color: var(--app-2); font-size: .8rem; line-height: 1.35; }
.ui-tick { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #8C89A0; color: #fff; }
.ui-tick .i { width: 18px; height: 18px; stroke-width: 2.6; }
.is-done .ui-tick { background: var(--ok); box-shadow: none; }
.phone .ui-task { gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); border-radius: calc(18 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.phone .ui-task b { font-size: calc(15 * var(--u)); }
.phone .ui-task small { font-size: calc(12.5 * var(--u)); }
.phone .ui-tick { width: calc(28 * var(--u)); height: calc(28 * var(--u)); box-shadow: inset 0 0 0 calc(2 * var(--u)) #8C89A0; }
.phone .is-done .ui-tick { box-shadow: none; }
.phone .ui-tick .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }

/* Lo girado o decorativo no debe ensanchar la página en móvil */
.day, .hard, .passport, .trust, .start { overflow-x: clip; }

/* ---------- 2. Un día con Luna ---------- */
.day { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper); }
.moments { display: grid; gap: clamp(88px, 12vw, 168px); }
.moment { display: grid; gap: 36px; align-items: center; }
.moment__time { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-ink); }
.moment__time time { font-family: var(--display); font-size: 2.6rem; font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--ink); text-transform: none; line-height: 1; }
.moment h3 { font-family: var(--display); font-weight: 560; font-variation-settings: "SOFT" 100; font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; text-wrap: balance; }
.moment__text p:not(.moment__time) { color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.moment__art { position: relative; }

.sheet { background: var(--card); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.sheet__title { font: 800 1.25rem/1.2 var(--ui); margin-bottom: 14px; letter-spacing: -.01em; }
.sheet__label { font-size: .8125rem; font-weight: 700; color: var(--app-2); margin: 0 4px 8px; }
.sheet .ui-task { background: var(--app-bg); }

/* 07:45 */
.art-care { padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 48px); border-radius: var(--radius); background: var(--honey-soft); display: grid; gap: 16px; overflow: hidden; }
.art-care::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; bottom: -30%; border-radius: 50%; background: #F8D6AE; opacity: .55; }
.art-care > * { position: relative; z-index: 1; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); max-width: 380px; }
.notif__app { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--violet); color: #fff; flex: none; }
.notif__app .i { width: 30px; height: 30px; }
.notif > span:last-child { display: grid; line-height: 1.3; font-size: .9rem; }
.notif small { color: var(--muted); font-size: .75rem; }
.notif b { font-weight: 600; }
.art-care .sheet { max-width: 420px; justify-self: end; width: 100%; }

/* 12:30 */
.art-docs { padding: clamp(56px, 8vw, 80px) clamp(18px, 4vw, 48px) clamp(28px, 5vw, 48px); border-radius: var(--radius); background: var(--lilac); }
.doc-card { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); font-size: .875rem; line-height: 1.3; }
.doc-card .i { color: var(--danger); width: 26px; height: 26px; }
.doc-card span { display: grid; }
.doc-card small { color: var(--muted); }
.doc-card--back { top: 18px; left: 8%; transform: rotate(-5deg); }
.doc-card--mid { top: 30px; right: 6%; transform: rotate(4deg); }
.sheet--vax { position: relative; max-width: 440px; margin: 0 auto; }
.vax { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EFEDF6; }
.vax span { display: grid; line-height: 1.35; }
.vax b { font-weight: 600; }
.vax small { color: var(--app-2); font-size: .8125rem; }
.tag { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; font-style: normal; white-space: nowrap; }
.tag--ok { background: var(--ok-tint); color: #0B6B58; }
.tag--warn { background: var(--warn-tint); color: var(--warn); }
.sheet__btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 600; font-size: .9375rem; }
.scan-chip { position: absolute; left: 4%; bottom: -18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow); }

/* 18:00 */
.photo-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.art-family .photo-frame { aspect-ratio: 4 / 3; }
.art-family .photo-frame img { object-position: 60% 40%; }
.sheet--family { position: relative; width: min(300px, 86%); margin: -64px 0 0 auto; padding: 18px; }
.member { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.member span:last-child { display: grid; line-height: 1.3; }
.member b { font-weight: 600; }
.member small { color: var(--app-2); font-size: .8125rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 800 1rem/1 var(--ui); flex: none; }
.avatar--a { background: var(--lilac); color: var(--violet); }
.avatar--b { background: var(--honey-soft); color: #9A4F0A; }
.avatar--c { background: var(--ok-tint); color: #0B6B58; }
.code-chip { position: absolute; top: 16px; left: 16px; display: grid; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.code-chip small { font-size: .72rem; color: #C9C5E0; }
.code-chip b { font: 600 1.2rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; }

/* 21:30 */
.art-wellbeing { display: grid; }
.art-wellbeing .photo-frame { width: 72%; aspect-ratio: 3 / 4; }
.art-wellbeing .photo-frame img { object-position: 40% 40%; }
.sheet--weight { position: relative; width: min(320px, 82%); margin: -120px 0 0 auto; }
.weight b { display: block; font: 800 2rem/1.1 var(--ui); letter-spacing: -.02em; }
.weight small { color: var(--app-2); font-size: .8125rem; }
.spark { display: block; width: 100%; height: 56px; margin: 12px 0 14px; }
.spark__area { fill: var(--lilac); }
.spark__line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.entry { display: grid; padding: 12px 14px; border-radius: 16px; background: var(--app-bg); font-size: .9rem; line-height: 1.4; }
.entry small { color: var(--app-2); font-size: .75rem; font-weight: 600; }

/* ---------- 3. Días difíciles ---------- */
.hard { padding: clamp(80px, 11vw, 150px) 0; background: var(--night); color: #F4F1FF; }
.hard .display { color: #fff; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: var(--night-2); }
.tile h3 { font-family: var(--display); font-weight: 560; font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 12px; text-wrap: balance; }
.tile__copy > p, .tile > p { color: #CFCAE6; font-size: 1rem; }
.tile__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--honey) !important; }
.tile--lost { display: grid; gap: 32px; background: linear-gradient(160deg, #2B2148 0%, #1F1936 100%); }
.qr-page {
  justify-self: center; width: min(270px, 100%);
  padding: 16px 16px 18px; border-radius: 30px; background: #fff; color: var(--ink);
  text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  transform: rotate(-2deg);
}
.qr-page__brand { display: inline-flex; align-items: center; gap: 6px; font: 800 .8rem/1 var(--ui); color: var(--violet); margin-bottom: 12px; }
.qr-page__brand .i { width: 18px; height: 18px; }
.qr-page__banner { display: grid; padding: 10px; border-radius: 16px; background: var(--danger); color: #fff; font-size: .8rem; line-height: 1.3; margin-bottom: 14px; }
.qr-page__banner b { font-size: 1.05rem; }
.qr-page__photo { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.qr-page__name { font: 800 1.4rem/1.1 var(--ui); }
.qr-page__meta { font-size: .8rem; color: var(--app-2); margin: 4px 0 14px; }
.qr-page__btn { padding: 10px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: .875rem; margin-top: 8px; }
.qr-page__btn--ghost { background: var(--app-bg); color: var(--ink); }
.tile--consult { background: var(--night-3); }
.level { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.level span:last-child { display: grid; line-height: 1.35; font-size: .9rem; }
.level small { color: #CFCAE6; }
.level__dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 5px rgba(242,166,90,.2); flex: none; }
.tile .fine { font-size: .8125rem; color: #ADA7C9; }
.tile--near { background: var(--honey-soft); color: var(--ink); }
.tile--near > p:not(.tile__kicker) { color: var(--ink-2); }
.tile--near .tile__kicker { color: #8A4A0C !important; }
.weather { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #fff; font-size: .95rem; line-height: 1.4; box-shadow: var(--shadow-sm); }
.weather .i { width: 30px; height: 30px; color: #D97A1B; }
.tile--bark { display: grid; gap: 24px; align-items: center; }
.bars { display: flex; align-items: center; gap: 6px; height: 72px; }
.bars i { flex: 1; max-width: 10px; height: 20%; border-radius: 6px; background: linear-gradient(var(--honey), #B06EF0); }
.bars i:nth-child(3n) { height: 70%; } .bars i:nth-child(4n+1) { height: 45%; } .bars i:nth-child(5n+2) { height: 95%; } .bars i:nth-child(7n) { height: 30%; }

/* ---------- 4. Pet Passport ---------- */
.passport { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); }
.passport__grid { display: grid; gap: 56px; align-items: center; }
.passport .lead { margin: 22px 0 32px; }
.condo { display: flex; gap: 16px; padding: 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-sm); }
.condo__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lilac); color: var(--violet); flex: none; }
.condo h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.condo p { color: var(--ink-2); font-size: .975rem; }
.pass { display: grid; gap: 28px; justify-items: center; }
.pass__card {
  width: min(440px, 100%);
  padding: 24px; border-radius: 30px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(242, 166, 90, .22), transparent 55%),
    linear-gradient(155deg, #262046 0%, #16132A 100%);
  color: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease);
}
.pass:hover .pass__card { transform: rotate(-1deg) translateY(-4px); }
.pass__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.pass__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--honey); }
.pass__brand .i { width: 26px; height: 26px; }
.pass__main { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.pass__main img { width: 112px; height: 140px; border-radius: 18px; object-fit: cover; object-position: 50% 25%; }
.pass dl { display: grid; gap: 8px; }
.pass dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #A9A3C9; }
.pass dd { font-size: .95rem; font-weight: 500; }
.pass__name { font-family: var(--display); font-size: 1.6rem !important; font-weight: 600 !important; line-height: 1.05; }
.pass__foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); font-size: .875rem; color: #CFCAE6; }
.pass__foot b { color: #fff; font-size: 1.05rem; }
.pass__qr { margin-left: auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--ink); }
.pass__qr .i { width: 34px; height: 34px; }
.pass__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; }
.pass__app { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); font: 800 .9rem/1 var(--ui); color: var(--violet); }
.pass__app--condo { color: #2E74B5; }
.pass__link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pass__link i { width: 18px; border-top: 2px dashed #CFC6B8; }
.pass__link .i { width: 18px; height: 18px; }

/* ---------- 5. Confianza ---------- */
.trust { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper-2); }
.trust__grid { display: grid; gap: 48px; align-items: center; }
.trust__photo { width: min(420px, 82%); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 32px 32px 999px 999px; box-shadow: var(--shadow-lg); justify-self: center; }
.trust__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.trust .display { margin-bottom: 36px; }
.trust__list { display: grid; gap: 26px; margin-bottom: 36px; }
.trust__list li { display: flex; gap: 16px; }
.trust__list > li > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--card); color: var(--violet); box-shadow: var(--shadow-sm); }
.trust__list h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.trust__list p { color: var(--ink-2); font-size: .975rem; }

/* ---------- 6. Cómo empezar ---------- */
.start { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); }
.steps { display: grid; gap: 36px; margin-bottom: clamp(48px, 7vw, 80px); counter-reset: none; }
.steps li { position: relative; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.steps__n { display: block; font-family: var(--display); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--violet); margin-bottom: 12px; }
.steps h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.steps p { color: var(--ink-2); }
.cta-box {
  display: grid; gap: 28px; padding: clamp(28px, 5vw, 56px);
  border-radius: 32px; background: var(--ink); color: #fff;
  background-image: radial-gradient(90% 120% at 100% 100%, rgba(91, 75, 214, .45), transparent 60%);
}
.cta-box h3 { font-family: var(--display); font-weight: 560; font-variation-settings: "SOFT" 100; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 10px; }
.cta-box p { color: #D4D0EA; }
.cta-box__actions { display: grid; gap: 18px; justify-items: start; }
.cta-box .btn { background: #fff; color: var(--ink); }
.cta-box .btn:hover { background: var(--honey-soft); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.store span { display: grid; }
.store small { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ADA7C9; }
.store .i { opacity: .7; }

/* ---------- 7. Cierre ---------- */
.closing { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(520px, 86vh, 860px); padding: clamp(40px, 7vw, 96px) var(--gutter); color: #fff; overflow: hidden; background: var(--night); }
.closing__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 19, 42, 0) 30%, rgba(22, 19, 42, .85) 100%), linear-gradient(90deg, rgba(22, 19, 42, .55) 0%, rgba(22, 19, 42, .15) 50%, rgba(22, 19, 42, 0) 70%); }
.closing__copy { width: 100%; max-width: 1240px; margin: 0 auto; }
.closing .display { max-width: 11em; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.closing p { max-width: 30em; margin-bottom: 28px; font-size: 1.125rem; color: #EDEAF7; }

/* ---------- Pie ---------- */
.foot { background: var(--night); color: #CFCAE6; padding: 64px 0 32px; font-size: .9375rem; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot__grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__brand p { max-width: 24em; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h2 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); margin-bottom: 4px; }
.foot a { color: #EDEAF7; text-decoration: none; overflow-wrap: anywhere; }
.foot__col a { justify-self: start; padding: 2px 0; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: grid; gap: 8px; padding-top: 24px; font-size: .8125rem; color: #ADA7C9; }
.foot__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal:focus-within { opacity: 1; transform: none; transition: none; }
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .hero__copy > :nth-child(5) { animation-delay: .3s; }
  .hero__photo { animation: photo 1.2s var(--ease) both; }
  .hero__phone { animation: rise 1s .35s var(--ease) both; }
  /* Movimientos breves que se detienen solos antes de 5 s (WCAG 2.2.2) */
  .float--a { animation: rise .8s .7s var(--ease) both, bob 2.2s 1.5s ease-in-out 1; }
  .float--b { animation: rise .8s .9s var(--ease) both, bob 2.6s 1.7s ease-in-out 1 reverse; }
  .bars i { animation: bark 1.6s ease-in-out 3; transform-origin: center; }
  .bars i:nth-child(2n) { animation-delay: -.4s; } .bars i:nth-child(3n) { animation-delay: -.9s; } .bars i:nth-child(5n) { animation-delay: -1.2s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes photo { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bark { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

@media (max-width: 359px) {
  .top .brand__name { display: none; }
  .pass__link { display: none; }
  .pass__main { grid-template-columns: 84px 1fr; gap: 14px; }
  .pass__main img { width: 84px; height: 106px; }
  .pass__card { padding: 20px; }
}

@media (max-width: 1023px) {
  .doc-card--back { display: none; }
  .doc-card--mid { left: 10%; right: auto; top: 16px; }
}

/* Móvil: menos piezas sueltas sobre las fotos */
@media (max-width: 559px) {
  .sheet--family { width: min(270px, 84%); margin-top: -40px; }
  .pass__app { padding: 9px 12px; font-size: .8125rem; }
  .pass__link i { width: 10px; }
  .pass__card { transform: rotate(-2deg); }
}

/* ---------- Pantallas medianas (móvil grande) ---------- */
@media (min-width: 560px) {
  .float--a { top: 12%; bottom: auto; right: -2%; }
  .float--b { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Tablet ---------- */
@media (min-width: 960px) {
  .top__nav { display: flex; }
}

@media (min-width: 560px) and (max-width: 1023px) {
  .hero__art { width: 100%; max-width: 580px; margin-inline: auto; }
}

@media (min-width: 820px) {
  .moment { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .moment--flip { grid-template-columns: 1.15fr 1fr; }
  .moment--flip .moment__text { order: 2; }
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile--lost { grid-column: span 12; grid-template-columns: 1.1fr .9fr; align-items: center; }
  .tile--consult, .tile--near { grid-column: span 6; }
  .tile--bark { grid-column: span 12; grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .trust__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; }
  .trust__photo { width: 100%; }
  .passport__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  body { font-size: 1.09rem; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: min(calc(100svh - 72px), 860px); padding-top: 8px; }
  .hero__art { padding-bottom: 64px; }
  .hero__photo { width: 76%; }
  .hero__phone { --pw: clamp(220px, 17.5vw, 262px); left: -2%; }
  .float--a { right: -3%; top: 10%; }
  .moment { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); }
  .moment--flip { grid-template-columns: 7fr 5fr; }
  .moment--flip .moment__text { order: 2; }
  .tile--lost { grid-column: span 7; grid-row: span 2; grid-template-columns: 1fr; }
  .tile--consult, .tile--near { grid-column: span 5; }
  .art-family .sheet--family { position: absolute; right: -24px; bottom: -40px; margin: 0; }
  .art-wellbeing .photo-frame { width: 68%; }
  .art-wellbeing .sheet--weight { position: absolute; right: 0; bottom: 8%; margin: 0; }
}
@media (min-width: 1240px) {
  .tile--lost { grid-template-columns: 1fr 1fr; }
}
