/* =========================================================
   Red Bluff Animal Hospital — site styles
   Palette (from the brand logo indigo #292B77):
     --indigo        #292B77  primary: CTAs, links, active nav, icons
     --indigo-deep   #1B1D55  hover / pressed
     --indigo-mist   #ECEDF7  tinted cards, icon backgrounds
     --cloud         #F5F6FA  page background
     --paper         #FFFFFF  cards
     --ink           #1F2233  body text
     --stone         #5C6078  secondary text
     --apricot       #E89A4A  small warm accent (stars, badges)
     --fern          #3F7D5A  "open now" / success only
   ========================================================= */

:root {
  --indigo: #292B77;
  --indigo-deep: #1B1D55;
  --indigo-mist: #ECEDF7;
  --indigo-line: #D5D7EA;
  --cloud: #F5F6FA;
  --paper: #FFFFFF;
  --ink: #1F2233;
  --stone: #5C6078;
  --apricot: #E89A4A;
  --apricot-soft: #FBEEDD;
  --fern: #3F7D5A;
  --danger: #B3382D;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31, 34, 51, 0.06), 0 2px 8px rgba(31, 34, 51, 0.06);
  --shadow: 0 6px 24px rgba(41, 43, 119, 0.10);
  --shadow-lg: 0 18px 48px rgba(41, 43, 119, 0.16);

  --container: 1180px;
  --gutter: 20px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cloud);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--indigo-line); margin: 2.5rem 0; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.measure { max-width: 70ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(41,43,119,.25); }
.btn-primary:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo-mist); color: var(--indigo-deep); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--indigo-mist); color: var(--indigo-deep); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--indigo-deep); color: #fff; font-size: .9rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar .hours-now { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
.topbar .dot.open { background: #7FD3A1; }
@media (max-width: 720px) { .topbar-right, .topbar .hours-now { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--indigo-line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 48px; width: auto; max-width: min(260px, 60vw); object-fit: contain; }
@media (max-width: 1420px) { .brand img { height: 42px; } }
.site-header .container { min-width: 0; }
.menu-btn { flex: none; }
.brand-fallback { display: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--indigo); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a, .nav button.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 12px; border-radius: 999px; background: none; border: 0;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.nav a:hover, .nav button.nav-toggle:hover, .nav li.open > button.nav-toggle { background: var(--indigo-mist); color: var(--indigo-deep); }
.nav a[aria-current="page"], .nav li.is-active > a, .nav li.is-active > button { color: var(--indigo); }
.nav li.is-active > a::after, .nav li.is-active > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--indigo);
}
.nav button.nav-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav li.open > button.nav-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.wide { min-width: 540px; columns: 2; column-gap: 4px; }
.dropdown li { break-inside: avoid; margin: 0; }
.dropdown a { display: flex; width: 100%; border-radius: var(--radius-sm); padding: 9px 12px; font-weight: 600; }
.dropdown a.ext::after { content: "↗"; margin-left: auto; opacity: .5; font-size: .85em; }
.nav li.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--indigo); }
.header-phone:hover { color: var(--indigo); }
@media (max-width: 1420px) { .header-phone { display: none; } .nav a, .nav button.nav-toggle { padding: 10px 10px; font-size: .93rem; } }

.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--indigo-line); border-radius: 999px; padding: 9px 14px; font-weight: 700; color: var(--indigo); align-items: center; gap: 8px; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mobile panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 950; background: #fff; visibility: hidden;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; padding: 18px var(--gutter) 110px;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav { transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.mobile-nav.open { transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mobile-nav-head img { height: 40px; }
.mobile-nav .close-btn { background: var(--indigo-mist); border: 0; border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--indigo); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--indigo-line); }
.mobile-nav a, .mobile-nav .acc-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 15px 4px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem;
  background: none; border: 0; text-align: left;
}
.mobile-nav .acc-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.mobile-nav .acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav .acc-panel { display: none; padding: 0 0 10px 14px; }
.mobile-nav .acc-panel.open { display: block; }
.mobile-nav .acc-panel a { font-weight: 600; font-size: 1rem; padding: 10px 4px; color: var(--stone); }
.mobile-nav .acc-panel a:hover { color: var(--indigo); }
.mobile-nav .mobile-cta { display: grid; gap: 10px; margin-top: 20px; }
.mobile-nav .mobile-cta .btn { justify-content: center; }

/* Sticky mobile action bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
  background: #fff; border-top: 1px solid var(--indigo-line); padding: 10px var(--gutter);
  gap: 10px; box-shadow: 0 -8px 24px rgba(31,34,51,.08);
}
.mobile-bar .btn { flex: 1; justify-content: center; }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: 72px; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--cloud) 100%);
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  min-height: calc(100vh - var(--header-h) - 38px); padding: 56px 0;
  max-height: 820px;
}
.hero-kicker { font-weight: 700; color: var(--indigo); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker svg { width: 20px; height: 20px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .rotator { display: inline-grid; vertical-align: baseline; color: var(--indigo); font-style: italic; font-weight: 500; }
.hero h1 .rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; white-space: nowrap; }
.hero h1 .rotator > span.is-on { opacity: 1; transform: translateY(0); }
.hero-lead { font-size: 1.15rem; color: var(--stone); max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--stone); font-size: .95rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--fern); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
.hero-blob {
  position: absolute; inset: 2%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: var(--indigo-mist);
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
  100% { border-radius: 56% 44% 42% 58% / 44% 56% 44% 56%; transform: rotate(6deg); }
}
.hero-pets { position: absolute; inset: 0; }
.hero-pets img {
  position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: cover; object-position: center;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .6s ease, transform .6s ease;
}
.hero-pets img.is-on { opacity: 1; transform: translateY(0) scale(1); }
.hero-dots { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--indigo-line); padding: 0; transition: background .2s, transform .2s; }
.hero-dots button.is-on { background: var(--indigo); transform: scale(1.25); }
.hero-badge {
  position: absolute; top: 8%; right: -4%; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: .9rem;
}
.hero-badge strong { display: block; font-size: 1.05rem; }
.hero-badge .stars { color: var(--apricot); letter-spacing: 1px; }

/* Load-in sequence */
.hero [data-seq] { opacity: 0; transform: translateY(16px); }
.hero.is-ready [data-seq] { animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards; }
.hero.is-ready [data-seq="1"] { animation-delay: .05s; }
.hero.is-ready [data-seq="2"] { animation-delay: .15s; }
.hero.is-ready [data-seq="3"] { animation-delay: .25s; }
.hero.is-ready [data-seq="4"] { animation-delay: .35s; }
.hero.is-ready [data-seq="5"] { animation-delay: .45s; }
.hero.is-ready [data-seq="6"] { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 44px; }
  .hero-visual { max-width: 380px; justify-self: center; order: -1; }
  .hero-badge { right: 0; top: 2%; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-white { background: #fff; }
.section-mist { background: var(--indigo-mist); }
.section-indigo { background: var(--indigo); color: #fff; }
.section-indigo h2, .section-indigo h3 { color: #fff; }
.section-indigo a { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--stone); font-size: 1.08rem; }
.section-indigo .section-head p { color: rgba(255,255,255,.85); }
.pun { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--indigo); font-size: 1.15rem; display: block; margin-bottom: 8px; }
.section-indigo .pun { color: #CFD1F2; }

/* Reveal on scroll (one pass) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .40s; }
.reveal-group.is-visible > *:nth-child(n+7) { transition-delay: .46s; }

/* Welcome split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split .lead { font-size: 1.12rem; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-media .float-card {
  position: absolute; left: -20px; bottom: 22px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px; max-width: 260px; font-size: .95rem;
}
.split-media .float-card strong { display: block; color: var(--indigo); font-family: var(--font-head); font-size: 1.1rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-media .float-card { left: 10px; } }

.species-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.species-row span { background: var(--indigo-mist); color: var(--indigo-deep); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }

/* Partner / badge strip */
.badge-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.badge-card {
  flex: 1 1 220px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--indigo-line);
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.badge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.badge-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--apricot-soft); color: #A2621F; display: grid; place-items: center; flex: none; }
.badge-card .ico svg { width: 22px; height: 22px; }
.badge-card strong { display: block; }
.badge-card small { color: var(--stone); }

/* Service cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--ink); border: 1px solid var(--indigo-line);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.service-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--indigo-mist); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .thumb img { transform: scale(1.04); }
.service-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card h3 { margin: 0; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--stone); font-size: .98rem; flex: 1; }
.more { color: var(--indigo); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.more svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.service-card:hover .more svg, .post-card .more:hover svg { transform: translateX(3px); }

/* Vets */
.vet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .vet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vet-grid { grid-template-columns: 1fr; } }
.vet-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--indigo-line); }
.vet-card .photo { aspect-ratio: 1 / 1; background: var(--indigo-mist); overflow: hidden; }
.vet-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vet-card .body { padding: 18px 20px 22px; }
.vet-card h3 { margin-bottom: 2px; font-size: 1.2rem; }
.vet-card .role { color: var(--stone); font-size: .95rem; margin-bottom: 10px; }
.vet-card p { font-size: .97rem; }

/* Vet profile (full page) */
.vet-profile { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--indigo-line); }
.vet-profile:last-child { border-bottom: 0; }
.vet-profile .photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--indigo-mist); position: sticky; top: calc(var(--header-h) + 20px); }
.vet-profile .photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center top; }
.vet-profile .role { color: var(--indigo); font-weight: 700; margin-bottom: 14px; }
.vet-profile .bio p { max-width: 70ch; }
@media (max-width: 760px) { .vet-profile { grid-template-columns: 1fr; } .vet-profile .photo { position: static; max-width: 320px; } }

/* Blog cards */
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--indigo-line); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--indigo-mist); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { color: var(--stone); font-size: .9rem; }
.post-card h3 { margin: 0; font-size: 1.25rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--indigo); }
.post-card p { margin: 0; color: var(--stone); flex: 1; }

/* Reviews */
.review-carousel { position: relative; }
.review-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .review-track { grid-template-columns: 1fr; } }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 26px 26px 22px; border: 1px solid var(--indigo-line); display: flex; flex-direction: column; min-height: 220px; }
.review-card .stars { color: var(--apricot); letter-spacing: 2px; margin-bottom: 10px; font-size: 1.05rem; }
.review-card blockquote { margin: 0 0 16px; font-size: 1.02rem; flex: 1; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--indigo-deep); display: flex; align-items: center; gap: 10px; }
.review-card cite .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-mist); color: var(--indigo); display: grid; place-items: center; font-family: var(--font-head); font-size: .95rem; }
.review-controls { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.review-controls button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--indigo-line); background: #fff; color: var(--indigo); display: grid; place-items: center; transition: background .2s; }
.review-controls button:hover { background: var(--indigo-mist); }
.review-controls button svg { width: 18px; height: 18px; }
.rating-summary { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--indigo-line); border-radius: 999px; padding: 8px 18px 8px 10px; margin-bottom: 10px; }
.rating-summary .g { width: 32px; height: 32px; border-radius: 50%; background: var(--indigo-mist); display: grid; place-items: center; font-weight: 800; color: var(--indigo); }
.rating-summary .stars { color: var(--apricot); letter-spacing: 1px; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .review-list { grid-template-columns: 1fr; } }
.review-card.is-leaving { animation: fadeout .25s forwards; }
.review-card.is-entering { animation: fadein .35s forwards; }
@keyframes fadeout { to { opacity: 0; transform: translateY(8px); } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hours / emergency band */
.info-band { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 28px; }
@media (max-width: 900px) { .info-band { grid-template-columns: 1fr; } }
.info-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 24px 26px; }
.info-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.info-card h3 svg { width: 22px; height: 22px; color: #CFD1F2; }
.info-card p { margin-bottom: .6em; color: rgba(255,255,255,.9); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.hours-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.hours-table tr:last-child td { border-bottom: 0; }
.emerg { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.emerg:last-of-type { border-bottom: 0; }
.emerg strong { display: block; font-size: 1.02rem; }
.emerg a { font-weight: 700; text-decoration: none; }
.emerg a:hover { text-decoration: underline; }
.emerg .tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); margin-left: 6px; vertical-align: middle; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--indigo) 0%, #3B3EA0 100%); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--indigo-line); padding: 44px 0 40px; }
.page-hero .crumbs { font-size: .9rem; color: var(--stone); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.page-hero .crumbs a { color: var(--stone); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--indigo); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .intro { color: var(--stone); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.page-hero.with-media .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.page-hero.with-media img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 800px) { .page-hero.with-media .container { grid-template-columns: 1fr; } .page-hero.with-media img { max-height: 280px; width: 100%; } }

/* ---------- Content layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--indigo); }
.prose .callout { background: var(--indigo-mist); border-left: 4px solid var(--indigo); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }
.prose .warn { background: var(--apricot-soft); border-left-color: var(--apricot); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { color: var(--stone); font-size: .9rem; margin-top: 6px; }
.prose .lead { font-size: 1.15rem; color: var(--stone); }
.prose .cta-inline { margin-top: 2em; }
.prose em.note { color: var(--stone); }
.two-col-list { columns: 2; column-gap: 32px; }
.two-col-list li { break-inside: avoid; }
@media (max-width: 560px) { .two-col-list { columns: 1; } }

.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 22px 24px; }
.side-card h3 { font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.side-card h3 svg { width: 20px; height: 20px; color: var(--indigo); }
.side-card p { margin-bottom: .6em; font-size: .97rem; }
.side-card .hours-table td { border-color: var(--indigo-line); }
.side-card.indigo { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.side-card.indigo h3 { color: #fff; }
.side-card.indigo h3 svg { color: #CFD1F2; }
.side-card.indigo .btn { width: 100%; justify-content: center; }
.side-card .emerg { border-color: var(--indigo-line); }
.side-card .emerg .tag { background: var(--indigo-mist); color: var(--indigo); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin: 0; border-bottom: 1px solid var(--indigo-line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; text-decoration: none; font-weight: 600; color: var(--ink); font-size: .96rem; }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--indigo); }
.side-list a[aria-current="page"]::before { content: "●"; font-size: .55rem; margin-right: 8px; color: var(--indigo); }
.side-list a svg { width: 14px; height: 14px; opacity: .5; }

/* Symptom / list chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.chips li { background: #fff; border: 1px solid var(--indigo-line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .95rem; margin: 0; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--indigo-line); }
.accordion details { border-bottom: 1px solid var(--indigo-line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-mist); color: var(--indigo);
  display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; transition: transform .25s, background .2s;
}
.accordion details[open] summary::after { content: "–"; background: var(--indigo); color: #fff; }
.accordion summary:hover { color: var(--indigo); }
.accordion .acc-body { padding: 0 0 20px; max-width: 70ch; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* Steps (what to expect) */
.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; }
.step { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 22px 24px 22px 76px; position: relative; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-bottom: 6px; }
.step p:last-child { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; background: var(--indigo-mist); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(27,29,85,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: fadein .25s; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox svg { width: 22px; height: 22px; }

/* Forms */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--indigo-line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(41,43,119,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.field small { color: var(--stone); display: block; margin-top: 5px; }
.fieldset { border: 1px dashed var(--indigo-line); border-radius: var(--radius); padding: 16px 18px 6px; }
.fieldset legend { font-weight: 700; color: var(--indigo); padding: 0 8px; }
.form-note { background: var(--indigo-mist); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }
.form-success { display: none; background: #E6F3EB; border: 1px solid #BFE0CB; color: #215E39; border-radius: var(--radius); padding: 16px 18px; font-weight: 600; }
.form.is-sent .form-success { display: block; }
.honeypot { position: absolute; left: -9999px; }

/* Links / partner grid */
.partner { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--indigo-line); }
.partner:last-child { border-bottom: 0; }
.partner .logo { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius); padding: 14px; display: grid; place-items: center; min-height: 110px; }
.partner .logo img { max-height: 90px; object-fit: contain; }
.partner h3 { margin-bottom: 6px; }
.partner h3 a { text-decoration: none; }
.partner h3 a:hover { text-decoration: underline; }
.partner p:last-child { margin: 0; }
.partner .code { display: inline-block; background: var(--apricot-soft); color: #7A4A14; font-weight: 700; padding: 3px 10px; border-radius: 6px; font-family: ui-monospace, monospace; }
@media (max-width: 600px) { .partner { grid-template-columns: 1fr; } .partner .logo { max-width: 220px; } }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pay-card img { max-height: 60px; object-fit: contain; }
.pay-card .btn { margin-top: auto; }

.app-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.app-badges img { height: 54px; width: auto; }

/* Blog index */
.blog-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
@media (max-width: 800px) { .blog-featured { grid-template-columns: 1fr; } }
.post-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
@media (max-width: 760px) { .post-list { columns: 1; } }
.post-list li { break-inside: avoid; margin: 0; border-bottom: 1px solid var(--indigo-line); }
.post-list a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.post-list a:hover { color: var(--indigo); }
.post-list time { display: block; color: var(--stone); font-size: .85rem; font-weight: 400; }
.article-meta { color: var(--stone); font-size: .95rem; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 14px; }
.article-hero img { border-radius: var(--radius-lg); aspect-ratio: 16/8; object-fit: cover; margin-bottom: 30px; }
.toc { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 18px 22px; }
.toc h3 { font-size: 1rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--indigo-line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; gap: 16px; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-mist); color: var(--indigo); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { text-decoration: none; font-weight: 600; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.photo-strip img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

/* Embed */
.embed { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
/* La agenda de MoeGo es un flujo completo de reserva y mide ~1800px de alto:
   con 760px el boton «Book now» quedaba cortado y habia que hacer scroll
   dentro del recuadro. El sitio oficial le da 1800px, igual que aqui. */
.embed iframe { width: 100%; height: 1800px; border: 0; display: block; }
@media (max-width: 700px) { .embed iframe { height: 1500px; } }

/* ---------- Footer ---------- */
/* El lema del sitio, bajo el logotipo del pie. Sale del campo «Tagline» de
   Ajustes, que antes se guardaba sin pintarse en ninguna parte. */
.footer-tagline { margin: -4px 0 18px; color: rgba(255,255,255,.72); font-size: .95rem; max-width: 34ch; }
.site-footer { background: var(--indigo-deep); color: rgba(255,255,255,.88); padding: 64px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-bottom: .6em; }
.footer-brand img { height: 56px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links li { margin: 0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.22); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom nav { display: flex; gap: 18px; }
.site-footer .hours-table td { border-color: rgba(255,255,255,.14); }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 960; background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px 20px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; max-width: 760px; margin-inline: auto; font-size: .93rem; }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 320px; }
@media (max-width: 720px) { .cookie { bottom: 84px; } }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 930; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--indigo); color: #fff; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .to-top { bottom: 86px; } }

/* Alert strip (emergency) */
.alert-strip { background: var(--apricot-soft); color: #5B3A12; border-left: 4px solid var(--apricot); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; }
.alert-strip svg { width: 22px; height: 22px; flex: none; color: #A2621F; margin-top: 2px; }
.alert-strip p { margin: 0; }

/* Resource quick links */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quick-links { grid-template-columns: 1fr; } }
.quick-link { background: #fff; border: 1px solid var(--indigo-line); border-radius: var(--radius-lg); padding: 20px 22px; text-decoration: none; color: var(--ink); display: flex; gap: 14px; align-items: flex-start; transition: transform .18s, box-shadow .18s; }
.quick-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.quick-link .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-mist); color: var(--indigo); display: grid; place-items: center; flex: none; }
.quick-link .ico svg { width: 22px; height: 22px; }
.quick-link strong { display: block; margin-bottom: 2px; }
.quick-link small { color: var(--stone); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-group > *, .hero [data-seq] { opacity: 1 !important; transform: none !important; }
  .hero-pets img { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .cookie, .to-top, .site-footer .social, .sidebar .indigo { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   Responsive audit fixes
   ========================================================= */
/* D1: header must fit at 320–375px */
.site-header .container { gap: 14px; }
.brand img { max-width: min(260px, calc(100vw - 170px)); }
@media (max-width: 480px) { .menu-btn { padding: 8px 12px; } .brand img { height: 36px; } }

/* D2: let grid tracks shrink below content size and let buttons wrap on small screens */
.grid-2, .grid-3, .grid-4, .vet-grid, .review-track, .review-list, .footer-grid, .info-band,
.quick-links, .blog-featured, .contact-cards, .form-row, .steps { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.grid-2, .blog-featured { --cols: 2; } .grid-3 { --cols: 3; } .grid-4, .vet-grid, .footer-grid { --cols: 4; }
.review-track, .info-band { --cols: 3; } .review-list, .form-row { --cols: 2; } .quick-links { --cols: 3; }
.contact-cards, .steps { --cols: 1; }
@media (max-width: 1000px) { .grid-4, .vet-grid, .grid-3, .footer-grid { --cols: 2; } }
@media (max-width: 900px) { .review-track, .info-band, .quick-links { --cols: 1; } .quick-links { --cols: 2; } }
@media (max-width: 800px) { .review-list, .blog-featured { --cols: 1; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4, .vet-grid { --cols: 1; } }
@media (max-width: 600px) { .form-row, .footer-grid { --cols: 1; } }
@media (max-width: 560px) { .quick-links { --cols: 1; } }
.layout { grid-template-columns: minmax(0, 1fr) 330px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.hero .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .hero .container { grid-template-columns: minmax(0, 1fr); } }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.page-hero.with-media .container { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 800px) { .page-hero.with-media .container { grid-template-columns: minmax(0, 1fr); } }
.cta-band { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 800px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
.contact-card > div { min-width: 0; }
.side-card, .contact-card, .info-card { min-width: 0; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .hours-table td:last-child { white-space: normal; }
  .chips li { white-space: normal; }
}

/* D3: payment cards — fluid columns, wrapping labels */
.pay-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pay-card .btn { white-space: normal; text-align: center; }

/* D4: light buttons inside dark sections keep indigo text */
.site-footer .btn-light, .section-indigo .btn-light, .side-card.indigo .btn-light, .cta-band .btn-light { color: var(--indigo); }
.site-footer .btn-light:hover, .section-indigo .btn-light:hover, .side-card.indigo .btn-light:hover, .cta-band .btn-light:hover { color: var(--indigo-deep); }

/* D5: phone link in the indigo sidebar card */
.side-card.indigo p a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.side-card.indigo p a svg { width: 18px; height: 18px; }

/* D6: keep back-to-top off the footer links */
.footer-bottom .container { padding-right: 76px; }

/* D7: tap targets ≥ 40px */
.topbar a, .footer-bottom nav a, .crumbs a, .emerg a, .more { display: inline-flex; align-items: center; min-height: 40px; }
.emerg a { padding: 0 2px; }
.hero-dots { gap: 2px; }
.hero-dots button { width: 32px; height: 32px; background: transparent; position: relative; transform: none; }
.hero-dots button::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--indigo-line); transition: background .2s, transform .2s; }
.hero-dots button.is-on::after { background: var(--indigo); transform: scale(1.25); }

/* D8: long headings can break anywhere on tiny screens */
.page-hero h1, .hero h1 { overflow-wrap: anywhere; }

/* D9: cosmetic */
.side-list a { justify-content: flex-start; gap: 8px; }
.side-list a svg { margin-left: auto; }
@media (max-width: 900px) { .hero-badge { top: 0; right: 0; padding: 8px 12px; font-size: .82rem; } .hero-badge strong { font-size: .95rem; } }
@media (max-width: 600px) { .photo-strip img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
@media (max-width: 414px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; } }
/* Right-align dropdowns near the right edge so wide panels stay inside the viewport */
.nav > ul > li:nth-last-child(-n+2) > .dropdown { left: auto; right: 0; }
@media (max-width: 1240px) { .dropdown.wide { min-width: 460px; } }
.hero-dots button.is-on { background: transparent; transform: none; }
.hero-kicker { align-items: flex-start; }
.hero-kicker svg { flex: none; margin-top: 3px; }

/* ---- Desktop audit fixes ---- */
/* D1: header always fits the 1180px container */
.header-phone { display: none !important; }   /* phone lives in the top bar */
.cta-short { display: none; }
@media (max-width: 1240px) {
  .brand img { height: 36px; }
  .nav a, .nav button.nav-toggle { padding: 9px 9px; font-size: .9rem; }
  .cta-long { display: none; } .cta-short { display: inline; }
  .site-header .container { gap: 10px; }
  .nav { margin-left: auto; }
}
@media (min-width: 1241px) { .brand img { height: 44px; } }
/* D6: vertical alignment of nav buttons vs links */
.nav a, .nav button.nav-toggle { line-height: 1.2; }
/* D2: article meta icons */
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
/* D3/D4: hero height */
.hero .container { min-height: min(calc(100vh - var(--header-h) - 38px), 820px); max-height: none; }
@media (max-width: 900px) { .hero .container { min-height: 0; } }
/* D7 */
@media (max-width: 1240px) { .hero-badge { right: 0; } }
/* D5: sticky sidebar — JS sets --sidebar-top so a tall sidebar sticks by its bottom edge */
.sidebar { top: var(--sidebar-top, calc(var(--header-h) + 20px)); }
/* Breadcrumbs: links, separators and current label share one centered row */
.page-hero .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-bottom: 10px; }
.page-hero .crumbs a, .page-hero .crumbs .sep, .page-hero .crumbs .current { display: inline-flex; align-items: center; min-height: 40px; line-height: 1.2; }
.page-hero .crumbs .sep { color: var(--indigo-line); font-size: 1.1em; }
.page-hero .crumbs .current { color: var(--ink); font-weight: 600; }
/* Inner-page hero on phones: shorter wide banner under the title */
@media (max-width: 800px) {
  .page-hero.with-media { padding: 28px 0 24px; }
  .page-hero.with-media .container { gap: 20px; }
  .page-hero.with-media img { aspect-ratio: 16 / 9; max-height: 200px; width: 100%; border-radius: var(--radius); }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
/* Phones: header image bleeds edge to edge under the title */
@media (max-width: 800px) {
  .page-hero.with-media { padding-bottom: 0; }
  .page-hero.with-media img {
    width: calc(100% + 2 * var(--gutter)); max-width: none; margin-left: calc(-1 * var(--gutter));
    aspect-ratio: 16 / 9; max-height: 230px; border-radius: 0; box-shadow: none; display: block;
  }
}
/* Desktop: header image always fills its column regardless of source size */
@media (min-width: 801px) { .page-hero.with-media img { width: 100%; } }

/* =========================================================
   Page banner: full-width photo + dark overlay + white text
   ========================================================= */
.page-hero.banner { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo-deep); border-bottom: 0;
  padding: 0; min-height: 380px; display: flex; align-items: flex-end; }
.page-hero.banner .banner-media { position: absolute; inset: 0; z-index: -1; }
.page-hero.banner .banner-media img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; aspect-ratio: auto; max-height: none; display: block; }
.page-hero.banner .banner-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,29,85,.55) 0%, rgba(27,29,85,.35) 40%, rgba(20,21,60,.82) 100%); }
.page-hero.banner .banner-body { display: block; width: min(100% - 2 * var(--gutter), var(--container)); padding: 28px 0 40px; color: #fff; }
.page-hero.banner .crumbs { margin-bottom: 18px; }
.page-hero.banner .crumbs a, .page-hero.banner .crumbs .sep { color: rgba(255,255,255,.78); }
.page-hero.banner .crumbs a:hover { color: #fff; }
.page-hero.banner .crumbs .current { color: #fff; }
.page-hero.banner h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); margin-bottom: 10px; max-width: 18ch; }
.page-hero.banner .intro { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.35); max-width: 60ch; }
@media (max-width: 800px) {
  .page-hero.banner { min-height: 300px; }
  .page-hero.banner .banner-body { padding: 20px 0 28px; }
  .page-hero.banner .crumbs { margin-bottom: 10px; }
  .page-hero.banner h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
@media (min-width: 1200px) { .page-hero.banner { min-height: 420px; } }

/* ---------- Page banner: solid (no photo) variant ---------- */
.page-hero.banner.solid { background: linear-gradient(135deg, #2F3287 0%, var(--indigo) 45%, var(--indigo-deep) 100%); }
.page-hero.banner.solid .banner-media { overflow: hidden; }
.page-hero.banner.solid .banner-paws {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff'%3E%3Cg transform='translate(44,48) rotate(-18)'%3E%3Ccircle cx='-14' cy='-16' r='5.5'/%3E%3Ccircle cx='-5' cy='-23' r='5.5'/%3E%3Ccircle cx='5' cy='-23' r='5.5'/%3E%3Ccircle cx='14' cy='-16' r='5.5'/%3E%3Cpath d='M0-8c-9 0-17 8-17 15 0 5 4 8 8 8 3 0 6-2 9-2s6 2 9 2c4 0 8-3 8-8 0-7-8-15-17-15z'/%3E%3C/g%3E%3Cg transform='translate(118,118) rotate(22)'%3E%3Ccircle cx='-14' cy='-16' r='5.5'/%3E%3Ccircle cx='-5' cy='-23' r='5.5'/%3E%3Ccircle cx='5' cy='-23' r='5.5'/%3E%3Ccircle cx='14' cy='-16' r='5.5'/%3E%3Cpath d='M0-8c-9 0-17 8-17 15 0 5 4 8 8 8 3 0 6-2 9-2s6 2 9 2c4 0 8-3 8-8 0-7-8-15-17-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px; background-position: 24px 12px; opacity: .06;
}
.page-hero.banner.solid::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,154,74,.22) 0%, rgba(232,154,74,0) 70%); pointer-events: none; z-index: -1;
}

/* ---------- Login page (standalone, not linked from navigation) ---------- */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); background: var(--cloud); }
.login-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo-deep); color: #fff; display: flex; align-items: flex-end; }
.login-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.login-panel-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,29,85,.45) 0%, rgba(27,29,85,.6) 45%, rgba(20,21,60,.92) 100%); }
.login-panel-body { padding: 48px clamp(28px, 5vw, 72px) 56px; max-width: 560px; }
.login-panel .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--apricot); margin: 0 0 14px; letter-spacing: .02em; }
.login-panel .eyebrow svg { width: 18px; height: 18px; }
.login-panel h2 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 0 0 12px; }
.login-panel > .login-panel-body > p:not(.eyebrow) { color: rgba(255,255,255,.88); font-size: 1.06rem; margin: 0 0 22px; max-width: 46ch; }
.login-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.login-perks li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); }
.login-perks svg { width: 20px; height: 20px; color: var(--apricot); flex: 0 0 auto; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 96px); max-width: 640px; width: 100%; margin: 0 auto; }
.login-logo { display: inline-block; margin-bottom: 28px; }
.login-logo img { height: 44px; width: auto; }
.login-card h1 { font-size: clamp(2rem, 3vw, 2.5rem); margin: 0 0 6px; }
.login-sub { color: var(--stone); margin: 0 0 22px; }
.login-form { padding: 0; border: 0; background: transparent; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.label-row label { margin: 0; }
.forgot { font-size: .9rem; font-weight: 700; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 78px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--indigo-mist); color: var(--indigo); font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pw-toggle:hover { background: var(--indigo-line); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--indigo); margin: 0; }
.btn-block { width: 100%; justify-content: center; position: relative; }
.btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.login-form.is-loading .btn-spinner { display: inline-block; }
.login-form.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { display: none; background: #FBE9E7; border: 1px solid #F1C2BB; color: #8A2A1E; border-radius: var(--radius); padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.form-error.show { display: block; }
.login-help { color: var(--stone); font-size: .95rem; margin: 4px 0 0; text-align: center; }
.login-foot { margin: 28px 0 0; color: var(--stone); font-size: .92rem; text-align: center; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login-panel { min-height: 240px; order: 2; }
  .login-panel-body { padding: 32px var(--gutter) 36px; }
  .login-card { padding: 36px var(--gutter) 40px; }
}

/* ==========================================================================
   Home hero slider  (.hero-slider)
   Sustituye al hero de dos columnas de la portada. Todo lo configurable llega
   en variables que escribe el servidor desde Appearance -> Home slider:
     --hs-shade  la subcapa (color + opacidad + forma) como fondo CSS
     --hs-h      el alto de la caja
     --hs-wait   lo que dura cada diapositiva (para la barra de progreso)
   Las fotos y los textos van en capas separadas: el alto lo marca el texto
   mas largo, asi que ninguna diapositiva se sale por abajo, y la foto cubre
   la caja entera (tambien la barra de garantias).
   ========================================================================== */
.hero-slider {
  --hs-fade: .9s;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  min-height: var(--hs-h, min(calc(100vh - var(--header-h) - 38px), 760px));
  background: var(--indigo-deep);
  color: #fff;
}

/* ---------- Capa de fotos ---------- */
.hs-backs { position: absolute; inset: 0; z-index: 0; }
.hs-back {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--hs-fade) ease, visibility 0s linear var(--hs-fade);
}
.hs-back.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--hs-fade) ease, visibility 0s; }
.hs-back img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transform: scale(1.02);
}
/* La subcapa: el degradado entero viene del servidor en --hs-shade */
.hs-shade { position: absolute; inset: 0; background: var(--hs-shade, rgba(17,19,43,.58)); }

/* Efecto "slide": la foto entra desplazada hacia el lado del que se viene */
.hero-slider[data-effect="slide"] .hs-back { transition: opacity var(--hs-fade) ease, transform var(--hs-fade) cubic-bezier(.2,.8,.2,1), visibility 0s linear var(--hs-fade); transform: translate3d(6%, 0, 0); }
.hero-slider[data-effect="slide"][data-dir="-1"] .hs-back { transform: translate3d(-6%, 0, 0); }
.hero-slider[data-effect="slide"] .hs-back.is-on { transform: translate3d(0, 0, 0); transition: opacity var(--hs-fade) ease, transform var(--hs-fade) cubic-bezier(.2,.8,.2,1), visibility 0s; }

/* Efecto "zoom" (Ken Burns): la foto activa crece despacio mientras se ve */
.hero-slider[data-effect="zoom"] .hs-back.is-on img { animation: hs-zoom calc(var(--hs-wait, 6000ms) + var(--hs-fade)) linear forwards; }
@keyframes hs-zoom { from { transform: scale(1.02); } to { transform: scale(1.14); } }

/* ---------- Capa de textos ---------- */
.hs-stage { position: relative; z-index: 2; display: grid; align-items: center; padding: 56px 0 26px; }
/* Las diapositivas se apilan en la misma celda: la caja mide lo que la mas
   alta, de modo que al cambiar de una a otra nada salta ni desborda. */
.hs-slides { display: grid; }
.hs-slide {
  grid-area: 1 / 1; max-width: 46rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--hs-fade) ease, visibility 0s linear var(--hs-fade);
}
.hs-slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--hs-fade) ease, visibility 0s; }

/* Alineacion del bloque de texto (la elige el panel) */
.hero-slider[data-align="center"] .hs-slide { max-width: 50rem; margin-inline: auto; text-align: center; }
.hero-slider[data-align="right"]  .hs-slide { margin-left: auto; text-align: right; }

.hs-kicker {
  display: inline-flex; align-items: flex-start; gap: 10px;
  margin: 0 0 16px; padding: 7px 15px 7px 13px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px; backdrop-filter: blur(6px);
  font-weight: 700; font-size: .95rem; color: #fff; text-align: left;
}
.hs-kicker .hs-i { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--apricot); }
.hs-title {
  margin: 0 0 16px; color: #fff; overflow-wrap: anywhere;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08;
  text-shadow: 0 3px 22px rgba(0,0,0,.45);
}
.hs-lead {
  margin: 0 0 28px; color: rgba(255,255,255,.93); max-width: 54ch;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero-slider[data-align="center"] .hs-lead { margin-inline: auto; }
.hero-slider[data-align="right"]  .hs-lead { margin-left: auto; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-slider[data-align="center"] .hs-actions { justify-content: center; }
.hero-slider[data-align="right"]  .hs-actions { justify-content: flex-end; }
.hs-actions .hs-i { width: 18px; height: 18px; flex: none; }
.hs-actions .btn { backdrop-filter: blur(4px); }

/* La entrada escalonada del texto: se repite en cada cambio porque la regla
   cuelga de .is-on, que es la clase que mueve el JS. */
.hs-slide.is-on > * { animation: hs-rise .75s cubic-bezier(.2,.8,.2,1) both; }
.hs-slide.is-on > *:nth-child(1) { animation-delay: .06s; }
.hs-slide.is-on > *:nth-child(2) { animation-delay: .16s; }
.hs-slide.is-on > *:nth-child(3) { animation-delay: .26s; }
.hs-slide.is-on > *:nth-child(4) { animation-delay: .36s; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Barra de abajo: garantias, valoracion y puntos ---------- */
.hs-foot { position: relative; z-index: 2; padding: 0 0 26px; }
.hs-foot > .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2);
}
.hs-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hs-notes li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.92); }
.hs-notes .hs-i { width: 17px; height: 17px; flex: none; color: #8FE0B0; }
.hs-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius); padding: 9px 15px; backdrop-filter: blur(6px);
}
.hs-stars { color: var(--apricot); letter-spacing: 1px; font-size: 1rem; }
.hs-badge-txt { display: grid; line-height: 1.3; }
.hs-badge-txt strong { font-size: .95rem; color: #fff; }
.hs-badge-txt small { font-size: .8rem; color: rgba(255,255,255,.8); }
/* Los puntos van bajo el texto, alineados con el (ver .hs-stage) */
.hs-badge { margin-left: auto; }
.hs-dots { display: flex; gap: 2px; margin: 26px 0 0 -8px; }
.hero-slider[data-align="center"] .hs-dots { justify-content: center; margin-left: 0; }
.hero-slider[data-align="right"]  .hs-dots { justify-content: flex-end; margin: 26px -8px 0 0; }
.hs-dots button {
  width: 34px; height: 34px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: grid; place-items: center;
}
.hs-dots button i {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45);
  transition: background .25s, transform .25s, width .25s;
}
.hs-dots button:hover i { background: rgba(255,255,255,.8); }
.hs-dots button[aria-current="true"] i { background: #fff; width: 24px; border-radius: 999px; }

/* ---------- Flechas ---------- */
.hs-arrow {
  position: absolute; top: calc(50% - 30px); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); transition: background .2s, transform .2s, opacity .2s;
  opacity: .65;
}
.hero-slider:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
.hs-arrow:hover { background: rgba(0,0,0,.52); transform: scale(1.06); }
.hs-arrow svg { width: 22px; height: 22px; }
.hs-prev { left: max(10px, calc((100% - var(--container)) / 2 - 58px)); }
.hs-next { right: max(10px, calc((100% - var(--container)) / 2 - 58px)); }

/* ---------- Reloj de la diapositiva ---------- */
.hs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); z-index: 3; }
.hs-progress i { display: block; height: 100%; width: 0; background: var(--apricot); }
.hero-slider.is-running .hs-progress i { animation: hs-bar var(--hs-wait, 6000ms) linear forwards; }
@keyframes hs-bar { from { width: 0; } to { width: 100%; } }

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 900px) {
  .hero-slider { min-height: 0; }
  .hs-stage { padding: 40px 0 22px; }
  .hs-slide { max-width: none; }
  .hs-title { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .hs-lead { margin-bottom: 22px; }
  .hs-arrow { width: 40px; height: 40px; top: auto; bottom: 92px; opacity: 1; }
  .hs-prev { left: 10px; }
  .hs-next { right: 10px; }
  .hs-foot > .container { gap: 12px 18px; }
  .hs-badge { margin-left: 0; }
  .hs-dots { margin-top: 18px; }
}
@media (max-width: 640px) {
  .hs-actions .btn { width: 100%; justify-content: center; }
  .hs-notes { gap: 6px 16px; font-size: .9rem; }
  .hs-notes li:nth-child(n+3) { display: none; }
  .hs-arrow { display: none; }
  .hs-dots { margin: 16px 0 0 -8px; }
}

/* Quien pide menos movimiento ve el carrusel quieto: sin desplazamientos, sin
   Ken Burns y sin la barra. El cambio de diapositiva sigue funcionando a mano
   (el JS no autoavanza con esta preferencia puesta). */
@media (prefers-reduced-motion: reduce) {
  .hero-slider { --hs-fade: .001s; }
  .hs-slide.is-on > * { animation: none; }
  .hero-slider[data-effect="slide"] .hs-back,
  .hero-slider[data-effect="slide"] .hs-back.is-on { transform: none; }
  .hero-slider[data-effect="zoom"] .hs-back.is-on img { animation: none; }
  .hs-progress { display: none; }
}
