/* =========================================================
   DuarVet — Sistema visual basado en el Manual de imagen
   Colores: #E71F85 · #60BFBC · #52489C · #BDADEA · #B9DAB3
   Tipografía: Advent Pro (display) + Montserrat (texto)
   ========================================================= */

:root {
  --magenta: #E71F85;
  --magenta-strong: #C40F68;   /* texto y botones sobre claro (AA) */
  --magenta-soft: #FBE6F0;
  --teal: #60BFBC;
  --teal-deep: #1A6F6C;
  --teal-soft: #E1F2F1;
  --purple: #52489C;
  --purple-ink: #211B45;
  --lavender: #BDADEA;
  --lavender-soft: #EFEAFA;
  --mint: #B9DAB3;
  --mint-soft: #EAF3E7;

  --bg: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #1F1A36;
  --ink-2: #4A4562;
  --ink-3: #635E7A;
  --line: #E4E1EC;
  --line-dark: rgb(255 255 255 / .14);
  --on-dark: #F4F0FB;
  --on-dark-2: #C9C3E0;

  --f-display: "Advent Pro", "Trebuchet MS", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;

  --fs-hero: clamp(3.6rem, 1.4rem + 7.4vw, 8.2rem);
  --fs-h2: clamp(2.6rem, 1.6rem + 4vw, 5.4rem);
  --fs-h3: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem);
  --fs-lead: clamp(1.02rem, .96rem + .3vw, 1.18rem);

  --gutter: clamp(1.1rem, .4rem + 3vw, 3rem);
  --section: clamp(5.5rem, 3rem + 8vw, 10.5rem);
  --radius: 20px;
  --radius-lg: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow-1: 0 1px 2px rgb(20 16 40 / .05), 0 12px 32px -14px rgb(20 16 40 / .18);
  --shadow-2: 0 2px 6px rgb(20 16 40 / .06), 0 40px 80px -30px rgb(20 16 40 / .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: .95; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--magenta-strong); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--magenta); color: #fff; }
.section { padding-block: var(--section); position: relative; }
.fine { font-size: .82rem; color: var(--ink-3); }
.center { text-align: center; }

/* Encabezado de sección editorial: título a la izquierda, apoyo a la derecha */
.split-head {
  display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 1.5rem 4rem; align-items: end;
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: clamp(2.4rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line);
}
.split-head p { color: var(--ink-2); font-size: var(--fs-lead); }
.split-head .btn { justify-self: end; }

/* ---------- Botones ---------- */
.btn {
  --bh: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--bh); padding: 0 1.5rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: .94rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s, color .3s;
}
.btn .ic { transition: transform .5s var(--ease-out); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-sm { --bh: 42px; padding: 0 1.15rem; font-size: .88rem; }
.btn-lg { --bh: 60px; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--magenta-strong); color: #fff; }
.btn-primary:hover { background: #A80B58; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: var(--surface); color: var(--purple-ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn-text {
  background: none; padding: 0; min-height: 44px; border-radius: 0; color: var(--ink); font-weight: 600; white-space: normal; text-align: left;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.btn-text:hover { color: var(--magenta-strong); background-size: 0 1px; background-position: 100% calc(100% - 10px); }
.linklike { background: none; border: 0; padding: 0; text-align: left; color: inherit; text-decoration: underline; text-underline-offset: .22em; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, box-shadow .4s, transform .6s var(--ease-out); }
.site-header.is-scrolled { background: rgb(247 246 251 / .88); backdrop-filter: saturate(1.3) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.brand img { width: 146px; }
.main-nav { display: flex; gap: .2rem; }
.main-nav a { position: relative; padding: .5rem .85rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9rem; transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.main-nav a:hover, .main-nav a.is-current { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone { font-weight: 600; font-size: .9rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--magenta-strong); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease-out), background-color .2s; }
.menu-toggle .bars { left: 50%; top: 50%; translate: -50% -50%; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; left: 0; }
.menu-toggle .bars::before { transform: translateY(-5px); }
.menu-toggle .bars::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 84px); overflow-y: auto; background: var(--bg);
  padding: 1.5rem var(--gutter); display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease-out) forwards;
}
.mobile-menu nav a span { font-family: var(--f-body); font-size: .75rem; color: var(--ink-3); font-weight: 500; }
.mobile-menu nav a:nth-child(2) { animation-delay: .04s; } .mobile-menu nav a:nth-child(3) { animation-delay: .08s; }
.mobile-menu nav a:nth-child(4) { animation-delay: .12s; } .mobile-menu nav a:nth-child(5) { animation-delay: .16s; }
.mobile-menu-foot { display: grid; gap: .2rem; color: var(--ink-2); padding: 2rem 0 6rem; }
.mobile-menu-foot a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 120px; padding-bottom: clamp(3rem, 6vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; min-height: min(800px, calc(100svh - 120px)); }
.hero-title { font-size: var(--fs-hero); font-weight: 500; line-height: .84; letter-spacing: -.03em; margin-bottom: 2rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; font-weight: 600; color: var(--magenta); }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.8rem; margin: 3.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-meta dt { font-size: .76rem; color: var(--ink-3); font-weight: 500; margin-bottom: .2rem; }
.hero-meta dd { margin: 0; font-weight: 600; font-size: .95rem; }
.hero-meta [data-open="true"] { color: var(--teal-deep); }

.load-in { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--d, 0s) var(--ease-out) forwards; }
.hero-title .load-in { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

.hero-stage { position: relative; aspect-ratio: 1 / 1; isolation: isolate; --px: 0; --py: 0; }
.stage-bg {
  position: absolute; inset: 8% 2% 0 6%; z-index: -2;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 42% 42% var(--radius-lg) var(--radius-lg);
  background: var(--lavender-soft);
  opacity: 0; transform: scale(.96); animation: rise 1.4s .05s var(--ease-out) forwards;
}
.stage-v { position: absolute; left: 50%; top: 3%; width: 72%; margin-left: -36%; z-index: -1; overflow: visible; transition: translate .9s var(--ease-out); translate: calc(var(--px) * 10px) calc(var(--py) * 10px); }
.v-left { transform: translate(-70px, 50px); opacity: 0; animation: join 1.5s .3s var(--ease-out) forwards; }
.v-right { transform: translate(70px, -50px); opacity: 0; animation: join 1.5s .3s var(--ease-out) forwards; }
@keyframes join { to { transform: none; opacity: 1; } }
.stage-pets {
  position: absolute; left: -3%; bottom: 0; width: 106%; max-width: none;
  opacity: 0; transform: translateY(40px); animation: rise 1.3s .8s var(--ease-out) forwards;
  transition: translate .9s var(--ease-out); translate: calc(var(--px) * -16px) calc(var(--py) * -8px);
}

/* ---------- Servicios ---------- */
/* Los tres servicios siempre visibles; el índice fijo marca en cuál vas */
.svc { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.svc-index { display: flex; flex-direction: column; position: sticky; top: 120px; }
.svc-tab {
  --tone: var(--magenta-strong);
  display: flex; align-items: baseline; gap: 1.1rem; border-bottom: 1px solid var(--line);
  padding: 1.4rem 0; color: var(--ink-3); text-decoration: none; position: relative; transition: color .35s;
}
.svc-tab:first-child { border-top: 1px solid var(--line); }
.svc-tab[data-tone="teal"] { --tone: var(--teal-deep); }
.svc-tab[data-tone="purple"] { --tone: var(--purple); }
.svc-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.svc-num { font-size: .78rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-name { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 500; line-height: 1; }
.svc-tab:hover { color: var(--ink-2); }
.svc-tab.is-current { color: var(--tone); }
.svc-tab.is-current::after { transform: scaleX(1); }

.svc-panels { display: grid; gap: clamp(5rem, 9vw, 9rem); }
.svc-panel { --tone: var(--magenta); --tone-ink: var(--magenta-strong); --tone-soft: var(--magenta-soft); display: grid; gap: 2.4rem; scroll-margin-top: 110px; }
.svc-panel[data-tone="teal"] { --tone: var(--teal); --tone-ink: var(--teal-deep); --tone-soft: var(--teal-soft); }
.svc-panel[data-tone="purple"] { --tone: var(--purple); --tone-ink: var(--purple); --tone-soft: var(--lavender-soft); }
.svc-photo {
  margin: 0; position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--tone-soft);
  /* Recorte diagonal inspirado en los trazos de la V; se abre al entrar en pantalla */
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); transition: clip-path 1.3s var(--ease-out);
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.svc-panel:not(.is-seen) .svc-photo { clip-path: polygon(7% 0, 7% 0, 0 100%, 0 100%); }
.svc-panel:not(.is-seen) .svc-photo img { transform: scale(1.1); }
.svc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 3rem; }
.svc-body > :not(.svc-list):not(.svc-ctas) { grid-column: 1; }
.svc-body > p:not(.svc-kicker) { color: var(--ink-2); font-size: var(--fs-lead); }
.svc-kicker { display: flex; align-items: baseline; gap: .7rem; font-weight: 600; font-size: .9rem; color: var(--tone-ink); margin: 0; }
.svc-kicker span { font-size: .78rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-body > * { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.svc-panel:not(.is-seen) .svc-body > * { opacity: 0; transform: translateY(18px); }
.svc-body > :nth-child(2) { transition-delay: .06s; }
.svc-body > :nth-child(3) { transition-delay: .12s; }
.svc-body > :nth-child(4) { transition-delay: .18s; }
.svc-body > :nth-child(5) { transition-delay: .24s; }
.svc-list { grid-column: 2; grid-row: 1 / span 3; list-style: none; padding: 0; margin: 0; align-self: start; }
.svc-list li { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.svc-list li:first-child { border-top: 1px solid var(--line); }
.svc-list li::before { content: ""; width: 9px; height: 14px; background: var(--tone); transform: skewX(-16deg); flex: none; border-radius: 1px; }
.svc-ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .6rem; }

/* ---------- Evaluación ---------- */
.eval-band { background: var(--purple-ink); color: var(--on-dark); }
.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.eval-copy h2 { color: #fff; }
.eval-copy p { color: var(--on-dark-2); font-size: var(--fs-lead); margin-top: 1.5rem; max-width: 46ch; }
.eval-copy .fine { font-size: .84rem; color: #A9A2C8; margin-top: 1.6rem; }
.eval-checks { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; max-width: 520px; }
.eval-checks li {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark); font-size: .86rem; font-weight: 500; color: var(--on-dark);
}
.eval-checks li::before { content: ""; width: 6px; height: 11px; background: var(--teal); transform: skewX(-16deg); }

.eval-try { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); }
.try-head { margin-bottom: 1.6rem; }
.try-q { font-family: var(--f-display); font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); font-weight: 500; line-height: 1.02; margin: 0 0 .6rem; }
.try-meta { font-size: .86rem; color: var(--ink-3); margin: 0; }
.try-opts { display: grid; }
.try-opt {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 1.2rem; width: 100%;
  padding: 1.25rem .2rem; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink);
}
.try-opt:last-child { border-bottom: 1px solid var(--line); }
.try-mark { justify-self: center; height: 52px; width: auto; transition: transform .6s var(--ease-out); }
.try-mark-other { width: 26px; background: var(--lavender); clip-path: polygon(0 0, 46% 0, 100% 100%, 54% 100%); border-radius: 2px; }
.try-label { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); font-weight: 500; line-height: 1.1; transition: color .3s; }
.try-label small { display: block; margin-top: .25rem; font-family: var(--f-body); font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.try-go { width: 22px; height: 22px; color: var(--ink-3); transition: transform .5s var(--ease-out), color .3s; }
.try-opt:hover .try-label, .try-opt:focus-visible .try-label { color: var(--magenta-strong); }
.try-opt:hover .try-go, .try-opt:focus-visible .try-go { color: var(--magenta-strong); transform: translateX(6px); }
.try-opt:hover .try-mark { transform: translateY(-4px) rotate(-3deg); }
.try-last { margin-top: 1.2rem; font-size: .92rem; }

/* ---------- Equipo ---------- */
.team { padding-top: calc(var(--section) + clamp(2rem, 5vw, 5rem)); }
.team-panel {
  position: relative; isolation: isolate; overflow: visible;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6.5rem);
  background: var(--lavender-soft); border-radius: var(--radius-lg);
  padding: 0 clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 5vw, 5rem);
}
/* El retrato rompe el borde superior del panel */
/* Retrato que emerge del panel: sale por arriba y se apoya en el borde inferior */
.team-photo { position: relative; z-index: 1; display: flex; margin: calc(clamp(3rem, 7vw, 7rem) * -1) 0 0; }
.team-placeholder, .team-photo img.photo {
  display: block; width: 100%; min-height: 520px; border-radius: 999px 999px 0 0;
}
.team-placeholder { background: radial-gradient(90% 60% at 50% 30%, #6A5FB8 0%, var(--purple) 55%, #3E3580 100%); display: grid; place-items: center; }
.team-placeholder img { width: 44%; }
.team-photo img.photo { object-fit: cover; }
.team-copy { position: relative; z-index: 1; align-self: center; padding-block: clamp(3rem, 5vw, 5rem); }
.team-role { font-weight: 600; color: var(--magenta-strong); margin-bottom: 1.1rem; }
.team-text { font-size: var(--fs-lead); color: var(--ink-2); margin: 1.6rem 0 0; max-width: 44ch; }
.team-spec { margin: 2.4rem 0 2.6rem; max-width: 520px; }
.team-spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding: .95rem 0; border-top: 1px solid #D9D1F0; }
.team-spec div:last-child { border-bottom: 1px solid #D9D1F0; }
.team-spec dt { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.team-spec dd { margin: 0; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.team-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.team-mark { position: absolute; z-index: 0; right: clamp(-1rem, -1vw, 0rem); bottom: clamp(-2rem, -2vw, 0rem); width: clamp(220px, 28vw, 420px); height: auto; opacity: .55; pointer-events: none; }
.svc-note { flex-basis: 100%; max-width: 46ch; font-size: .88rem; color: var(--ink-3); margin: 0; }

/* ---------- Cómo agendar ---------- */
.steps { background: var(--purple-ink); color: var(--on-dark); }
.steps h2 { color: #fff; }
.steps .split-head { border-bottom-color: var(--line-dark); }
/* Columnas editoriales; cada paso lleva un trazo inclinado de la V con su color */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-list li { --tone: var(--magenta); padding: .4rem clamp(1.5rem, 3.5vw, 3.5rem) .4rem; border-left: 1px solid var(--line-dark); }
.steps-list li:first-child { padding-left: 0; border-left: 0; }
.steps-list li:last-child { padding-right: 0; }
.steps-list li[data-tone="teal"] { --tone: var(--teal); }
.steps-list li[data-tone="lavender"] { --tone: var(--lavender); }
.step-n {
  display: flex; align-items: flex-end; gap: 1.1rem; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(4.5rem, 3rem + 5vw, 8.5rem); line-height: .8; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 2rem;
}
.step-n::after {
  content: ""; width: .2em; height: .78em; background: var(--tone); clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease-out) calc(var(--rd, 0s) + .25s);
}
.steps-list li.is-in .step-n::after { transform: none; }
.steps-list h3 { color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.4rem); margin-bottom: .8rem; }
.steps-list p { color: var(--on-dark-2); max-width: 34ch; }
.steps-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem;
  margin-top: clamp(3.5rem, 6vw, 5.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-dark);
}
.steps-cta p { margin: 0; font-family: var(--f-display); font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); line-height: 1.1; color: var(--on-dark-2); }
.steps-cta p span { color: #fff; }
.steps-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head p { color: var(--ink-2); margin-top: 1.4rem; }
.faq-head a { color: var(--magenta-strong); font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 2rem; align-items: center;
  padding: 1.6rem 0; font-family: var(--f-display); font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); font-weight: 500; line-height: 1.15; transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--magenta-strong); }
.faq-ic { position: relative; width: 16px; height: 16px; flex: none; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq-ic::after { transform: rotate(90deg); }
details[open] .faq-ic::after { transform: rotate(0deg); }
.faq-a { color: var(--ink-2); padding: 0 3rem 1.8rem 0; max-width: 60ch; }
details[open] .faq-a { animation: fadeUp .6s var(--ease-out); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: stretch; }
.c-list { margin: 0; }
.c-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.c-list > div:first-child { border-top: 1px solid var(--line); }
.c-list dt { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.c-list dd { margin: 0; font-family: var(--f-display); font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); font-weight: 500; line-height: 1.2; word-break: break-word; }
.c-list a { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; transition: color .25s; }
.c-list a:hover { color: var(--magenta-strong); }
.c-list .ic { width: .8em; height: .8em; }
.hours { margin-top: 2.4rem; }
.hours-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.status-inline { margin-left: auto; display: inline-flex; gap: .5rem; align-items: center; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
[data-open="true"] .dot { background: #1E9E55; }
[data-open="false"] .dot { background: var(--magenta); }
.hours dl { margin: 0; }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours dl div.is-today dt, .hours dl div.is-today dd { color: var(--ink); font-weight: 600; }
.hours dl div.is-today dt::after { content: "  · hoy"; color: var(--magenta-strong); }
.map-card { min-height: 480px; }
.map-frame { height: 100%; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--purple-ink); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.6rem, 4vw, 3rem); color: #fff; }
.map-cover::before { content: ""; position: absolute; right: -6%; top: -8%; width: 62%; aspect-ratio: 1; background: url("../assets/brand/duarvet-simbolo.svg") center / contain no-repeat; }
.map-addr { font-family: var(--f-display); font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); font-weight: 500; line-height: .92; position: relative; }
.map-city { color: var(--on-dark-2); margin: .8rem 0 1.8rem; position: relative; }
.map-actions { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; }

/* ---------- CTA final ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--magenta-strong); color: #fff; padding-block: clamp(6rem, 12vw, 11rem); }
.final-sym { position: absolute; right: -6%; bottom: -22%; width: min(56vw, 720px); opacity: .22; pointer-events: none; }
.final-inner { position: relative; display: grid; gap: 2.6rem; }
.final-cta h2 { font-size: clamp(3rem, 1.6rem + 5.6vw, 7.4rem); color: #fff; max-width: 13ch; line-height: .9; }
.final-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.final-cta .btn-light { color: var(--magenta-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-ink); color: var(--on-dark-2); padding-top: 5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 4rem; }
.f-brand img { width: 160px; margin-bottom: 1.2rem; }
.f-brand p { font-family: var(--f-display); font-size: 1.6rem; color: #fff; }
.f-col { display: grid; gap: .55rem; align-content: start; }
.f-col strong { color: #fff; font-weight: 600; margin-bottom: .4rem; }
.f-col a, .f-col .linklike { color: var(--on-dark-2); text-decoration: none; justify-self: start; }
.f-col a:hover, .f-col .linklike:hover { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.6rem 2rem; padding-right: 76px; border-top: 1px solid var(--line-dark); font-size: .82rem; color: #ABA5C9; }
.f-bottom a { color: #fff; }

/* ---------- Acciones flotantes ---------- */
.wa-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1C9E52; color: #fff; box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease-out), opacity .4s; opacity: 0; transform: translateY(16px); pointer-events: none;
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab .ic { width: 28px; height: 28px; }
.wa-fab.is-visible:hover { transform: scale(1.06); }
.action-bar { display: none; }

/* ---------- Revelado ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(20 16 40 / .45); backdrop-filter: blur(3px); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease-out), background-color .2s; }
.icon-btn:hover { background: var(--bg); transform: rotate(90deg); }

.sheet { margin: 0 0 0 auto; height: 100dvh; width: min(580px, 100vw); }
.sheet[open] { animation: sheetIn .7s var(--ease-out); }
.sheet[open]::backdrop { animation: fade .4s; }
.sheet.closing { animation: sheetOut .35s var(--ease-io) forwards; }
@keyframes sheetIn { from { transform: translateX(100%); } }
@keyframes sheetOut { to { transform: translateX(100%); } }
.sheet-inner { height: 100%; overflow-y: auto; background: var(--surface); padding: clamp(1.4rem, 4vw, 2.6rem); overscroll-behavior: contain; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sheet-head h2 { font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.9rem); }
.sheet-intro { color: var(--ink-2); margin: .6rem 0 2rem; }

.form { display: grid; gap: 1.3rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .chips-field legend { font-weight: 600; font-size: .86rem; }
.opt { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: .9rem 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:hover, .field textarea:hover { border-color: #D3CBD3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--magenta-strong); background: var(--surface); box-shadow: 0 0 0 4px rgb(196 15 104 / .1); }
.field textarea { resize: vertical; min-height: 96px; }
.hint { font-size: .78rem; color: var(--ink-3); }
.chips-field { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: transparent;
  font-weight: 500; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); transition: all .3s var(--ease-out);
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--magenta-strong); outline-offset: 2px; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta-strong); flex: none; }
.consent a { color: var(--ink); }
.field-err { color: #A50E48; font-size: .8rem; font-weight: 600; }
.field-err:empty { display: none; }
.is-invalid input, .is-invalid textarea { border-color: #A50E48 !important; }
.is-invalid .chip span { box-shadow: inset 0 0 0 1px #DE8DAF; }
.groom-note { display: flex; gap: 1rem; align-items: flex-start; background: var(--lavender-soft); border-radius: 16px; padding: 1.1rem 1.2rem; margin: -.4rem 0 1.6rem; animation: fadeUp .4s var(--ease-out); }
.groom-note p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.groom-note .groom-title { font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.groom-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--purple); }
.err-summary { background: var(--magenta-soft); color: #7E0B3C; padding: 1rem 1.2rem; border-radius: 14px; font-size: .9rem; }
.err-summary ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.sheet-success { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-top: 4rem; }
.sheet-success h2 { font-size: 3.4rem; }
.sheet-success p { color: var(--ink-2); max-width: 36ch; }
.sheet-success a { color: var(--magenta-strong); }
.success-mark { width: 88px; height: 88px; border-radius: 50%; background: var(--mint-soft); color: #2B7A39; display: grid; place-items: center; animation: pop .8s var(--ease-out); }
.success-mark .ic { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* Evaluación a pantalla completa */
.eval { width: 100vw; height: 100dvh; margin: 0; }
.eval[open] { animation: fade .45s; }
.eval.closing { animation: fadeOut .3s var(--ease-io) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.eval-home { background: none; border: 0; padding: 0; border-radius: 8px; flex: none; }
.exit-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .88rem; flex: none; transition: box-shadow .25s, background-color .25s; }
.exit-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.eval-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); }
.eval-top { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: 1.1rem var(--gutter); }
.eval-top img { width: 116px; }
.eval-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.eval-progress span { display: block; height: 100%; width: 0; background: var(--magenta-strong); transition: width .8s var(--ease-out); }
.eval-stage { overflow-y: auto; padding: clamp(1.5rem, 6vh, 5rem) var(--gutter) 2rem; }
.q { width: min(780px, 100%); margin-inline: auto; display: grid; gap: 1.6rem; animation: qIn .7s var(--ease-out); }
.q.back { animation-name: qInBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-36px); } }
.q-step { font-size: .82rem; font-weight: 600; color: var(--magenta-strong); font-variant-numeric: tabular-nums; }
.q h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.2rem); }
.q-help { color: var(--ink-2); font-size: var(--fs-lead); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.opt-btn {
  text-align: left; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 1rem 1.2rem; border-radius: 16px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 1rem; transition: all .35s var(--ease-out);
}
.opt-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.opt-btn kbd { font: 600 .72rem var(--f-body); min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.opt-btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.opt-btn[aria-pressed="true"] kbd { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
.opts.big { grid-template-columns: repeat(3, 1fr); }
.opts.big .opt-btn { flex-direction: column; justify-content: center; text-align: center; min-height: 170px; font-family: var(--f-display); font-size: 1.8rem; }
.opts.big .emoji { font-size: 3rem; line-height: 1; }
.q .field input { font-size: 1.25rem; padding: 1.1rem 1.2rem; background: var(--surface); }
.combo { position: relative; }
.combo-input { position: relative; }
.combo-input input { padding-right: 3.4rem !important; }
.combo-toggle { position: absolute; right: .5rem; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.combo-toggle:hover { background: var(--bg); }
.combo-input:has(input[aria-expanded="true"]) .combo-toggle .ic { transform: rotate(180deg); }
.combo-toggle .ic { transition: transform .4s var(--ease-out); width: 22px; height: 22px; }
.breed-or { font-size: .86rem; color: var(--ink-3); margin-bottom: -.6rem; }
.combo-list { list-style: none; margin: .4rem 0 0; padding: .4rem; max-height: min(320px, 42vh); overscroll-behavior: contain; scrollbar-gutter: stable; overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.combo-list li { padding: .7rem .9rem; border-radius: 10px; cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--bg); color: var(--magenta-strong); }
.combo-empty { padding: .8rem; color: var(--ink-3); font-size: .9rem; }
.breed-quick { display: flex; flex-wrap: wrap; gap: .5rem; }
.eval-foot { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter) max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.eval-intro .intro-sym { width: 72px; }
.eval-intro ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--ink-2); }
.eval-intro li { display: flex; gap: .7rem; align-items: center; }
.eval-intro li::before { content: ""; width: 8px; height: 12px; background: var(--teal); transform: skewX(-16deg); flex: none; }
.eval-intro .btns { display: flex; flex-wrap: wrap; gap: .8rem; }
/* ---- Resultado ---- */
.eval-stage:has(.result) { padding-bottom: 0; }
.result { width: min(1120px, 100%); margin-inline: auto; animation: fadeUp .8s var(--ease-out); }
.result-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); display: grid; gap: 1rem; }
.result-head h2 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem); }
.result-head h2 em { color: var(--magenta); font-style: italic; }
.result-sub { color: var(--ink-2); font-size: var(--fs-lead); }
.result-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; }
.rec {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem; align-items: start;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line); animation: fadeUp .8s var(--ease-out) backwards;
}
.rec:first-child { border-top: 1px solid var(--line); }
.rec:nth-child(2) { animation-delay: .08s; } .rec:nth-child(3) { animation-delay: .16s; } .rec:nth-child(4) { animation-delay: .24s; }
.rec-n { font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; line-height: .9; color: var(--magenta-strong); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.rec[data-svc="Peluquería"] .rec-n { color: var(--purple); }
.rec-body { display: grid; gap: .35rem; }
.rec-tag { justify-self: start; font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--magenta-soft); color: var(--magenta-strong); }
.rec[data-svc="Peluquería"] .rec-tag { background: var(--lavender-soft); color: var(--purple); }
.rec h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.rec p { color: var(--ink-2); }
.rec-cta { align-self: center; }
.rec-cta:hover { box-shadow: inset 0 0 0 1px var(--magenta-strong); color: var(--magenta-strong); }
.pet-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); position: sticky; top: 0; animation: fadeUp .9s .15s var(--ease-out) backwards; }
.pet-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.pet-emoji { width: 56px; height: 56px; border-radius: 50%; background: var(--lavender-soft); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.pet-head strong { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.pet-head span { font-size: .86rem; color: var(--ink-3); }
.pet-facts { margin: .4rem 0 0; }
.pet-facts div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.pet-facts dt { color: var(--ink-3); }
.pet-facts dd { margin: 0; font-weight: 500; text-align: right; }
.pet-facts .is-flag dd { color: var(--magenta-strong); font-weight: 600; }
.pet-facts .is-flag dd::before, .flag-dot { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); margin-right: .45rem; vertical-align: .1em; }
.pet-legend { font-size: .78rem; color: var(--ink-3); margin-top: .9rem; }
.pet-card .btn-text { margin-top: .4rem; font-size: .9rem; }
.result-fine { margin: 2rem 0 0; }
.result-bar {
  position: sticky; bottom: 0; z-index: 2; margin: 2rem calc(-1 * var(--gutter)) 0; padding: 1rem var(--gutter) max(1rem, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: rgb(247 246 251 / .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.result-bar-main { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-restart { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-restart:hover { background: var(--ink); color: #fff; }
.btn-restart .ic { width: 1.25em; height: 1.25em; }
.btn-restart:hover .ic { transform: rotate(-180deg); }
.btn-wa { background: #1C9E52; color: #fff; }
.btn-wa:hover { background: #157D40; }
.btn-wa:hover .ic { transform: none; }

/* Cookies */
.cookie {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 60; width: min(420px, calc(100vw - 2.4rem)); background: var(--surface); border-radius: var(--radius); padding: 1.3rem;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); display: grid; gap: 1rem; font-size: .86rem; color: var(--ink-2);
}
.cookie:not([hidden]) { animation: fadeUp .7s var(--ease-out); }
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 900px) {
  .result-grid { grid-template-columns: 1fr; }
  .pet-card { position: static; }
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { max-width: 560px; width: 100%; margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; }
  .split-head .btn { justify-self: start; }
  .svc { grid-template-columns: 1fr; }
  .svc-index {
    top: 0; z-index: 20; flex-direction: row; gap: 1.6rem; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
    transition: top .6s var(--ease-out);
  }
  body:has(.site-header:not(.is-hidden)) .svc-index { top: 70px; }
  .svc-index::-webkit-scrollbar { display: none; }
  .svc-tab, .svc-tab:first-child { border: 0; padding: .9rem 0; flex: none; }
  .svc-tab .svc-num { display: none; }
  .svc-tab .svc-name { font-size: 1.7rem; }
  .svc-panels { gap: 4.5rem; padding-top: 1.6rem; }
  .svc-panel { scroll-margin-top: 140px; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-body > *, .svc-list { grid-column: 1; grid-row: auto; }
  .eval-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .team-panel { grid-template-columns: 1fr; gap: 0; padding: 0 1.4rem; }
  .team-photo { width: min(82%, 380px); margin-inline: auto; }
  .team-placeholder, .team-photo img.photo { min-height: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
  .team-copy { padding-block: 2.6rem 2.4rem; }
  .team-mark { width: 200px; right: -.5rem; bottom: -1rem; opacity: .5; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li, .steps-list li:first-child { padding: 2.2rem 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .steps-list li:first-child { border-top: 0; padding-top: 0; }
  .step-n { font-size: 4.6rem; margin-bottom: 1.4rem; }
  .steps-cta { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-actions > .btn { display: none; }
  .brand img { width: 124px; }
  .header-inner { height: 70px; }
  .mobile-menu { height: calc(100dvh - 70px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
  .hero-meta div:first-child { grid-column: 1 / -1; }
  .svc-tab .svc-name { font-size: 1.5rem; }
  .svc-index { gap: 1.3rem; }
  .row-2 { grid-template-columns: 1fr; }
  .try-opt { grid-template-columns: 38px 1fr auto; gap: .9rem; padding: 1.1rem 0; }
  .try-mark { height: 44px; }
  .try-mark-other { width: 22px; }
  .steps-cta-actions, .steps-cta-actions .btn { width: 100%; }
  .opts.big .opt-btn { min-height: 120px; font-size: 1.3rem; }
  .opts.big .emoji { font-size: 2.2rem; }
  .c-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .map-card, .map-frame { min-height: 420px; }
  .wa-fab { display: none; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .35rem; position: fixed; left: .6rem; right: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); z-index: 45;
    background: var(--ink); padding: .35rem; border-radius: 20px; box-shadow: var(--shadow-2);
    transform: translateY(160%); transition: transform .7s var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a, .action-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 52px; border-radius: 15px; border: 0; background: transparent;
    color: #fff; text-decoration: none; font-size: .74rem; font-weight: 600;
  }
  .action-bar .ic { width: 20px; height: 20px; }
  .action-bar .primary { background: var(--magenta-strong); font-size: .9rem; }
  .cookie { bottom: 5.4rem; left: .6rem; width: calc(100vw - 1.2rem); }
  .site-footer { padding-bottom: 5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-a { padding-right: 0; }
  .eval-top img { width: 92px; }
  .eval-top { gap: .9rem; }
  .exit-btn { padding: 0 .85rem; }
  .result-grid { grid-template-columns: 1fr; }
  .pet-card { position: static; }
  .rec { grid-template-columns: auto 1fr; }
  .rec-cta { grid-column: 2; justify-self: start; }
  .rec-n { font-size: 2.1rem; }
  .result-bar { display: grid; grid-template-columns: 1fr; gap: .5rem; padding-top: .8rem; }
  .result-bar-main { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; order: -1; }
  .result-bar .btn { --bh: 52px; padding: 0 .8rem; font-size: .9rem; }
  .result-bar-main .btn-primary { order: -1; }
  .btn-restart { width: 100%; }
  .result-bar-main .btn { min-width: 0; }
  .wa-long { display: none; }
  .final-sym { width: 110vw; right: -30%; bottom: -10%; }
}

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

/* =========================================================
   Página legal
   ========================================================= */
.legal-hero { padding: 150px 0 3.5rem; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(3.2rem, 2rem + 5vw, 6.4rem); line-height: .9; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.legal-tabs a { padding: .6rem 1.1rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.legal-tabs a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.legal-body { padding-block: 2rem 7rem; }
.legal-doc { max-width: 780px; padding-top: 3.5rem; }
.legal-doc + .legal-doc { border-top: 1px solid var(--line); margin-top: 3.5rem; }
.legal-doc h2 { font-size: clamp(2.3rem, 1.8rem + 1.8vw, 3.4rem); margin-bottom: .5rem; }
.legal-doc h3 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc p + p { margin-top: .8rem; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc a { color: var(--magenta-strong); }
.legal-doc .meta { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .legal-table td { border: 0; padding: .2rem 0; }
  .legal-table td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink); }
}
