/* KuyPet — landing */
:root {
  --bg: #fff8f1;
  --bg-2: #fff1e4;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6b605a;
  --line: #f0e2d4;
  --brand: #ff6b3d;
  --brand-ink: #c4441c;
  --brand-soft: #ffe1d4;
  --teal: #0fa596;
  --teal-soft: #d6f5f1;
  --sun: #ffc83d;
  --lilac: #ece6ff;
  --shadow: 0 20px 50px -20px rgba(120, 60, 20, .28);
  --radius: 22px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f; --bg-2: #1f1813; --surface: #251d18; --ink: #fbf3ec; --muted: #c2b4a9;
    --line: #3a2e26; --brand: #ff7d52; --brand-ink: #ffb398; --brand-soft: #4a261a;
    --teal: #2fd0bf; --teal-soft: #123a36; --lilac: #2b2540;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17120f; --bg-2: #1f1813; --surface: #251d18; --ink: #fbf3ec; --muted: #c2b4a9;
  --line: #3a2e26; --brand: #ff7d52; --brand-ink: #ffb398; --brand-soft: #4a261a;
  --teal: #2fd0bf; --teal-soft: #123a36; --lilac: #2b2540;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); line-height: 1.55;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(50rem 30rem at -10% 30%, var(--teal-soft), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.fine { font-size: .85rem; color: var(--muted); }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--brand); margin-bottom: .6rem; }

/* Huellitas que cruzan la página */
.paws { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.paw { position: absolute; font-size: 22px; opacity: 0; animation: pawfade 2.6s ease-out forwards; filter: saturate(.6); }
@keyframes pawfade { 0% { opacity: 0; transform: scale(.6) rotate(var(--r)); } 15% { opacity: .35; transform: scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: scale(1) rotate(var(--r)); } }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.brand b { color: var(--brand); font-weight: 700; }
.brand-mark { width: 36px; height: 36px; color: var(--brand); }
.topnav { display: flex; align-items: center; gap: 1.4rem; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.topnav a:hover { color: var(--brand); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; font: 800 1rem/1 var(--body); text-decoration: none;
  padding: 1rem 1.5rem; border-radius: 999px; background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--brand-ink); }

.stores { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .8rem; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer;
  padding: .75rem 1.3rem .75rem 1rem; border-radius: 16px; border: 0;
  background: #121212; color: #fff; text-align: left; font: 700 1.15rem/1.1 var(--body);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.6); transition: transform .15s ease;
}
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: .7rem; font-weight: 600; opacity: .75; }

.pill-tag {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Hero */
main { position: relative; z-index: 1; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 3rem;
}
.hero h1 { margin-top: 1.1rem; }
.swap { color: var(--brand); display: inline-block; transition: transform .35s ease, opacity .35s ease; }
.swap.out { transform: translateY(-.4em) rotate(-4deg); opacity: 0; }
.species { display: inline-flex; padding: .3rem; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.species-btn { border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 800 .95rem var(--body); padding: .55rem 1.1rem; border-radius: 999px; transition: background .2s; }
.species-btn.is-on { background: var(--brand); color: #fff; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 2rem 0; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: #151515; box-shadow: var(--shadow), inset 0 0 0 2px #2c2c2c;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(.6deg); } }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #151515; border-radius: 20px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: #fff8f1; color: #1f1a17; padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.app-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .95rem; }
.pet-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.25); }
.pet-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: #ffe1d4; transition: transform .4s ease; }
.pet-avatar.pop { transform: scale(1.18) rotate(-8deg); }
.pet-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0; }
.pet-meta { font-size: .78rem; color: #6b605a; margin: 0; }
.pet-badge { margin-left: auto; font-size: .7rem; font-weight: 800; color: #0b7c70; background: #d6f5f1; padding: .25rem .5rem; border-radius: 999px; }
.tile { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.25); }
.tile-hot { background: linear-gradient(135deg, #ff6b3d, #ff9a5a); color: #fff; }
.tile-label { font-size: .72rem; font-weight: 700; opacity: .75; margin: 0 0 2px; text-transform: uppercase; letter-spacing: .05em; }
.tile-value { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin: 0; }
.tile-value.small { font-size: .98rem; }
.progress { height: 6px; background: rgba(255,255,255,.35); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 82%; background: #fff; border-radius: 99px; animation: grow 2.4s ease-out; }
@keyframes grow { from { width: 0; } }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vet-mini { display: flex; gap: 10px; align-items: center; background: #ece6ff; border-radius: 18px; padding: 10px 12px; }
.vet-pin { font-size: 22px; }
.vet-name { font-weight: 800; font-size: .82rem; margin: 0; }
.vet-meta { font-size: .72rem; color: #6b605a; margin: 0; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; background: #fff; border-radius: 18px; padding: 10px; font-size: 18px; }
.app-tabs .on { background: #ffe1d4; border-radius: 10px; padding: 0 10px; }

.float-chip {
  position: absolute; z-index: 3; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: .6rem .9rem; border-radius: 14px; font-weight: 800; font-size: .88rem; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.chip-a { top: 12%; left: -4%; }
.chip-b { top: 48%; right: -6%; animation-delay: -1.6s; }
.chip-c { bottom: 10%; left: 2%; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 1rem 0; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: slide 32s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.marquee-track span::after { content: "🐾"; margin-left: 2.5rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Secciones */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4.5rem; }
.feature-row.flip .feature-text { order: 2; }
.num { font-family: var(--display); font-size: 3.4rem; font-weight: 700; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); line-height: 1; display: block; margin-bottom: .6rem; }
.feature-text p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.8rem; position: relative; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: .75rem; }
.ticks.light li::before { background: rgba(255,255,255,.25); color: #fff; }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.mock-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.vax { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.vax small { display: block; color: var(--muted); }
.vax-ok { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; flex: none; }
.vax-next .vax-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; flex: none; animation: ping 1.8s infinite; }
.mock-btn { margin-top: 1rem; width: 100%; border: 0; border-radius: 14px; padding: .85rem; background: var(--brand); color: #fff; font: 800 .95rem var(--body); }

.mock-chat { background: linear-gradient(180deg, var(--teal-soft), var(--surface)); display: grid; gap: .6rem; }
.bubble { max-width: 82%; padding: .7rem .95rem; border-radius: 18px; font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.bubble.in { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.out { justify-self: end; background: #25d366; color: #06301a; border-bottom-right-radius: 6px; }
.is-visible .bubble { opacity: 1; transform: none; }
.is-visible .bubble:nth-child(2) { transition-delay: .5s; }
.is-visible .bubble:nth-child(3) { transition-delay: 1.1s; }
.is-visible .bubble:nth-child(4) { transition-delay: 1.7s; }

.mock-alert { position: relative; overflow: hidden; }
.alert-top { font-weight: 800; color: #b42318; background: #fee4e2; padding: .5rem .8rem; border-radius: 12px; display: inline-block; }
.alert-body { display: flex; gap: .9rem; align-items: center; margin: 1rem 0; position: relative; z-index: 1; }
.alert-body small { display: block; color: var(--muted); }
.alert-photo { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; font-size: 34px; }
.radar { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: radar 3s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: 1s; }
.radar span:nth-child(3) { animation-delay: 2s; }
@keyframes radar { 0% { transform: scale(.2); opacity: .6; } 100% { transform: scale(1); opacity: 0; } }

/* Roadmap */
.roadmap { position: relative; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: stage; }
.stage {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; counter-increment: stage; transition: transform .2s ease, box-shadow .2s ease;
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stage::before { content: "0" counter(stage); position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--line); }
.stage-icon { font-size: 2rem; display: block; margin: .9rem 0 .5rem; }
.stage p { color: var(--muted); margin: 0; }
.stage-status { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 999px; }
.stage-status.live { background: var(--teal-soft); color: var(--teal); }
.stage-status.next { background: var(--brand-soft); color: var(--brand-ink); }
.stage-status.later { background: var(--lilac); color: var(--muted); }

/* Veterinarias */
.vets-card {
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: end;
  background: linear-gradient(135deg, var(--teal), #0b7c70); color: #fff; border-radius: 32px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.vets-card .kicker { color: #c9fff8; }
.vets-card p { color: #e6fffb; max-width: 40rem; }

.final { text-align: center; }
.final .lead { margin-inline: auto; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

.footer { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(30, 15, 5, .45); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.92) translateY(10px); opacity: 0; } }
.modal-body { padding: 3.2rem clamp(1.2rem, 4vw, 2.2rem) 1.8rem; }
.modal-body h2 { font-size: 1.8rem; margin-top: 1rem; }
.modal-lead { color: var(--muted); }
.modal-close-form { position: absolute; top: .8rem; right: .8rem; margin: 0; }
.modal-close { border: 0; background: var(--bg-2); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

.form { display: grid; gap: 1rem; }
.roles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.role input { position: absolute; opacity: 0; }
.role span { display: block; text-align: center; padding: .8rem; border-radius: 14px; border: 2px solid var(--line); font-weight: 800; cursor: pointer; }
.role input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.role input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fields label { display: grid; gap: .3rem; font-weight: 700; font-size: .88rem; }
.fields .full { grid-column: 1 / -1; }
.fields [hidden] { display: none; }
.opt { font-weight: 600; color: var(--muted); }
input, select { font: 600 1rem var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--brand); }
.trap { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 800; min-height: 1.2em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #d92d20; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row.flip .feature-text { order: 0; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .vets-card { grid-template-columns: 1fr; }
  .topnav a:not(.keep):not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 560px; }
  .chip-a { left: 0; } .chip-b { right: 0; }
  .store { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bubble { opacity: 1; transform: none; }
}

.topnav .keep { font-weight: 800; }
.web-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: 1.05rem; color: var(--brand-ink); text-decoration: none; border-bottom: 2px solid var(--brand-soft); padding-bottom: 2px; margin-bottom: .8rem; }
.web-cta:hover { border-color: var(--brand); }
.web-cta span { transition: transform .2s; }
.web-cta:hover span { transform: translateX(4px); }
.final .btn { margin-bottom: .5rem; }
.topnav a.btn, .topnav a.btn:hover { color: #fff; }

/* Páginas legales */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-date { color: var(--muted) !important; font-weight: 700; }
.legal-back { margin-top: 2.5rem; }
