/* Landing de Zovarys Pet y portada de Zovarys (borrador, sin publicar).
   Mismos tokens de marca que la landing de Zovarys Bos; el tono tierra es propio de Vet. */
:root {
  --forest: #1B4332;
  --forest-mid: #2D6A4F;
  --forest-deep: #0F1E17;
  --leaf: #52B788;
  --gold: #D4AF37;
  --gold-soft: #E9CF78;
  --bone: #FAF8F3;
  --sand: #F3EFE6;
  --ink: #182620;
  --muted: #3F4D46;
  --muted-2: #4B5A52;
  --on-forest: #F2F0EA;
  --on-forest-2: #D3DED7;
  --clay: #6F431D;
  --clay-deep: #5A3415;
  --clay-mid: #8A5426;
  --clay-soft: #F6EADB;
  --clay-warm: #F3C99A;
  --on-clay: #FAF3EA;
  --on-clay-2: #F0E2D2;
  --line: #DDD6C6;
  --alert: #C2410C;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --sec: clamp(72px, 10vw, 128px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bone); line-height: 1.5; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--forest); }
a:hover { color: var(--forest-mid); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--forest); color: var(--on-forest); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-clay { background: var(--clay); color: var(--on-clay); box-shadow: 0 10px 24px -14px rgba(90, 52, 21, .9); }
.btn-clay:hover { background: var(--clay-deep); color: var(--on-clay); box-shadow: 0 16px 30px -14px rgba(90, 52, 21, .9); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--forest-deep); }
.btn-cream { background: var(--on-clay); color: var(--clay-deep); }
.btn-cream:hover { background: #fff; color: var(--clay-deep); }
.btn-line { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-line:hover { background: var(--forest); color: var(--on-forest); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .7; cursor: default; transform: none; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand b { color: var(--clay); font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { padding: 12px 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.nav a:not(.btn):hover { background: var(--sand); color: var(--ink); }
@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Reveal al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.pulse-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: clamp(40px, 7vw, 88px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; color: var(--forest); }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted-2); }

/* Palabra que rota en el titular */
.flip-stack { display: inline-grid; vertical-align: bottom; }
.flip-stack > .flip-word { grid-area: 1 / 1; }
.flip-word { color: var(--clay); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), filter .35s; }
.flip-word.out { opacity: 0; transform: translateY(-0.35em); filter: blur(6px); }
.flip-word.in { opacity: 0; transform: translateY(0.35em); filter: blur(6px); transition: none; }
.flip-word.off { visibility: hidden; opacity: 0; }

/* ---------- Demo: consulta por voz ---------- */
.demo { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-card { background: #fff; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(24, 38, 32, .45); overflow: hidden; position: relative; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #EEE8DC; }
.rec { width: 46px; height: 46px; flex: none; border-radius: 999px; border: 0; background: var(--clay-soft); color: var(--clay); display: grid; place-items: center; cursor: pointer; position: relative; transition: background-color .25s, transform .3s var(--ease-out); }
.rec:hover { transform: scale(1.05); }
.rec .dot { width: 14px; height: 14px; border-radius: 999px; background: var(--alert); transition: border-radius .3s var(--ease-out), transform .3s var(--ease-out); }
.demo[data-state="recording"] .rec .dot { border-radius: 3px; transform: scale(.9); }
.demo[data-state="recording"] .rec::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--alert); animation: ring 1.4s var(--ease-out) infinite; }
@keyframes ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.demo-title { display: flex; flex-direction: column; min-width: 0; }
.demo-title strong { font-size: 15px; }
.demo-status { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pet-chip { margin-left: auto; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--clay-soft); color: var(--clay-deep); }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; padding: 0 20px; margin-top: 12px; }
.wave i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: var(--clay-mid); opacity: .35; transform: scaleY(.1); transition: transform .18s, opacity .3s; }
.demo[data-state="recording"] .wave i { opacity: .9; }
.transcript { margin: 10px 20px 0; min-height: 44px; font-size: 14px; line-height: 1.45; color: var(--muted-2); font-style: italic; }
.fields { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 3px; border-radius: 12px; padding: 8px 10px; margin: -8px -10px; transition: background-color .6s; }
.field.flash { background: #FFF4E3; }
.field label, .field .lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); }
.field .val { font-size: 15px; min-height: 22px; }
.field .val:empty::before { content: ""; display: block; height: 10px; width: 60%; margin-top: 6px; border-radius: 6px; background: #EEE8DC; }
.vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vital { background: var(--bone); border-radius: 12px; padding: 10px 12px; transition: background-color .6s; }
.vital.flash { background: #FFF4E3; }
.vital span { display: block; font-size: 12px; color: var(--muted-2); }
.vital b { font-size: 17px; font-variant-numeric: tabular-nums; }
.demo-actions { display: flex; gap: 10px; padding-top: 4px; }
.demo-actions button { flex: 1; min-height: 46px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .25s, transform .3s var(--ease-out); }
.demo-actions .ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.demo-actions .solid { border: 0; background: var(--forest); color: var(--on-forest); }
.demo-actions .solid:hover:not([disabled]) { background: var(--forest-mid); }
.demo-actions button[disabled] { opacity: .55; cursor: default; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--forest-deep); color: var(--on-forest); font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.toast .ic { width: 18px; height: 18px; flex: none; color: var(--leaf); }
.seal { width: 30px; height: 30px; flex: none; border-radius: 999px; background: var(--on-forest); display: grid; place-items: center; animation: sealIn .7s var(--ease-out); }
.seal img { width: 20px; height: 20px; }
@keyframes sealIn { from { transform: scale(1.6) rotate(-18deg); opacity: 0; } }
.demo-caption { font-size: 13px; color: var(--muted-2); text-align: center; }

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec); }
.sec-sand { background: var(--sand); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; font-weight: 800; color: var(--forest); }
.sec-head p { font-size: 18px; line-height: 1.55; color: var(--muted); }

/* Antes y después */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.compare > div { border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.compare .before { background: #fff; border: 1px solid var(--line); }
.compare .after { background: var(--forest); color: var(--on-forest); }
.compare h3 { font-size: 18px; }
.compare .before h3 { color: var(--muted-2); }
.compare .after h3 { color: var(--gold-soft); }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.compare li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.compare .before li svg { color: #A0522D; }
.compare .after li svg { color: var(--leaf); }

/* Módulos: índice que se despliega */
.mods { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.mod { border-bottom: 1px solid var(--line); }
.mod button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.mod button:hover .mod-name { color: var(--clay); }
.mod .num { font-size: 14px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; min-width: 2ch; }
.mod .mod-ic { width: 26px; height: 26px; flex: none; color: var(--clay); }
.mod-name { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; transition: color .3s; }
.mod .chev { margin-left: auto; width: 22px; height: 22px; flex: none; color: var(--muted-2); transition: transform .4s var(--ease-out); }
.mod button[aria-expanded="true"] .chev { transform: rotate(45deg); }
.mod-body { display: none; padding: 0 4px 24px 76px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 52rem; }
.mod-body.open { display: block; animation: modIn .6s var(--ease-out); }
@keyframes modIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@media (max-width: 640px) { .mod-body { padding-left: 4px; } .mod .num { display: none; } }

/* Pasos con línea que se llena al hacer scroll */
.sec-clay { background: var(--clay); color: var(--on-clay); }
.sec-clay .sec-head h2 { color: var(--on-clay); }
.sec-clay .sec-head p { color: var(--on-clay-2); }
.steps-list { --p: 0%; position: relative; margin: 0; padding: 0 0 0 64px; list-style: none; display: flex; flex-direction: column; gap: 40px; }
.steps-list::before, .steps-list::after { content: ""; position: absolute; left: 21px; top: 8px; width: 3px; border-radius: 3px; }
.steps-list::before { bottom: 8px; background: rgba(250, 243, 234, .22); }
.steps-list::after { height: calc(var(--p) - 16px); max-height: calc(100% - 16px); background: var(--clay-warm); }
.steps-list li { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 40rem; }
.steps-list .n { position: absolute; left: -64px; top: -4px; width: 46px; height: 46px; border-radius: 999px; background: var(--on-clay); color: var(--clay-deep); display: grid; place-items: center; font-weight: 800; font-size: 18px; z-index: 1; }
.steps-list h3 { font-size: 22px; }
.steps-list p { font-size: 17px; line-height: 1.55; color: var(--on-clay-2); }

/* Para el tutor */
.tutor { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tutor > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tutor > div:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(24, 38, 32, .5); }
.tutor svg { width: 28px; height: 28px; color: var(--clay); }
.tutor h3 { font-size: 18px; }
.tutor p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(24, 38, 32, .5); }
.plan.featured { border: 2px solid var(--clay); background: #FFFBF6; }
.plan h3 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan .tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--clay); color: var(--on-clay); letter-spacing: 0; }
.plan .price { font-size: 36px; font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted-2); }
.plan > p { font-size: 15px; color: var(--muted); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 18px; font-size: 14px; color: var(--muted-2); }

/* Preguntas */
.faq { max-width: 52rem; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .25s; }
.faq details[open] { border-color: var(--clay-mid); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 64px; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 500; color: var(--clay); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 16px; line-height: 1.6; color: var(--muted); animation: modIn .5s var(--ease-out); }

/* Formulario → WhatsApp */
.lead-sec .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.lead-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.lead-copy h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; font-weight: 800; color: var(--forest); }
.lead-copy p { font-size: 18px; color: var(--muted); }
.lead { flex: 1 1 420px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lead .full { grid-column: 1 / -1; }
.lead label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lead input, .lead select { font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bone); color: var(--ink); }
.lead input:focus, .lead select:focus { outline: 3px solid var(--clay-warm); outline-offset: 0; border-color: var(--clay-mid); }
.lead [aria-invalid="true"] { border-color: var(--alert); }
.lead-msg { font-size: 14px; color: var(--muted-2); min-height: 20px; }
.lead-msg.err { color: #9A3412; }

/* ---------- Portada: dos entradas ---------- */
.home-hero { text-align: center; padding-block: clamp(48px, 8vw, 104px) 40px; position: relative; overflow: hidden; }
.home-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.home-hero h1 { font-size: clamp(38px, 5.8vw, 70px); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; color: var(--forest); max-width: 15em; }
.home-hero p { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 36em; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: 72px; }
.door { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.door:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 30, 23, .6); }
.door-media { height: 300px; overflow: hidden; position: relative; }
.door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.door:hover .door-media img { transform: scale(1.05); }
.door-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.door .kicker { font-size: 14px; font-weight: 700; }
.door h2 { font-size: 32px; line-height: 1.1; font-weight: 800; }
.door p { font-size: 17px; line-height: 1.55; }
.door ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.door li { display: flex; gap: 10px; align-items: center; }
.door li svg { width: 18px; height: 18px; flex: none; }
.door .go { margin-top: auto; align-self: flex-start; }
.door-bos, .door-bos:hover { background: var(--forest); color: var(--on-forest); }
.door-bos .kicker { color: var(--gold-soft); }
.door-bos p { color: var(--on-forest-2); }
.door-bos li svg { color: var(--leaf); }
.door-vet, .door-vet:hover { background: var(--clay); color: var(--on-clay); }
.door-vet .kicker { color: var(--clay-warm); }
.door-vet p { color: var(--on-clay-2); }
.door-vet li svg { color: var(--clay-warm); }
.vet-media { background: var(--clay-mid); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--clay-soft); }
.vet-media svg { width: 72px; height: 72px; }
.vet-media span { font-size: 14px; font-weight: 600; }
.common { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.common h3 { font-size: 18px; color: var(--forest); margin-bottom: 6px; }
.common p { font-size: 15px; color: var(--muted); }

/* ---------- Pie ---------- */
.foot { background: var(--forest-deep); color: var(--on-forest-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 32px; padding-block: 48px 24px; }
.foot .col { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.foot .col:first-child { flex-basis: 280px; gap: 10px; }
.foot h2 { font-size: 14px; font-weight: 700; color: var(--gold-soft); margin-bottom: 6px; letter-spacing: 0; }
.foot a { color: var(--on-forest); text-decoration: none; padding: 6px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { color: var(--on-forest); font-size: 20px; }
.foot-legal { text-align: center; font-size: 13px; padding: 16px var(--gutter) 28px; color: var(--on-forest-2); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
