/* =========================================================
   VETQUESTRIAN · Medicina y Reproducción Equina
   Identity: brand flyer — navy + mist white, Trajan-style caps,
   script accents, white horse silhouettes.
   ========================================================= */

:root {
  --bg:        #f3f6fa;   /* mist white */
  --bg-2:      #e3eaf3;   /* cool mist */
  --paper:     #ffffff;
  --ink:       #0f1c33;
  --ink-soft:  #3a4860;
  --ink-mute:  #67748a;
  --navy:      #0d2858;   /* flyer navy */
  --navy-deep: #081b3e;
  --royal:     #01398c;   /* logo blue */
  --sky:       #a9c3e6;   /* accent on dark */
  --line:      rgba(13,40,88,.14);
  --red:       #d9473b;

  --caps:   "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --serif:  "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Allura", "Brush Script MT", cursive;
  --sans:   "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(.2,.7,.1,1);

  /* Restrained type scale */
  --h1: clamp(2rem, 1.35rem + 2.5vw, 3.4rem);
  --h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.7rem);
  --h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: clamp(15px, .9rem + .15vw, 17px); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 92px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -.005em; }
h2 { font-size: var(--h2); color: var(--navy); }
h3 { font-family: var(--caps); font-size: var(--h3); letter-spacing: .04em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--royal); }
p { margin: 0 0 1em; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; color: var(--navy); font-style: italic; }
.script { font-family: var(--script); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem); line-height: 1.1; color: var(--navy); margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--caps); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--royal);
}
.eyebrow__line { width: 34px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--caps); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 12px 26px -14px rgba(13,40,88,.8); }
.btn--navy:hover { background: var(--royal); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--bg-2); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .74rem; }
.btn--block { width: 100%; }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c6d3e6; font-size: .78rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__right { display: flex; gap: 26px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.topbar__urg { color: #fff; font-weight: 600; }
a.topbar__item:hover { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 10px 30px -20px rgba(13,40,88,.5); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 96px; transition: height .3s; }
.nav.is-scrolled .nav__in { height: 76px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 70px; width: auto; transition: height .3s; }
.nav.is-scrolled .nav__logo img { height: 56px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--royal); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-current { color: var(--navy); }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); position: relative; z-index: 2; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
body.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff; overflow: hidden;
  padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
body.menu-open { overflow: hidden; }
.drawer__mark { position: absolute; right: -60px; bottom: 120px; width: 280px; opacity: .07; pointer-events: none; }
.drawer__links a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.drawer__links small { font-family: var(--caps); font-size: .7rem; color: var(--sky); letter-spacing: .1em; }
.drawer__foot { display: grid; gap: 12px; text-align: center; color: #c6d3e6; font-size: .85rem; position: relative; }
.drawer__foot p { margin: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: 600px; height: calc(100vh - 134px); height: calc(100svh - 134px); max-height: 940px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slides { z-index: -2; background: var(--navy-deep); }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s linear; will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide:nth-child(1) { background-position: 60% 50%; }
.hero__slide:nth-child(2) { background-position: 55% 55%; }
.hero__slide:nth-child(3) { background-position: 70% 40%; }
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,27,62,.9) 0%, rgba(8,27,62,.55) 48%, rgba(8,27,62,.08) 100%),
    linear-gradient(0deg, rgba(8,27,62,.75) 0%, rgba(8,27,62,0) 45%);
}
.hero__content { padding-bottom: clamp(36px, 7vh, 80px); }
.hero__title { font-size: var(--h1); max-width: 18ch; color: #fff; }
.hero__title em { color: var(--sky); }
.hero__sub { max-width: 46ch; margin: 20px 0 30px; font-size: clamp(.98rem, .92rem + .25vw, 1.1rem); color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.hero__dots { display: flex; gap: 12px; flex: 1; max-width: 620px; }
.hero__dot { flex: 1; text-align: left; background: none; border: 0; color: rgba(255,255,255,.6); padding: 10px 0 0; position: relative; border-top: 1px solid rgba(255,255,255,.28); font-size: .74rem; display: flex; gap: 10px; align-items: baseline; }
.hero__dot i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: #fff; }
.hero__dot.is-active { color: #fff; }
.hero__dot.is-active i { animation: dotfill var(--hero-dur, 6.5s) linear forwards; }
.hero.is-paused .hero__dot.is-active i { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }
.hero__dot-num { font-family: var(--caps); font-weight: 600; letter-spacing: .08em; }
.hero__script { font-family: var(--script); font-size: clamp(1.6rem, 1.3rem + .9vw, 2.2rem); line-height: 1.1; margin: 0; max-width: 15em; text-align: right; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }

.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- SPECIALTIES (flyer icon row) ---------- */
.specs { background: var(--paper); border-bottom: 1px solid var(--line); }
.specs__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.spec { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 32px 14px; text-align: center; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; }
.spec svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.spec:hover svg { transform: translateY(-4px); }
.spec span { font-family: var(--caps); font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); line-height: 1.4; text-transform: uppercase; max-width: 17ch; }

/* ---------- ABOUT ---------- */
.about { padding: clamp(72px, 10vw, 140px) 0; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding-bottom: 60px; padding-right: 40px; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about__img--main { aspect-ratio: 4 / 4.4; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4/3; border: 8px solid var(--bg); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 50px -30px rgba(13,40,88,.55); }
.about__seal { position: absolute; left: -26px; top: -26px; width: 132px; height: 132px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 20px 40px -20px rgba(13,40,88,.8); }
.about__seal > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.about__seal text { fill: #fff; font-size: 9.6px; font-weight: 600; letter-spacing: 2.4px; font-family: var(--caps); }
.about__seal img { width: 52px; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text h2 { margin-bottom: 26px; }
.about__text > p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }
.values { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.values li:nth-child(odd) { padding-right: 16px; }
.values span { font-family: var(--caps); color: var(--royal); font-size: .9rem; min-width: 26px; }

/* ---------- DIRECTOR (flyer composition) ---------- */
.director { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); padding-top: clamp(70px, 9vw, 120px); }
.director__mist { position: absolute; z-index: -1; right: -6%; top: 0; width: 60%; height: 70%; background: url("assets/img/mark.webp") no-repeat right top / contain; opacity: .045; }
.director__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; column-gap: clamp(32px, 5vw, 70px);
  grid-template-areas: "panel photo" "creds photo" "creds story";
}
.director__panel {
  grid-area: panel; background: var(--navy); color: #fff; align-self: start;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); margin-left: calc(var(--gutter) * -1);
  padding-left: calc(var(--gutter) + clamp(0px, 1vw, 12px)); border-radius: 0 var(--radius) var(--radius) 0;
}
.director__dr { font-family: var(--script); font-size: clamp(3rem, 2.4rem + 2vw, 4.4rem); line-height: .7; margin: 0 0 6px; }
.director__name { font-family: var(--caps); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: .02em; line-height: 1.1; color: #fff; text-transform: uppercase; }
.director__role { margin: 10px 0 0; font-family: var(--caps); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sky); }

.director__photo { grid-area: photo; margin: 0; position: relative; align-self: end; }
.director__photo img { width: 100%; max-width: 480px; margin-left: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 58% 66% at 50% 40%, #000 55%, transparent 98%); mask-image: radial-gradient(ellipse 58% 66% at 50% 40%, #000 55%, transparent 98%); }

.creds { grid-area: creds; list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; align-self: start; }
.creds li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.5; }
.creds li:last-child { border-bottom: 0; }
.creds svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.creds small { font-size: .88em; color: var(--ink-mute); }

.director__story { grid-area: story; align-self: start; border-left: 1px solid var(--line); padding: 8px 0 0 26px; margin-top: 30px; }
.director__story p:first-child { color: var(--ink); font-size: 1rem; }
.director__story strong { color: var(--navy); }
.director__story .script { margin: 6px 0 22px; }
.director__lab { margin: 0; font-size: .8rem; color: var(--ink-mute); padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; display: inline-block; }
.director__lab strong { font-family: var(--caps); letter-spacing: .08em; color: var(--royal); }

.director__strip { display: grid; grid-template-columns: repeat(4, 1fr); height: clamp(150px, 18vw, 240px); margin-top: clamp(40px, 6vw, 70px); }
.director__strip div { background-size: cover; background-position: center; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); margin: 0 -2.2%; transition: filter .5s; filter: saturate(.95); }
.director__strip div:first-child { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); margin-left: 0; }
.director__strip div:last-child { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); margin-right: 0; }
.director__strip div:hover { filter: saturate(1.2) brightness(1.06); }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 32px; align-items: center; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--caps); font-size: clamp(.95rem, .85rem + .5vw, 1.3rem); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--sky); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTION HEAD ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { max-width: 18ch; }
.section-head__aside { max-width: 38ch; color: var(--ink-mute); margin: 0; }

/* ---------- SERVICES ---------- */
.services { padding: clamp(72px, 10vw, 140px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-deep); color: #fff; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease), filter .6s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,27,62,0) 25%, rgba(8,27,62,.9) 100%); }
.card__body { position: absolute; inset: auto 0 0 0; padding: 24px; }
.card__num { display: block; font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; color: var(--sky); margin-bottom: 8px; }
.card h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); margin-bottom: 8px; text-transform: uppercase; }
.card p { margin: 0; color: rgba(255,255,255,.84); font-size: .9rem; max-width: 42ch; }
.card__badge { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(1,57,140,.75); }
.card:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }

/* ---------- FARRIER ---------- */
.farrier { position: relative; isolation: isolate; color: #fff; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.farrier__bg { position: absolute; inset: -20% 0; z-index: -2; background-size: cover; background-position: center; transform: translateY(var(--py, 0)); }
.farrier::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,27,62,.96) 0%, rgba(13,40,88,.88) 55%, rgba(13,40,88,.78) 100%); }
.farrier__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.farrier h2 { color: #fff; margin-bottom: 26px; }
.farrier h2 em { color: var(--sky); }
.farrier blockquote { margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--sky); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.35; }
.farrier p { color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 30px; }
.farrier__card { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px; border-radius: calc(var(--radius) + 4px); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.farrier__card figure { margin: 0; border-radius: 12px; overflow: hidden; }
.farrier__card figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.farrier__role { font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin: 4px 0 6px; }
.farrier__card h3 { font-size: 1.2rem; margin-bottom: 16px; color: #fff; }
.farrier__card p { margin: 0; }

/* ---------- TIMELINE ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 26px; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--royal); }
.timeline time { display: block; font-family: var(--caps); font-weight: 600; font-size: .76rem; letter-spacing: .08em; color: var(--navy); }
.timeline--dark::before { background: rgba(255,255,255,.2); }
.timeline--dark li { color: rgba(255,255,255,.82); font-size: .86rem; padding-bottom: 10px; }
.timeline--dark li::before { background: var(--navy); border-color: var(--sky); }
.timeline--dark time { color: var(--sky); }
.timeline.is-collapsed li:nth-child(n+7) { display: none; }
.timeline__toggle { margin-top: 4px; background: none; border: 0; padding: 6px 0; font-weight: 700; font-size: .85rem; color: var(--royal); text-decoration: underline; text-underline-offset: 4px; }
.timeline__toggle[hidden] { display: none; }

/* ---------- CAREER ---------- */
.career { padding: clamp(72px, 10vw, 130px) 0; background: var(--paper); }
.career__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.career__grid h2 { margin-bottom: 20px; }
.career__aside { color: var(--ink-mute); max-width: 40ch; }
@media (min-width: 921px) { .career__grid > :first-child { position: sticky; top: 110px; } }

/* ---------- GALLERY ---------- */
.gallery { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.gallery__ctrl { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--navy); color: var(--navy); background: transparent; font-size: 1.1rem; transition: background .3s, color .3s; }
.round:hover { background: var(--navy); color: #fff; }
.gallery__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 20px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--navy) transparent; align-items: flex-start;
}
@media (min-width: 1240px) { .gallery__track { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.g { flex: none; margin: 0; width: clamp(260px, 30vw, 420px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; scroll-snap-align: start; cursor: zoom-in; background: var(--bg-2); }
.g--tall { aspect-ratio: 4 / 5; width: clamp(230px, 24vw, 340px); }
.g--sq { aspect-ratio: 1; width: clamp(240px, 26vw, 360px); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.07); }
.g figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--navy); font-family: var(--caps); font-size: .7rem; font-weight: 600; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,27,62,.95); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 12px; }
.lightbox p { color: #fff; margin: 14px 0 0; font-family: var(--script); font-size: 1.8rem; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 1.1rem; }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info h2 { margin-bottom: 20px; }
.contact__info > p:not(.eyebrow) { color: var(--ink-soft); max-width: 48ch; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.ccard { display: grid; gap: 4px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: var(--bg); transition: border-color .3s, transform .4s var(--ease), background .3s; min-width: 0; }
.ccard:hover { border-color: var(--royal); transform: translateY(-3px); }
.ccard__label { font-family: var(--caps); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); }
.ccard__value { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; color: var(--navy); }
.ccard--urgent { background: var(--navy); border-color: var(--navy); }
.ccard--urgent .ccard__label { color: var(--sky); }
.ccard--urgent .ccard__value { color: #fff; font-family: var(--caps); font-size: 1.2rem; letter-spacing: .03em; }
.ccard--urgent:hover { background: var(--royal); border-color: var(--royal); }

.hours { margin: 0; display: grid; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-mute); }
.hours dd { margin: 0; font-weight: 700; color: var(--navy); }
.hours__em dd { color: var(--red); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; box-shadow: 0 40px 70px -50px rgba(13,40,88,.5); border-top: 4px solid var(--navy); }
.form h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); color: var(--navy); text-transform: uppercase; }
.form__hint { margin: -8px 0 4px; font-size: .85rem; color: var(--ink-mute); }
.field { display: grid; gap: 6px; }
.field span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .25s, box-shadow .25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(1,57,140,.14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__error { margin: 0; color: var(--red); font-size: .85rem; }
.form__error:empty { display: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 0 0 24px; font-size: .92rem; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(36px, 5vw, 52px); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { width: 240px; max-width: 60vw; height: auto; flex: none; }
.footer__script { font-family: var(--script); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); line-height: 1.2; color: #fff; margin: 0; text-align: center; flex: 1; }
.footer__social { display: flex; gap: 10px; flex: none; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); transition: background .25s, border-color .25s; }
.footer__social a:hover { background: #fff; border-color: #fff; }
.footer__social a:hover svg { stroke: var(--navy); }
.footer svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.7; flex: none; transition: stroke .25s; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 56px); }
.footer h4 { color: #fff; font-family: var(--caps); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__nav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer__contact li { display: flex; gap: 12px; align-items: center; }
.footer__contact svg { opacity: .7; }
.footer__hours { margin: 0; display: grid; gap: 12px; }
.footer__hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,.12); }
.footer__hours dt, .footer__hours dd { margin: 0; }
.footer__hours dd { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer__urg { border-bottom: 0 !important; padding-bottom: 0 !important; }
.footer__urg dt { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer__urg dd { color: var(--sky); font-weight: 600; }
.footer a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: none; flex-direction: column; gap: 10px; transition: opacity .4s, transform .4s var(--ease); }
.fab:not(.is-shown) { opacity: 0; transform: translateY(20px); pointer-events: none; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.fab__wa { background: #25d366; }
.fab__wa svg { fill: #fff; width: 28px; height: 28px; }
.fab__call { background: var(--navy); }
.fab__call svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity 1.2s ease; transform: none !important; }
  .marquee__track { animation-duration: 90s; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: .8rem; }
  .nav__logo img { height: 60px; }
  .farrier__card { grid-template-columns: 1fr; }
  .farrier__card figure { aspect-ratio: 16 / 10; }
  .footer__top { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer__script { flex-basis: 100%; order: 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__grid > :last-child { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav__in, .nav.is-scrolled .nav__in { height: 74px; }
  .nav__logo img, .nav.is-scrolled .nav__logo img { height: 52px; }
  .hero { height: calc(100vh - 74px); height: calc(100svh - 74px); }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__script { text-align: left; order: -1; font-size: 1.6rem; }
  .specs__grid { grid-template-columns: repeat(3, 1fr); }
  .spec:nth-child(4) { border-left: 0; }
  .spec:nth-child(n+4) { border-top: 1px solid var(--line); }
  .about__grid, .farrier__grid, .contact__grid, .career__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }

  .director__grid { grid-template-columns: 1fr; grid-template-areas: "panel" "photo" "creds" "story"; }
  .director__photo { max-width: 440px; margin: -10px auto 0; width: 100%; }
  .director__photo img { margin: 0 auto; }
  .director__panel { margin-right: calc(var(--gutter) * -1); border-radius: 0; }
  .director__story { border-left: 0; padding-left: 0; }
  .director__strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .director__strip div { aspect-ratio: 4 / 3; clip-path: none !important; margin: 0 !important; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .card--tall { grid-row: span 1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fab { display: flex; }
}

@media (max-width: 640px) {
  :root { --h1: clamp(1.85rem, 1.3rem + 3.4vw, 2.25rem); --h2: clamp(1.6rem, 1.25rem + 2.4vw, 1.95rem); }
  .eyebrow { letter-spacing: .18em; font-size: .68rem; }
  .hero { min-height: 580px; }
  .hero__content { padding-bottom: 24px; }
  .hero__sub { margin: 14px 0 22px; font-size: .95rem; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 48px; padding: 0 16px; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,27,62,.45) 0%, rgba(8,27,62,.2) 30%, rgba(8,27,62,.9) 75%); }
  .hero__dot-label { display: none; }
  .hero__dots { gap: 8px; max-width: none; }
  .hero__foot { padding-bottom: 20px; gap: 14px; }
  .hero__script { font-size: 1.45rem; }

  .specs__grid { grid-template-columns: 1fr 1fr; }
  .spec { padding: 24px 10px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .spec:nth-child(odd) { border-left: 0; }
  .spec:first-child, .spec:nth-child(2) { border-top: 0; }
  .spec:last-child { grid-column: 1 / -1; }
  .spec svg { width: 38px; height: 38px; }
  .spec span { font-size: .7rem; }

  .about__media { padding-right: 24px; padding-bottom: 46px; }
  .about__seal { width: 100px; height: 100px; left: -6px; top: -18px; }
  .about__seal text { font-size: 9.4px; }
  .about__seal img { width: 40px; }
  .values { grid-template-columns: 1fr; }
  .values li:nth-child(odd) { padding-right: 0; }

  .creds li { font-size: .9rem; grid-template-columns: 28px 1fr; gap: 12px; }
  .creds svg { width: 26px; height: 26px; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 12px; }
  .card--wide { grid-column: span 1; }
  .card__body { padding: 20px; }

  .gallery__ctrl { display: none; }
  .g { width: 78vw; }
  .g--tall { width: 64vw; }
  .g--sq { width: 70vw; }

  .contact__cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid > :last-child { max-width: none; }
  .footer__bottom { padding-bottom: 76px; }
  .marquee { padding: 14px 0; }
}

/* ===== Observaciones v3 ===== */
/* Angol y alrededores — prominent location badge */
.hero__place {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 10px 20px 10px 14px; border-radius: 999px; background: #fff; color: var(--navy);
  font-family: var(--caps); font-weight: 600; font-size: clamp(.9rem, .8rem + .45vw, 1.15rem); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.55);
}
.hero__place svg { width: 20px; height: 20px; fill: none; stroke: var(--royal); stroke-width: 2; flex: none; }

/* team paragraph: same face as the lead, smaller */
.lead--sm { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.55; }
.about__text > p.lead--sm { color: var(--ink-soft); }

/* Vetlab Nawel badge (small logo) */
.vetlab { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.vetlab img { height: 34px; width: auto; display: block; }
.vetlab img + b { display: none; }
.vetlab b { font-family: var(--caps); letter-spacing: .08em; color: var(--royal); font-size: .85rem; }
.director__lab { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--paper); }
.vetlab--card { margin-top: 12px; background: #fff; border-radius: 8px; padding: 5px 10px; }
.vetlab--card img { height: 26px; }
.vetlab--card b { color: var(--navy); font-size: .75rem; }

/* Banco de material genético */
.bank { padding: clamp(72px, 10vw, 130px) 0; background: var(--bg-2); }
.bank__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.bank__media { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.bank__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bank__media::after, .bank__media figcaption {
  position: absolute; bottom: 16px; color: #fff; background: rgba(8,27,62,.7); padding: 6px 12px; border-radius: 999px;
}
.bank__media::after { content: "−196 °C"; left: 16px; font-family: var(--caps); letter-spacing: .14em; font-size: .85rem; }
.bank__media figcaption { right: 16px; font-size: .75rem; }
.bank h2 { margin-bottom: 20px; }
.bank__text > p:not(.eyebrow) { color: var(--ink-soft); max-width: 50ch; }
.bank__list { list-style: none; margin: 4px 0 30px; padding: 0; display: grid; gap: 10px; }
.bank__list li { padding-left: 28px; position: relative; font-weight: 600; color: var(--navy); }
.bank__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--royal); background: radial-gradient(circle, var(--royal) 0 3px, transparent 3.5px); }

.ccard--wa .ccard__label { color: #1a9e4b; }

@media (max-width: 920px) {
  .bank__grid { grid-template-columns: 1fr; }
  .bank__media { max-width: 460px; }
}
@media (max-width: 640px) {
  .hero__place { padding: 8px 16px 8px 12px; letter-spacing: .12em; margin-bottom: 16px; }
}

/* ===== Multipágina ===== */
/* Inner page hero */
.phero { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: clamp(90px, 13vw, 170px) 0 clamp(48px, 7vw, 80px); }
.phero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; animation: phero 14s ease-out both; }
@keyframes phero { from { transform: scale(1.12); } to { transform: scale(1); } }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,27,62,.92) 0%, rgba(8,27,62,.6) 60%, rgba(8,27,62,.35) 100%), linear-gradient(0deg, rgba(8,27,62,.6), rgba(8,27,62,0) 60%); }
.phero__in > * { animation: rise .9s var(--ease) both; }
.phero__in > :nth-child(3) { animation-delay: .1s; }
.phero__in > :nth-child(4) { animation-delay: .2s; }
.phero__title { font-size: var(--h1); max-width: 20ch; color: #fff; }
.phero__title em { color: var(--sky); }
.phero__sub { margin: 16px 0 0; max-width: 52ch; color: rgba(255,255,255,.85); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: rgba(255,255,255,.7); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span:last-child { color: #fff; font-weight: 600; }

/* Explore cards (home) */
.explore { padding: clamp(72px, 10vw, 130px) 0; background: var(--paper); }
.explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xcard { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; background: var(--navy); }
.xcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.xcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,27,62,0) 35%, rgba(8,27,62,.92) 100%); }
.xcard__body { position: absolute; inset: auto 0 0 0; padding: 24px; display: grid; gap: 6px; }
.xcard__k { font-family: var(--caps); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); }
.xcard__t { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); font-weight: 600; line-height: 1.15; }
.xcard__s { font-size: .95rem; color: rgba(255,255,255,.85); margin-top: -2px; }
.xcard__go { font-size: .85rem; font-weight: 600; opacity: .85; transition: transform .4s var(--ease); }
.xcard:hover img { transform: scale(1.07); }
.xcard:hover .xcard__go { transform: translateX(6px); opacity: 1; }

/* CTA band */
.cta { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; width: 340px; height: 280px; transform: translateY(-50%); background: url("assets/img/mark-blanco.webp") no-repeat center / contain; opacity: .07; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta__script { font-family: var(--script); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); margin: 0 0 4px; color: var(--sky); line-height: 1.1; }
.cta h2 { color: #fff; }
.cta h2 em { color: var(--sky); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Gallery page grid */
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center h2 { margin-inline: auto; }
.gallery__grid { columns: 3 280px; column-gap: 16px; }
.gallery__grid .g { width: 100% !important; aspect-ratio: auto; margin: 0 0 16px; break-inside: avoid; display: block; }
.gallery__grid .g img { height: auto; }

/* Map */
.map { position: relative; height: clamp(320px, 45vw, 460px); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.map__card { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 24px; background: #fff; border-radius: 14px; padding: 18px 20px; display: grid; gap: 6px; max-width: 280px; box-shadow: 0 24px 40px -24px rgba(13,40,88,.6); }
.map__card b { font-family: var(--caps); color: var(--navy); letter-spacing: .06em; }
.map__card span { font-size: .85rem; color: var(--ink-mute); margin-bottom: 6px; }

@media (max-width: 920px) {
  .explore__grid { grid-template-columns: 1fr 1fr; }
  .explore__grid .xcard:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .explore__grid { grid-template-columns: 1fr; }
  .xcard, .explore__grid .xcard:last-child { aspect-ratio: 4 / 3.6; }
  .gallery__grid { columns: 2 150px; column-gap: 10px; }
  .gallery__grid .g { margin-bottom: 10px; }
  .gallery__grid .g figcaption { font-size: .62rem; padding: 4px 9px; left: 8px; bottom: 8px; }
  .map__card { position: static; max-width: none; border-radius: 0; box-shadow: none; }
  .map { height: auto; }
  .map iframe { height: 320px; }
  .cta__actions .btn { flex: 1 1 auto; }
}

.farrier::before { background: linear-gradient(100deg, rgba(8,27,62,.96) 0%, rgba(13,40,88,.9) 55%, rgba(13,40,88,.84) 100%); }
.gallery--page { padding-top: clamp(48px, 7vw, 80px); }
.card .vetlab img { position: static; inset: auto; width: auto; height: 26px; z-index: auto; transform: none !important; filter: none !important; object-fit: contain; }
.card .vetlab--card { display: inline-flex; padding: 6px 10px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }

/* ---------- PHONES: call + WhatsApp ---------- */
.footer__phone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__wa { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; letter-spacing: .04em; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85) !important; transition: background .25s, border-color .25s; }
.footer__wa svg { width: 13px !important; height: 13px !important; opacity: 1 !important; }
.footer__wa:hover { background: #25d366; border-color: #25d366; color: #fff !important; text-decoration: none !important; }
.ccard--phone { gap: 6px; }
.ccard--phone:hover { transform: none; }
.ccard__actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ccard__actions a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--navy); transition: background .25s, border-color .25s, color .25s; }
.ccard__actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ccard__actions a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.ccard__actions a.is-wa:hover { background: #25d366; border-color: #25d366; }
.ccard--urgent .ccard__actions a { border-color: rgba(255,255,255,.35); color: #fff; }
.ccard--urgent .ccard__actions a:hover { background: #fff; color: var(--navy); }
.ccard--urgent:hover { background: var(--navy); border-color: var(--navy); }
.ccard--wide { grid-column: 1 / -1; }
