/* Zoo Center · Hospital Veterinario — colores del logo */
:root {
  --teal-900: #082F2D;
  --teal-800: #0B4A47;
  --teal-700: #0E5F5A;
  --teal-600: #137A73;
  --teal-500: #179088;
  --teal-100: #DDEFEB;
  --teal-50:  #EEF7F4;
  --yellow:   #F7D51D;
  --yellow-2: #FFE45C;
  --cream:    #FBF8F1;
  --white:    #FFFFFF;
  --ink:      #12302D;
  --muted:    #3F5753;
  --line:     #D7E3DF;
  --red:      #B42318;
  --radius:   20px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .topbar :focus-visible, .booking-copy :focus-visible, .verdict[data-level="urgent"] :focus-visible { outline-color: var(--yellow); }
[id] { scroll-margin-top: 88px; }
.lucide { width: 1.15em; height: 1.15em; stroke-width: 2.2; flex: none; }

.wrap { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--white); border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 10px; }
.section { padding-block: clamp(64px, 9vw, 112px); }

/* ---------- Botones ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.button:active { transform: scale(.96); }
.button-yellow { background: var(--yellow); color: var(--teal-900); }
.button-teal { background: var(--teal-700); color: var(--white); }
.button-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.button-line { border-color: var(--teal-700); color: var(--teal-800); background: transparent; }
.button-line-light { border-color: rgba(255,255,255,.5); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .button-yellow:hover { background: var(--yellow-2); }
  .button-teal:hover { background: var(--teal-600); }
  .button-ghost:hover, .button-line-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
  .button-line:hover { background: var(--teal-50); }
}

/* ---------- Barra superior ---------- */
.topbar { background: var(--teal-900); color: #E8F4F1; font-size: .88rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar p { display: flex; align-items: center; gap: 8px; }
.topbar strong { color: var(--yellow); }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
@media (hover: hover) and (pointer: fine) { .topbar-social a:hover { background: rgba(255,255,255,.1); color: var(--yellow); } }
.ico-social { width: 18px; height: 18px; flex: none; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer .footer-social a { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--white); transition: background-color .16s ease, color .16s ease, transform .16s var(--ease-out); }
.footer .footer-social a:active { transform: scale(.94); }
.footer-social .ico-social { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .footer .footer-social a:hover { background: var(--yellow); color: var(--teal-900); } }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3DDC97; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--white) url("../img/logo.jpg") 50% 27% / 118px auto no-repeat; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font: 700 1.45rem/1 var(--display); letter-spacing: -.02em; color: var(--teal-700); }
.brand-text small { font-size: .72rem; font-weight: 700; color: #7A5D00; margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 700; font-size: .97rem; }
.nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; position: relative; }
.nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.button):hover::after { transform: scaleX(1); } }
.nav-cta { min-height: 44px; padding: 10px 18px; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--teal-50); color: var(--teal-800); cursor: pointer; }
  .menu-toggle .lucide { width: 24px; height: 24px; }
  .nav {
    position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(8, 47, 45, .35);
    transform-origin: top right; opacity: 0; transform: scale(.96) translateY(-6px); visibility: hidden;
    transition: opacity .15s ease, transform .15s var(--ease-out), visibility 0s .15s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .22s var(--ease-out), visibility 0s; }
  .nav a:not(.button) { padding: 6px 12px; border-radius: 10px; }
  .nav a:not(.button)::after { display: none; }
  .nav-cta { margin-top: 6px; }
}
@media (max-width: 520px) { .hide-sm { display: none; } }
.topbar .hide-sm { color: #E8F4F1; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 0% 0%, var(--teal-700), var(--teal-800) 55%, var(--teal-900)); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; padding-block: 56px 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .86rem; font-weight: 700; color: #DDF1EC; }
.hero h1 { font-weight: 700; letter-spacing: -.015em; font-size: clamp(2.6rem, 7.4vw, 4.6rem); margin-block: 20px 18px; }
.hero h1 span { display: block; color: var(--yellow); }
.hero-intro { max-width: 46ch; font-size: 1.12rem; color: #D7ECE7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); max-width: 520px; }
.hero-facts strong { display: flex; align-items: center; gap: 4px; font: 600 1.7rem/1 var(--display); color: var(--white); }
.hero-facts strong .lucide { color: var(--yellow); fill: var(--yellow); width: .8em; height: .8em; }
.hero-facts span { display: block; margin-top: 6px; font-size: .84rem; line-height: 1.3; color: #BFDCD6; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 62% center; border-radius: 28px 28px 28px 120px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.swoosh { position: absolute; left: -6%; right: 20%; bottom: -26px; height: 60px; border-bottom: 10px solid var(--yellow); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.live-card { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.live-card strong { display: block; font-size: .98rem; line-height: 1.1; }
.live-card small { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-block: 64px 72px; }
}

/* ---------- ¿Es una urgencia? ---------- */
.triage { background: var(--cream); }
.triage-grid { display: grid; gap: 32px; }
.triage-copy p:last-child { margin-top: 16px; color: var(--muted); max-width: 42ch; }
.triage-box { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 32px); }
.chips { border: 0; margin: 0; padding: 0; }
.chips legend { font-weight: 800; margin-bottom: 14px; padding: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream);
  font-weight: 700; font-size: .93rem; cursor: pointer; touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { border-color: var(--teal-500); background: var(--teal-50); } }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--teal-50); transition: background-color .25s ease, color .25s ease; }
.verdict-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--teal-700); }
.verdict-icon .lucide { width: 24px; height: 24px; }
.verdict-title { font: 600 1.3rem/1.15 var(--display); letter-spacing: -.02em; }
.verdict-text { margin-top: 6px; color: var(--muted); }
.verdict-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.verdict-actions:not(:empty) { margin-top: 16px; }
.verdict[data-level="urgent"] { background: var(--teal-800); color: var(--white); }
.verdict[data-level="urgent"] .verdict-icon { background: var(--yellow); color: var(--teal-900); }
.verdict[data-level="urgent"] .verdict-text { color: #D7ECE7; }
.verdict[data-level="soon"] { background: #FFF6CC; }
.verdict[data-level="soon"] .verdict-icon { color: #7A5D00; }
.verdict.is-swapping .verdict-body, .verdict.is-swapping .verdict-icon { animation: swap .28s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.disclaimer { margin-top: 14px; font-size: .84rem; color: var(--muted); }

@media (min-width: 900px) { .triage-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .triage-copy { position: sticky; top: 120px; } }

/* ---------- Servicios ---------- */
.services { background: var(--teal-50); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.section-head > p { color: var(--muted); max-width: 38ch; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr auto; align-items: end; } }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
@media (max-width: 559px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { padding: 16px; }
  .service-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .service h3 { font-size: 1.08rem; }
  .service p { font-size: .88rem; }
  .hero-facts span { font-size: .78rem; }
}
.service {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s var(--ease-out), border-color .2s ease, box-shadow .2s ease;
}
.service:active { transform: scale(.98); }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--teal-100); color: var(--teal-700); margin-bottom: 18px; transition: background-color .2s ease, color .2s ease; }
.service-icon .lucide { width: 25px; height: 25px; }
.service h3 { font-size: 1.28rem; }
.service p { margin-top: 8px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.service-link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 16px; font-weight: 800; font-size: .9rem; color: var(--teal-700); }
.service:first-child { background: var(--teal-800); border-color: var(--teal-800); color: var(--white); }
.service:first-child .service-icon { background: var(--yellow); color: var(--teal-900); }
.service:first-child p { color: #CFE6E1; }
.service:first-child .service-link { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateY(-4px); border-color: var(--teal-500); box-shadow: 0 18px 34px -22px rgba(8, 47, 45, .45); }
  .service:not(:first-child):hover .service-icon { background: var(--teal-700); color: var(--white); }
}

/* ---------- Confianza ---------- */
.trust { background: var(--cream); padding-block: clamp(64px, 9vw, 112px); }
.trust-grid { display: grid; gap: 40px; align-items: center; }
.trust-photo { position: relative; }
.trust-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 40%; border-radius: 120px 28px 28px 28px; }
.trust-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .74rem; }
.steps { display: grid; gap: 4px; margin-top: 28px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font: 600 1.1rem/1 var(--display); color: var(--teal-900); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 4px; color: var(--muted); }
@media (min-width: 900px) { .trust-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* ---------- Cita ---------- */
.booking { background: var(--teal-800); color: var(--white); }
.booking .kicker { color: var(--yellow); }
.booking-grid { display: grid; gap: 36px; }
.booking-copy > p { margin-top: 16px; color: #D7ECE7; max-width: 40ch; }
.booking-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px !important; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); }
.booking-note .lucide { color: var(--yellow); margin-top: 3px; }
.booking-note a { color: var(--yellow); font-weight: 800; }
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--white); color: var(--ink); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 800; font-size: .92rem; padding: 0; }
.optional { font-weight: 600; color: var(--muted); }
input:not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9CBC6; border-radius: 12px; background: var(--cream);
  font-size: 1rem; transition: border-color .15s ease, background-color .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
input:not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--teal-600); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(23, 144, 136, .22); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.error { font-size: .85rem; font-weight: 700; color: var(--red); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--teal-50); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-weight: 700; font-size: .92rem; transition: background-color .15s ease, color .15s ease; }
.seg input:checked + span { background: var(--teal-700); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.form-result { font-size: .92rem; color: var(--teal-700); font-weight: 700; }
.form-result a { color: inherit; }
@media (min-width: 560px) { .form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
@media (min-width: 900px) { .booking-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }

/* ---------- Ubicación ---------- */
.location-grid { display: grid; gap: 36px; }
.location-sub { margin-top: 12px; color: var(--muted); max-width: 40ch; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.info-list { display: grid; margin-top: 28px; }
.info-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.info-list dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 800; color: var(--teal-600); }
.info-list dd { margin-top: 2px; font-weight: 700; }
.info-list a { text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--teal-50); font-weight: 700; text-decoration: none; transition: background-color .16s ease; }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--teal-100); } }
.map { position: relative; min-height: 340px; border-radius: 28px; overflow: hidden; background: var(--teal-100); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: stretch; } .map { min-height: 460px; } }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #CFE6E1; padding-top: 56px; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 36px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: var(--yellow); }
.footer-grid p { margin-top: 10px; font-size: .95rem; }
.footer h3 { font-size: 1.05rem; color: var(--white); }
.footer a { text-underline-offset: 3px; display: inline-block; min-height: 32px; padding-block: 4px; }
.footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9CC2BA; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr auto; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 16px; border-radius: 999px; background: #1FAF5A; color: var(--white); text-decoration: none; font-weight: 800;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .16s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:active { transform: scale(.94); }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .25s var(--ease-out), opacity .2s ease; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 120px; opacity: 1; } }

/* ---------- Animaciones de entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes photo { from { opacity: 0; transform: scale(1.04); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise .7s var(--ease-out) backwards; }
  .hero .reveal:nth-child(2) { animation-delay: 70ms; }
  .hero .reveal:nth-child(3) { animation-delay: 140ms; }
  .hero .reveal:nth-child(4) { animation-delay: 210ms; }
  .hero .reveal:nth-child(5) { animation-delay: 280ms; }
  .hero-photo img { animation: photo 1s var(--ease-out) both; }
  .live-card { animation: rise .6s var(--ease-out) .45s backwards; }

  .js .will-reveal { opacity: 0; transform: translateY(18px); }
  .js .will-reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .steps li:nth-child(2) { --i: 1; } .steps li:nth-child(3) { --i: 2; } .steps li:nth-child(4) { --i: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal, .hero-photo img, .live-card { animation: fade .5s ease backwards; }
  .pulse::after { animation: none; }
  .verdict.is-swapping .verdict-body, .verdict.is-swapping .verdict-icon { animation: fade .2s ease; }
  .service:hover { transform: none; }
}
