/* ==========================================================================
   Centro Veterinario Los Mimados — estilos (v2, rediseño editorial)
   Identidad: verde profundo + turquesa del logo + azul marino del logo,
   blanco cálido, menta y un acento lima para acciones.
   Motivo gráfico: el arco creciente que abraza al perro y al gato en el logo
   y la ola turquesa que los sostiene.
   ========================================================================== */

/* Fuentes alojadas en el propio sitio (SIL Open Font License, ver assets/fonts/LICENCIAS.md).
   Sin solicitudes a Google Fonts: mejor privacidad y menos dependencias externas. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color — tomado del logo: azul marino #0D205A y turquesa #017DAC */
  --navy-950: #08153d;
  --navy-900: #0d205a;    /* azul marino del logo */
  --navy-800: #16306f;
  --navy-700: #22418a;    /* azul intermedio para acentos tipográficos */
  --teal: #017dac;        /* turquesa del logo (decorativo, iconos grandes) */
  --teal-700: #016c95;    /* turquesa con contraste AA para texto y botones */
  --aqua: #5cc3dd;        /* turquesa claro para acentos sobre azul marino */
  --sky-50: #eef6fa;      /* superficie secundaria con base azulada */
  --sky-100: #dcebf3;
  --paper: #fafbfc;       /* blanco cálido */
  --white: #ffffff;
  --star: #f2b21b;        /* estrellas de Google */

  --ink: #121c3f;
  --ink-soft: #4a5672;
  --on-dark: #f5f8fc;
  --on-dark-soft: #bfcae4;
  --field: #cbd6e3;       /* bordes de campos de formulario */

  /* Tipografía */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --fs-display: clamp(2.5rem, 1.25rem + 3.9vw, 4.75rem);
  --fs-hero: clamp(3rem, 1.1rem + 5.9vw, 6.75rem);

  /* Espacio y forma */
  --gutter: clamp(18px, 4vw, 48px);
  --container: 1280px;
  --section: clamp(88px, 10vw, 168px);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --header-h: 92px;
  --float: 0 18px 40px -12px rgba(13, 32, 90, 0.28);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--aqua); color: var(--navy-950); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Tipografía ---------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--navy-950);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.04em; }
.display--light { color: var(--on-dark); }
h3, h4 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; font-weight: 650; }
h4 { margin: 0; }
p { text-wrap: pretty; }
.ink-accent { color: var(--navy-700); }
.ink-aqua { color: var(--aqua); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-800); line-height: 1.3;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(92, 195, 221, 0.35); flex: none;
}
.eyebrow .icon { display: none; }
.eyebrow--light { color: var(--aqua); }
.eyebrow + .display, .eyebrow + h2 { margin-top: 20px; }

/* Botones ------------------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; text-align: center; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.97); }
.btn--lg { min-height: 58px; padding: 15px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary .icon:first-child { color: var(--aqua); }
.btn--primary:hover { background: var(--navy-950); transform: translateY(-2px); }
.btn--accent { background: var(--aqua); color: var(--navy-950); }
.btn--accent:hover { background: #8fd6e8; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgba(245, 248, 252, 0.55); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--navy-900); border-color: var(--on-dark); }
.btn:focus-visible { outline-color: var(--aqua); box-shadow: 0 0 0 6px var(--navy-800); }

/* A. Encabezado ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 251, 252, 0);
  transition: background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled { background: rgba(250, 251, 252, 0.97); box-shadow: 0 1px 0 rgba(13, 32, 90, 0.08), 0 12px 30px -18px rgba(8, 21, 61, 0.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .header__inner { height: 72px; }
.header__brand { display: block; flex: none; border-radius: 12px; }
body.menu-open .header__brand { position: relative; z-index: 2; }
.header__brand img { height: 74px; width: auto; transition: height .35s var(--ease); mix-blend-mode: multiply; }
.site-header.is-scrolled .header__brand img { height: 58px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 650; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--teal-700); transform: scale(0); transition: transform .3s var(--ease);
}
.nav__list a:hover { color: var(--navy-800); background: var(--sky-50); }
.nav__list a.is-current { color: var(--navy-800); }
.nav__list a.is-current::after { transform: scale(1); }
.nav__cta { min-height: 48px; padding: 10px 22px; font-size: 0.95rem; }
.nav__meta { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 16px;
  border: 0; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 700; cursor: pointer;
  position: relative; z-index: 2; transition: background-color .25s;
}
.nav-toggle__bars { position: relative; width: 20px; height: 12px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--aqua); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 10px; }
.nav-toggle[aria-expanded="true"] { background: var(--aqua); color: var(--navy-950); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { background: var(--navy-950); top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--navy-900); color: var(--on-dark);
    clip-path: circle(0 at calc(100% - 60px) 46px);
    visibility: hidden; transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
    overflow-y: auto;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 60px) 46px); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a {
    padding: 8px 0; border-radius: 0; background: none !important;
    font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--on-dark); opacity: 0; transform: translateY(18px);
    transition: opacity .4s, transform .5s var(--ease), color .2s;
  }
  .nav__list a::after { left: auto; right: 0; top: 50%; bottom: auto; margin: -5px 0 0; width: 10px; height: 10px; background: var(--aqua); }
  .nav__list a:hover, .nav__list a.is-current { color: var(--aqua); }
  .nav.is-open .nav__list a { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) a { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) a { transition-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) a { transition-delay: .2s; }
  .nav.is-open .nav__list li:nth-child(6) a { transition-delay: .25s; }
  .nav__cta { min-height: 58px; background: var(--aqua); color: var(--navy-950); }
  .nav__cta .icon:first-child { color: var(--navy-950); }
  .nav__meta { display: block; color: var(--on-dark-soft); font-size: var(--fs-sm); }
  .nav__meta a { color: var(--aqua); font-weight: 700; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header__brand img { mix-blend-mode: normal; background: #fff; border-radius: 14px; padding: 4px 8px; }
}
@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .header__brand img { height: 60px; }
  .site-header.is-scrolled .header__brand img { height: 52px; }
  .site-header.is-scrolled .header__inner { height: 66px; }
}

/* B. Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(16px, 3vw, 48px)); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin-top: 26px; font-size: var(--fs-hero); line-height: 0.95; letter-spacing: -0.042em; font-weight: 700; }
.hero__line { display: block; }
.hero__mark { position: relative; display: inline-block; color: var(--teal-700); z-index: 0; }
.hero__swoosh { position: absolute; left: -2%; bottom: -0.08em; width: 104%; height: 0.3em; color: var(--aqua); z-index: -1; }
.hero__lead { margin-top: 30px; font-size: var(--fs-lg); color: var(--ink-soft); max-width: 52ch; }
.hero__lead strong { color: var(--navy-900); font-weight: 750; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-top: 48px; }
.hero__facts div { display: grid; gap: 2px; }
.hero__facts dt { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--navy-900); }
.hero__facts dt .icon { width: 22px; height: 22px; color: var(--star); }
.hero__facts dd { color: var(--ink-soft); font-size: var(--fs-sm); }

.hero__visual { position: relative; width: 100%; aspect-ratio: 0.88; max-width: 620px; justify-self: end; }
.hero__blob {
  position: absolute; inset: 8% -26% 0 14%;
  background: var(--navy-900);
  border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%;
  animation: blob 18s ease-in-out infinite alternate, pop-in 1.1s var(--ease) both;
}
.hero__blob::after {
  /* ola turquesa del logo */
  content: ""; position: absolute; left: -12%; bottom: 6%; width: 70%; height: 14%;
  background: var(--teal); border-radius: 100% 0 100% 0 / 100% 0 100% 0; transform: rotate(-8deg); opacity: .9;
}
.hero__arc { position: absolute; left: -2%; top: 0; width: 86%; color: var(--teal); transform: rotate(-16deg); animation: arc-in 1.4s var(--ease) .1s both; }
.hero__photo {
  position: absolute; left: 6%; top: 7%; width: 74%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 40px 40px; background: var(--sky-50);
  animation: photo-in 1.2s var(--ease) .15s both;
}
.hero__photo img { width: 100%; height: 112%; object-fit: cover; object-position: 38% 50%; will-change: transform; }
.hero__chip {
  position: absolute; right: -4%; top: 12%; z-index: 3;
  display: grid; gap: 4px; padding: 14px 18px; border-radius: 18px;
  background: var(--white); color: var(--ink); font-size: var(--fs-sm); text-decoration: none; box-shadow: var(--float);
  animation: chip-in .9s var(--ease) .8s both; transition: transform .3s var(--ease);
}
.hero__chip:hover { transform: translateY(-4px); }
.hero__chip strong { color: var(--navy-900); }
.hero__chip-stars { display: flex; gap: 2px; color: var(--star); }
.hero__chip-stars .icon { width: 16px; height: 16px; }
.hero__badge {
  position: absolute; left: -2%; bottom: 6%; z-index: 3; width: clamp(112px, 11vw, 150px); aspect-ratio: 1;
  border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--float);
  animation: chip-in .9s var(--ease) 1s both;
}
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge-ring text { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; letter-spacing: 0.18em; fill: var(--navy-900); }
.hero__badge-paw { width: 34%; height: 34%; color: var(--teal); fill: var(--teal); stroke: none; }
.paw { position: absolute; width: 30px; height: 30px; color: var(--teal-700); opacity: .35; animation: float 7s ease-in-out infinite alternate; }
.paw--1 { right: 4%; bottom: 4%; transform: rotate(18deg); }
.paw--2 { left: 40%; top: -2%; width: 22px; height: 22px; transform: rotate(-20deg); animation-delay: -3s; }

/* Entrada inicial del hero (solo CSS, no bloquea la interacción) */
[data-intro] { animation: intro .9s var(--ease) both; }
.hero__eyebrow { animation-delay: .05s; }
.hero__line:nth-child(1) { animation-delay: .12s; }
.hero__line:nth-child(2) { animation-delay: .2s; }
.hero__line:nth-child(3) { animation-delay: .28s; }
.hero__line:nth-child(4) { animation-delay: .36s; }
.hero__lead { animation-delay: .44s; }
.hero__actions { animation-delay: .48s; }
.hero__facts { animation-delay: .56s; }

@media (max-width: 999px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 520px; width: 88%; margin-top: 8px; }
  .hero__blob { inset: 8% -14% 0 10%; }
}
@media (max-width: 560px) {
  .hero__title { margin-top: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 18px 28px; margin-top: 36px; }
  .hero__facts dt { font-size: 1.6rem; }
  .hero__visual { width: 94%; }
  .hero__chip { right: -2%; top: 4%; padding: 10px 14px; font-size: 0.875rem; }
}

/* C. Presentación ---------------------------------------------------------- */
.about { background: var(--paper); padding-top: clamp(40px, 5vw, 88px); overflow-x: clip; }
.about__head .display { max-width: 15ch; }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.about__intro { font-size: var(--fs-lg); color: var(--ink); line-height: 1.6; }
.about__copy > p + p { margin-top: 18px; color: var(--ink-soft); }
.values { margin-top: 44px; display: grid; gap: 26px; }
.values li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
.values__icon {
  grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50% 50% 50% 16px; background: var(--sky-50); color: var(--navy-800);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.values li:hover .values__icon { background: var(--navy-800); color: var(--aqua); transform: rotate(-8deg); }
.values strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; color: var(--navy-950); line-height: 1.3; }
.values span:last-child { color: var(--ink-soft); font-size: var(--fs-sm); }

.about__media { position: relative; padding: 0 0 16% 14%; }
.about__media::before {
  content: ""; position: absolute; right: -8%; top: 10%; width: 72%; height: 82%;
  background: var(--sky-50); border-radius: 46% 54% 50% 50% / 40% 44% 56% 60%;
}
.about__photo { position: relative; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__photo--main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; border-radius: 999px 999px var(--radius) var(--radius); }
.about__photo--small {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%;
  border: 10px solid var(--paper); z-index: 2;
}
.about__note {
  position: absolute; right: 0; bottom: 6%; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--navy-800); color: var(--on-dark); font-weight: 700; font-size: var(--fs-sm);
}
.about__note .icon { color: var(--aqua); }

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* D. Perfil del veterinario ----------------------------------------------- */
.doctor { background: var(--sky-50); position: relative; overflow: hidden; }
.doctor__head { position: relative; z-index: 1; }
.doctor__name {
  margin-top: 18px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 0.8rem + 8.6vw, 9.5rem); line-height: 0.86; letter-spacing: -0.055em; color: var(--navy-950);
}
.doctor__name-pre { font-size: 0.32em; letter-spacing: -0.01em; vertical-align: 1.6em; color: var(--teal-700); margin-right: 0.15em; }
.doctor__name-last { color: var(--navy-700); }
.doctor__role { margin-top: 18px; font-weight: 700; color: var(--ink-soft); font-size: var(--fs-lg); }
.doctor__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; margin-top: clamp(40px, 5vw, 72px); }
.doctor__media { position: relative; align-self: start; padding: 6% 6% 0 0; }
.doctor__arc { position: absolute; left: -12%; top: -6%; width: 112%; color: var(--teal); transform: rotate(-12deg); }
.doctor__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: #e8eef5; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor__years {
  position: absolute; right: -6%; bottom: 8%; z-index: 2;
  width: clamp(148px, 14vw, 188px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 4px;
  background: var(--aqua); color: var(--navy-950); padding: 18px;
}
.doctor__years-num { font-family: var(--font-display); font-size: clamp(3.25rem, 2rem + 3vw, 4.75rem); font-weight: 700; line-height: .85; letter-spacing: -0.05em; }
.doctor__years-text { font-size: 0.8125rem; font-weight: 800; line-height: 1.25; max-width: 13ch; margin-inline: auto; }

.doctor__panel {
  position: relative; background: var(--navy-900); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 64px);
}
.doctor__bio { display: grid; gap: 16px; max-width: 64ch; }
.doctor__bio p { color: var(--on-dark-soft); }
.doctor__bio p:first-child { color: var(--on-dark); font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.doctor__areas-title { margin-top: 40px; color: var(--aqua); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.areas { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.areas li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(92, 195, 221, 0);
  font-weight: 650; font-size: 0.97rem; line-height: 1.35; color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.areas li:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(92, 195, 221, 0.6); transform: translateY(-2px); }
.areas .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--aqua); color: var(--navy-950); }
.doctor__panel .btn { margin-top: 36px; }

@media (max-width: 999px) {
  .doctor__grid { grid-template-columns: 1fr; }
  .doctor__media { max-width: 440px; width: 86%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .areas { grid-template-columns: 1fr; }
  .doctor__years { right: -4%; }
  .doctor__panel .btn { width: 100%; }
}

/* E. Servicios: cuadrícula editorial -------------------------------------- */
.services { background: var(--paper); }
.services__head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px 64px; align-items: end; }
.services__head .display { max-width: 13ch; }
.services__lead { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 46ch; }

.filters {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 48px; padding: 6px;
  border-radius: 28px; background: var(--sky-50);
}
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border: 0; border-radius: 999px; background: transparent; color: var(--navy-900);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.filter:hover { background: rgba(255, 255, 255, 0.85); }
.filter.is-active { background: var(--navy-800); color: #fff; }
.filter__count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: rgba(13, 32, 90, 0.1); color: var(--navy-800); font-size: 0.8125rem; font-weight: 800;
}
.filter.is-active .filter__count { background: var(--aqua); color: var(--navy-950); }
.services__status { margin-top: 18px; color: var(--ink-soft); font-size: var(--fs-sm); }

.bento {
  margin-top: 28px; display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense;
}
.svc { display: flex; }
.svc[hidden] { display: none; }
.svc.is-entering { animation: card-in .5s var(--ease) both; }
.svc__inner {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: var(--white); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.08);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc__inner:hover, .svc__inner:focus-within { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--teal-700), 0 24px 40px -24px rgba(8, 21, 61, 0.35); }
.svc__media { position: relative; margin: 8px 8px 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px 18px 64px 18px; background: var(--sky-50); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc__inner:hover .svc__media img { transform: scale(1.07); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.svc__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-size: var(--fs-xs); font-weight: 750; line-height: 1.3; }
.svc__tag .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--sky-50); color: var(--navy-800); }
.svc__title { margin-top: 12px; font-size: 1.3rem; }
/* Cada categoría tiene su propio tono dentro de la paleta del logo */
.svc[data-cat="cirugia"] .svc__tag .icon { background: var(--navy-900); color: var(--aqua); }
.svc[data-cat="prevencion"] .svc__tag .icon { background: var(--sky-100); color: var(--teal-700); }
.svc[data-cat="pruebas"] .svc__tag .icon { background: var(--teal-700); color: #fff; }
.svc[data-cat="higiene"] .svc__tag .icon { background: var(--navy-700); color: #fff; }
@media (min-width: 641px) { .svc:not(.svc--feature):nth-child(even) .svc__media { border-radius: 18px 18px 18px 64px; } }
.svc__desc { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; flex: 1; }
.svc__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: var(--sky-50); color: var(--navy-900); font-weight: 750; font-size: 0.94rem; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.svc__cta .icon:first-child { color: var(--teal-700); }
.svc__arrow { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc__cta:hover, .svc__inner:hover .svc__cta { background: var(--navy-800); color: #fff; }
.svc__cta:hover .icon:first-child, .svc__inner:hover .svc__cta .icon:first-child { color: var(--aqua); }
.svc__inner:hover .svc__arrow { transform: translateX(4px); }

/* Tarjeta destacada: foto completa y texto sobre un velo oscuro */
.svc--feature { grid-column: span 2; grid-row: span 2; }
.svc--feature .svc__inner { min-height: 520px; background: var(--navy-950); color: var(--on-dark); justify-content: flex-end; }
.svc--feature .svc__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.svc--feature .svc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 21, 61, 0) 22%, rgba(8, 21, 61, 0.62) 52%, rgba(8, 21, 61, 0.96) 100%); }
.svc--feature .svc__body { position: relative; z-index: 1; flex: 0; padding: clamp(24px, 3vw, 40px); }
.svc--feature .svc__tag { color: var(--aqua); }
.svc--feature .svc__tag .icon { background: var(--aqua); color: var(--navy-950); }
.svc--feature .svc__title { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.6rem); color: #fff; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.svc--feature .svc__desc { color: var(--on-dark-soft); font-size: var(--fs-base); max-width: 44ch; }
.svc--feature .svc__cta { background: var(--aqua); color: var(--navy-950); }
.svc--feature .svc__cta .icon:first-child { color: var(--navy-950); }
.svc--feature .svc__inner:hover .svc__cta, .svc--feature .svc__cta:hover { background: #fff; color: var(--navy-950); }
.svc--feature .svc__inner:hover .svc__cta .icon:first-child { color: var(--navy-800); }
.svc--feature .svc__inner:hover { box-shadow: inset 0 0 0 3px var(--aqua), 0 24px 40px -24px rgba(8, 21, 61, 0.5); }

@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1099px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--feature { grid-row: span 1; }
  .svc--feature .svc__inner { min-height: 440px; }
}
@media (max-width: 899px) {
  .services__head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .filters { display: flex; border-radius: 22px; }
  .filter { min-height: 42px; padding: 8px 14px; font-size: 0.9rem; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .svc--feature { grid-column: auto; }
  .svc--feature .svc__inner { min-height: 420px; }
  .svc:not(.svc--feature) .svc__inner { display: grid; grid-template-columns: 112px 1fr; }
  .svc:not(.svc--feature) .svc__media { margin: 8px 0 8px 8px; aspect-ratio: auto; border-radius: 16px 16px 40px 16px; }
  .svc:not(.svc--feature) .svc__media img { position: absolute; inset: 0; }
  .svc:not(.svc--feature) .svc__body { padding: 14px 16px 16px; }
  .svc:not(.svc--feature) .svc__tag .icon { display: none; }
  .svc:not(.svc--feature) .svc__title { margin-top: 4px; font-size: 1.125rem; }
  .svc:not(.svc--feature) .svc__cta { margin-top: 12px; min-height: 42px; padding: 8px 14px; font-size: 0.9rem; }
}

/* E1. Grupos de servicios por categoría ------------------------------------- */
.svc-groups { display: grid; gap: clamp(56px, 7vw, 104px); margin-top: 32px; }
.svc-group[hidden] { display: none; }
.svc-group__intro { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; max-width: 72ch; }
.svc-group__intro > p { grid-column: 1 / -1; margin-top: 12px; color: var(--ink-soft); }
.svc-group__icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50% 50% 50% 14px;
  background: var(--navy-900); color: var(--aqua);
}
.svc-group__icon .icon { width: 24px; height: 24px; }
.svc-group__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.035em; color: var(--navy-900); }
.svc-group__intro--media {
  max-width: none; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.5vw, 48px); border-radius: var(--radius-lg); background: var(--sky-50);
}
.svc-group__text { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; align-content: center; }
.svc-group__text > p, .svc-group__text > .svc-group__actions { grid-column: 1 / -1; }
.svc-group__text > p { margin-top: 14px; color: var(--ink); font-size: var(--fs-lg); max-width: 46ch; }
.svc-group__count { font-size: var(--fs-sm) !important; font-weight: 700; color: var(--teal-700) !important; }
.svc-group__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.svc-group .bento { margin-top: 24px; }

/* Fotos clínicas de cirugía */
.svc-group__media--surgery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clinic-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sky-100); aspect-ratio: 3 / 4; }
.clinic-photo--wide { grid-column: 1 / -1; aspect-ratio: 1495 / 1139; }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.clinic-photo:not(.clinic-photo--sensitive):hover img { transform: scale(1.03); }
.clinic-photo--sensitive img { filter: blur(22px) saturate(0.6); transform: scale(1.12); }
.clinic-photo--sensitive.is-revealed img { filter: none; transform: none; }
.clinic-photo__reveal {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; border: 0; cursor: pointer; text-align: center; color: #fff; font: inherit;
  background: rgba(8, 21, 61, 0.55); transition: background-color .3s;
}
.clinic-photo__reveal:hover { background: rgba(8, 21, 61, 0.45); }
.clinic-photo__reveal .icon { width: 30px; height: 30px; color: var(--aqua); }
.clinic-photo__reveal span { display: grid; gap: 4px; font-size: 0.875rem; line-height: 1.35; max-width: 22ch; }
.clinic-photo__reveal strong { font-size: 1rem; }
.clinic-photo--sensitive.is-revealed .clinic-photo__reveal { display: none; }
html:not(.js) .clinic-photo--sensitive img { filter: none; transform: none; }
html:not(.js) .clinic-photo__reveal { display: none; }

/* Videos verticales (laboratorio y ecografía) */
.svc-group__media--video { justify-self: center; width: 100%; max-width: 380px; }
.vertical-video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 640px; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 80px; background: var(--navy-950);
}
video.vertical-video { object-fit: contain; }
.svc-group__media--video figcaption { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Tarjetas compactas (sin fotografía) */
.svc--compact .svc__inner { background: var(--white); }
.svc--compact .svc__body { padding: 20px 22px 22px; }
.svc--compact .svc__tag .icon { width: 40px; height: 40px; padding: 9px; }
.svc--compact .svc__title { margin-top: 14px; font-size: 1.15rem; }
.svc-group--laboratorio .svc--compact .svc__tag .icon { background: var(--teal-700); color: #fff; }
.svc-group--ecografia .svc--compact .svc__tag .icon { background: var(--navy-900); color: var(--aqua); }
.svc-group--cirugia .svc--compact .svc__tag .icon { background: var(--sky-100); color: var(--navy-800); }

@media (max-width: 999px) {
  .svc-group__intro--media { grid-template-columns: 1fr; }
  .svc-group__media--video { max-width: 340px; }
}
@media (max-width: 640px) {
  .svc-group__intro--media { padding: 22px 18px; }
  .svc-group__actions .btn { width: 100%; }
  .svc--compact .svc__inner { display: flex !important; }
  .svc--compact .svc__body { padding: 16px 18px 18px; }
  .svc--compact .svc__tag .icon { display: inline-block !important; width: 34px; height: 34px; padding: 7px; }
  .svc--compact .svc__title { margin-top: 8px; font-size: 1.0625rem; }
}

/* E1b. Traslado de mascotas --------------------------------------------------- */
.transfer { background: var(--paper); padding-top: 0; }
.transfer__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px; background: var(--sky-50);
}
.transfer__card::before {
  /* arco del logo, discreto */
  content: ""; position: absolute; left: -12%; bottom: -55%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 50px -30px 0 rgba(1, 125, 172, 0.07); pointer-events: none;
}
.transfer__visual { position: relative; aspect-ratio: 4 / 3; }
.transfer__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.transfer__route path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; }
.transfer__stop {
  position: absolute; display: grid; place-items: center; border-radius: 50%; transform: translate(-50%, -50%);
  width: clamp(52px, 6vw, 72px); height: clamp(52px, 6vw, 72px); background: var(--white); color: var(--teal-700); box-shadow: var(--float);
}
.transfer__stop .icon { width: 44%; height: 44%; }
.transfer__stop--paw { left: 11%; top: 82%; }
.transfer__stop--pin { left: 89%; top: 17%; background: var(--aqua); color: var(--navy-950); }
.transfer__stop--car {
  left: 50%; top: 47%; width: clamp(112px, 13vw, 160px); height: clamp(112px, 13vw, 160px);
  background: var(--navy-900); color: var(--aqua); box-shadow: 0 0 0 12px rgba(92, 195, 221, 0.22), var(--float);
}
.transfer__copy { position: relative; }
.transfer__copy .display { max-width: 18ch; font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.75rem); }
.transfer__lead { margin-top: 22px; font-size: var(--fs-lg); color: var(--ink-soft); max-width: 54ch; }
.transfer__note {
  display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 16px 20px; max-width: 54ch;
  border-radius: var(--radius-sm); background: var(--white); box-shadow: inset 4px 0 0 var(--teal);
  color: var(--navy-900); font-weight: 700;
}
.transfer__note .icon { color: var(--teal-700); }
.transfer__copy .btn { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .transfer__card.is-visible .transfer__route path { animation: transfer-route 1.6s linear infinite; }
}
@keyframes transfer-route { to { stroke-dashoffset: -28; } }
@media (max-width: 899px) {
  .transfer__card { grid-template-columns: 1fr; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 80px; }
  .transfer__visual { width: min(100%, 360px); }
}
@media (max-width: 560px) {
  .transfer__card { border-radius: var(--radius) var(--radius) var(--radius) 56px; }
  .transfer__copy .btn { width: 100%; }
}

/* E2. Atención de emergencias + video ---------------------------------------- */
.care { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); }
.care::before {
  /* arco del logo, discreto, detrás del video */
  content: ""; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 70px -40px 0 rgba(92, 195, 221, 0.08); pointer-events: none;
}
.care__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.care__copy .display { max-width: 16ch; font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.25rem); }
.care__lead { margin-top: 22px; font-size: var(--fs-lg); color: var(--on-dark-soft); max-width: 46ch; }
.care__emergency {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 22px 24px;
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); box-shadow: inset 4px 0 0 var(--aqua);
}
.care__emergency-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--aqua); color: var(--navy-950); }
.care__emergency-icon .icon { width: 26px; height: 26px; }
.care__emergency h3 { color: #fff; font-size: 1.3rem; }
.care__emergency p { margin-top: 6px; color: var(--on-dark-soft); }
.care__emergency strong { color: #fff; white-space: nowrap; }
.care__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.care__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.care__list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--on-dark); font-weight: 650; font-size: 0.92rem;
}
.care__list .icon { width: 18px; height: 18px; color: var(--aqua); }

.care__video figcaption { margin-top: 14px; color: var(--on-dark-soft); font-size: var(--fs-sm); max-width: 60ch; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-950);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
}
.video-frame__media { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-frame__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit;
  background: rgba(8, 21, 61, 0.35); transition: background-color .3s;
}
.video-frame__play:hover { background: rgba(8, 21, 61, 0.2); }
.video-frame__play-icon {
  display: grid; place-items: center; flex: none; width: clamp(72px, 8vw, 96px); height: clamp(72px, 8vw, 96px); border-radius: 50%;
  background: var(--white); color: var(--navy-900); transition: transform .35s var(--ease);
}
.video-frame__play-icon .icon { width: 40%; height: 40%; margin-left: 6%; }
.video-frame__play:hover .video-frame__play-icon, .video-frame__play:focus-visible .video-frame__play-icon { transform: scale(1.08); }
.video-frame__play-text { font-weight: 800; font-size: 1.0625rem; padding: 6px 14px; border-radius: 999px; background: rgba(8, 21, 61, 0.7); }
.video-frame__play-text span { font-weight: 600; opacity: 0.85; }
.video-frame.is-playing .video-frame__play { display: none; }
/* Sin JavaScript se usan los controles nativos del video */
html:not(.js) .video-frame__play { display: none; }

@media (max-width: 999px) {
  .care__grid { grid-template-columns: 1fr; }
  .care__video { order: -1; }
}
@media (max-width: 560px) {
  .care__actions .btn { width: 100%; }
  .video-frame { border-radius: var(--radius) var(--radius) var(--radius) 64px; }
}

/* E3. Laboratorio clínico ------------------------------------------------------ */
.lab { background: var(--paper); }
.lab__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px 64px; align-items: end; }
.lab__head .display { max-width: 20ch; font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.25rem); }
.lab__lead { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 50ch; }
.lab__hero { margin-top: clamp(40px, 5vw, 64px); overflow: hidden; border-radius: var(--radius-lg); background: var(--sky-50); }
.lab__hero img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.lab__hero:hover img { transform: scale(1.02); }
.lab__hero figcaption { padding: 14px 20px; color: var(--ink-soft); font-size: var(--fs-sm); background: var(--white); }
.lab__equipment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.equip {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; overflow: hidden;
  border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.08);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.equip:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--teal-700); }
.equip__media { height: 100%; aspect-ratio: 1145 / 1374; overflow: hidden; background: var(--sky-50); }
.equip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.equip:hover .equip__media img { transform: scale(1.04); }
.equip__body { padding: clamp(20px, 2.6vw, 32px); }
.equip__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.equip__tag .icon { width: 18px; height: 18px; }
.equip__title { margin-top: 10px; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); }
.equip__body p { margin-top: 10px; color: var(--ink-soft); font-size: var(--fs-sm); }
.lab__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--sky-50);
}
.lab__cta p { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--navy-900); max-width: 34ch; }
.lab__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1099px) {
  .lab__equipment { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .lab__head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .equip { grid-template-columns: 1fr; }
  .equip__media { aspect-ratio: 1 / 1; }
  .equip__media img { object-position: 50% 58%; }
  .lab__cta-actions, .lab__cta-actions .btn { width: 100%; }
}

/* F. Banner de consulta ---------------------------------------------------- */
.consult { position: relative; background: var(--sky-50); overflow: hidden; }
.consult::before {
  content: ""; position: absolute; left: -12%; top: 18%; width: 52%; aspect-ratio: 1;
  background: var(--sky-100); border-radius: 50%;
}
.consult__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.consult__photo {
  position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-bottom: 40px; overflow: hidden;
  border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; border: 10px solid var(--navy-800);
}
.consult__photo img { width: 100%; height: 100%; object-fit: cover; }
.consult__copy .display { max-width: 12ch; }
.consult__text { margin-top: 20px; font-size: var(--fs-lg); max-width: 40ch; }
.consult__copy .btn { margin-top: 32px; }
.consult__copy .btn--accent { background: var(--navy-800); color: #fff; }
.consult__copy .btn--accent .icon:first-child { color: var(--aqua); }
.consult__copy .btn--accent:hover { background: var(--navy-950); }

.composer { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 60px -36px rgba(8, 21, 61, 0.35); }
.composer h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.035em; }
.composer__intro { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); }
.composer__pets { border: 0; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.composer__pets legend, .field label { display: block; margin-bottom: 10px; font-weight: 800; color: var(--navy-950); font-size: 0.95rem; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; background: var(--paper); color: var(--navy-900); font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--sky-100); transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 2px var(--teal-700); }
.chip input:checked + span { background: var(--navy-800); color: #fff; box-shadow: none; }
.chip input:checked + span .icon { color: var(--aqua); }
.chip input:active + span { transform: scale(0.97); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.field { margin-top: 20px; }
.field__hint { color: var(--ink-soft); font-weight: 500; }
.field select, .field input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--field); background: var(--white); font-size: 1rem; color: var(--ink); transition: border-color .2s;
}
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d205a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field select:hover, .field input:hover { border-color: var(--teal-700); }
.field select:focus-visible, .field input:focus-visible { border-color: var(--navy-800); outline-offset: 2px; }
.composer__preview { margin: 22px 0 20px; padding: 16px 18px; border-radius: 18px; background: var(--sky-50); }
.composer__preview-label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); }
.composer__preview p { margin-top: 6px; color: var(--ink); }

@media (max-width: 899px) {
  .consult__grid { grid-template-columns: 1fr; }
  .consult__photo { width: min(72%, 320px); }
}

/* G. Equipo ---------------------------------------------------------------- */
.team { background: var(--navy-900); color: var(--on-dark); overflow: hidden; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 90svh; }
.team__photo { position: relative; height: 100%; min-height: 640px; }
.team__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 0 240px 0 0; }
.team__photo figcaption {
  position: absolute; left: var(--gutter); bottom: 24px; max-width: 34ch;
  padding: 10px 16px; border-radius: 14px; background: rgba(8, 21, 61, 0.82); color: var(--on-dark); font-size: var(--fs-sm);
}
.team__copy { padding: var(--section) var(--gutter) var(--section) clamp(40px, 6vw, 104px); max-width: 680px; }
.team__copy .display { max-width: 13ch; }
.team__lead { margin-top: 24px; font-size: var(--fs-lg); color: var(--on-dark-soft); max-width: 46ch; }
.team__points { margin-top: 40px; display: grid; gap: 24px; }
.team__points li { display: flex; gap: 18px; align-items: flex-start; }
.team__points .icon { width: 54px; height: 54px; padding: 14px; border-radius: 50% 50% 50% 14px; background: var(--aqua); color: var(--navy-950); transition: transform .4s var(--ease); }
.team__points li:hover .icon { transform: rotate(-10deg) scale(1.05); }
.team__points strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.team__points span { color: var(--on-dark-soft); }

@media (max-width: 899px) {
  .team__grid { grid-template-columns: 1fr; min-height: 0; }
  .team__photo { min-height: 0; height: auto; aspect-ratio: 4 / 5; max-height: 86svh; }
  .team__photo img { border-radius: 0; }
  .team__copy { padding: 64px var(--gutter) var(--section); }
}

/* H. Opiniones ------------------------------------------------------------- */
.reviews { background: var(--paper); }
.reviews__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.reviews__summary { position: sticky; top: 108px; }
.reviews__summary .display { max-width: 11ch; }
.rating { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.rating__num { font-family: var(--font-display); font-size: clamp(5rem, 3.5rem + 4vw, 8rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.06em; color: var(--navy-800); }
.rating__meta { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 700; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__base, .stars__fill { display: flex; gap: 3px; }
.stars .icon { width: 26px; height: 26px; }
.stars__base { color: #dde3ee; }
.stars { --rating: 4.6; } /* calificación de Google: actualizar aquí y en el HTML */
.stars__fill { position: absolute; inset: 0; color: var(--star); overflow: hidden; width: calc(var(--rating) / 5 * 100%); }
.reviews__note { margin-top: 22px; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 38ch; }
.reviews__summary .btn { margin-top: 28px; }

.reviews__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.08); transition: transform .4s var(--ease);
}
.review:hover { transform: translateY(-4px); }
.review__mark { width: 40px; height: 40px; color: var(--teal); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--fs-base); color: var(--ink); }
.review--featured { grid-column: 1 / -1; background: var(--navy-800); box-shadow: none; }
.review--featured .review__mark { width: 56px; height: 56px; color: var(--aqua); }
.review--featured blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: #fff; max-width: 30ch; }
.review--short { background: var(--sky-50); box-shadow: none; }
.review--short blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--navy-950); }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review__who { display: grid; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }
.review__who strong { color: var(--navy-950); font-size: 1rem; }
.review--featured .review__who { color: var(--on-dark-soft); }
.review--featured .review__who strong { color: #fff; }
.review__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--aqua); color: var(--navy-950); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.review:not(.review--featured) .review__avatar { background: var(--navy-800); color: var(--aqua); }

@media (max-width: 899px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
}
@media (max-width: 640px) {
  .reviews__list { grid-template-columns: 1fr; }
}

/* J. Preguntas frecuentes -------------------------------------------------- */
.faq { background: var(--white); }
.faq__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.faq__head { position: sticky; top: 108px; }
.faq__head > p:last-child { margin-top: 20px; color: var(--ink-soft); max-width: 34ch; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.08); transition: background-color .3s, box-shadow .3s; }
.faq__item:hover { box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.25); }
.faq__item[open] { background: var(--sky-50); box-shadow: none; }
.faq__item summary {
  position: relative; display: flex; align-items: center; min-height: 78px; padding: 18px 78px 18px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--navy-950); cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: ""; position: absolute; right: 20px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  background: var(--white); transition: background-color .3s, transform .4s var(--ease);
}
.faq__item summary::after {
  content: ""; position: absolute; right: 32px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--navy-800), var(--navy-800)) center / 16px 2.5px no-repeat,
    linear-gradient(var(--navy-800), var(--navy-800)) center / 2.5px 16px no-repeat;
  transition: transform .4s var(--ease);
}
.faq__item[open] summary::before { background: var(--aqua); }
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item summary:hover::before { transform: scale(1.08); }
.faq__answer { padding: 0 26px 26px; max-width: 64ch; }
.faq__answer a { color: var(--teal-700); font-weight: 700; text-underline-offset: 3px; }
.faq__item[open] .faq__answer { animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__item summary { font-size: 1.0625rem; min-height: 68px; padding: 16px 70px 16px 20px; }
  .faq__answer { padding: 0 20px 22px; }
}

/* I + K. Contacto ---------------------------------------------------------- */
.contact { background: var(--white); padding: 0 clamp(8px, 1.6vw, 20px) clamp(8px, 1.6vw, 20px); }
.contact__panel {
  position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark);
  border-radius: clamp(24px, 3vw, 44px); padding-block: clamp(64px, 8vw, 132px);
}
.contact__arc { position: absolute; right: -14%; top: -30%; width: 60%; color: var(--teal); opacity: .55; transform: rotate(30deg); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__title { margin-top: 20px; font-size: clamp(2.75rem, 1rem + 5.2vw, 6rem); line-height: 0.94; letter-spacing: -0.05em; color: #fff; max-width: 12ch; }
.contact__lead { margin-top: 24px; font-size: var(--fs-lg); color: var(--on-dark-soft); max-width: 40ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.contact-list { margin-top: 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--aqua); }
.contact-list__label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); }
.contact-list address, .contact-list__value { display: block; margin-top: 6px; font-size: 1.0625rem; font-weight: 600; color: #fff; line-height: 1.5; }
.contact-list__value { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; text-decoration: none; line-height: 1.1; }
.contact-list__value:hover, .contact-list__sub:hover { color: var(--aqua); }
.contact-list__sub { display: inline-block; margin-top: 8px; color: var(--on-dark-soft); font-weight: 700; text-underline-offset: 4px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--on-dark); font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.18); }
.copy-btn .icon { width: 18px; height: 18px; }
.copy-btn.is-done { background: var(--aqua); color: var(--navy-950); }

.contact__media { position: relative; padding: 0 0 56px 56px; }
.contact__map { aspect-ratio: 1; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--navy-800); }
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding: 16% 12% 36%; color: var(--on-dark);
  background: var(--navy-800);
}
.map-consent__icon { width: 40px; height: 40px; flex: none; color: var(--aqua); }
@media (max-width: 420px) { .map-consent__icon { display: none; } .map-consent__text { font-size: 0.85rem; } }
.map-consent__title { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.map-consent__text { margin-top: 10px; font-size: 0.92rem; color: var(--on-dark-soft); max-width: 36ch; }
.map-consent__text a { color: var(--aqua); font-weight: 700; }
.map-consent__btn { margin-top: 14px; }
.map-consent__remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.875rem; color: var(--on-dark-soft); cursor: pointer; }
.map-consent__remember input { width: 18px; height: 18px; accent-color: var(--teal); }
.contact__pet {
  position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 1; object-fit: cover; object-position: 55% 50%;
  border-radius: 50%; border: 8px solid var(--navy-900);
}
.contact__maplink {
  position: absolute; right: 16px; bottom: 76px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--navy-900); font-weight: 750; font-size: 0.9rem; text-decoration: none;
  box-shadow: var(--float); transition: transform .3s var(--ease);
}
.contact__maplink:hover { transform: translateY(-3px); }
.contact__maplink .icon { width: 16px; height: 16px; }

@media (max-width: 999px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__media { max-width: 560px; width: 100%; }
}
@media (max-width: 560px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact__actions .btn { width: 100%; }
  .contact__media { padding: 0 0 40px 24px; }
  .contact__maplink { bottom: 56px; right: 8px; }
}

/* L. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--white); padding-top: clamp(56px, 6vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr; gap: 48px; }
.footer__brand img { width: 176px; mix-blend-mode: multiply; }
.footer__brand p { margin-top: 18px; color: var(--ink-soft); max-width: 36ch; }
.footer__title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); }
.footer__nav ul { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.footer__nav a, .footer__contact a { color: var(--ink); text-decoration: none; font-weight: 600; transition: color .2s; }
.footer__nav a { display: inline-block; padding: 6px 0; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }
.footer__contact ul { margin-top: 18px; display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: var(--teal-700); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-block: 24px 32px; color: var(--ink-soft); font-size: 0.9rem; }
.footer__credits a { color: inherit; }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { padding-bottom: 100px; }
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a, .footer__cookies { color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sky-100); }
.footer__legal a:hover, .footer__cookies:hover { color: var(--teal-700); text-decoration-color: currentColor; }
.footer__cookies { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; cursor: pointer; }

/* Diálogo de preferencias de cookies */
.cookie-dialog {
  width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(8, 21, 61, 0.55);
}
.cookie-dialog::backdrop { background: rgba(8, 21, 61, 0.55); }
.cookie-dialog__inner { padding: clamp(24px, 4vw, 40px); }
.cookie-dialog__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.cookie-dialog__inner > p { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-sm); }
.cookie-option {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sky-50); cursor: pointer;
}
.cookie-option div { display: grid; gap: 2px; }
.cookie-option strong { color: var(--navy-900); }
.cookie-option span { font-size: 0.875rem; color: var(--ink-soft); }
.cookie-option__fixed { flex: none; font-weight: 700; color: var(--teal-700) !important; }
.cookie-switch {
  appearance: none; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--field);
  position: relative; cursor: pointer; transition: background-color .25s;
}
.cookie-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(8, 21, 61, 0.3); transition: transform .25s var(--ease);
}
.cookie-switch:checked { background: var(--teal-700); }
.cookie-switch:checked::after { transform: translateX(22px); }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.cookie-dialog__more { margin-top: 18px; font-size: 0.875rem; text-align: right; }
.cookie-dialog__more a { color: var(--teal-700); font-weight: 600; }
@media (max-width: 560px) { .cookie-dialog__actions .btn { width: 100%; } }

/* Páginas legales ----------------------------------------------------------- */
.legal-header { background: var(--paper); box-shadow: 0 1px 0 rgba(13, 32, 90, 0.08); }
.legal-header .header__inner { height: 84px; }
.legal-header .header__brand img { height: 62px; }
.legal-header__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-800); text-decoration: none; }
.legal-header__back .icon { transform: rotate(180deg); }
.legal-header__back:hover { color: var(--teal-700); }
.legal-hero { background: var(--sky-50); padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.legal-hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.04em; color: var(--navy-900); }
.legal-hero p { margin-top: 18px; color: var(--ink-soft); max-width: 62ch; font-size: var(--fs-lg); }
.legal-meta { margin-top: 14px !important; font-size: var(--fs-sm) !important; }
.legal-body { padding-block: clamp(48px, 6vw, 96px); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 32px; }
.legal-toc p { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-800); }
.legal-toc ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--ink-soft); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.legal-toc a:hover { color: var(--teal-700); }
.legal-content { max-width: 72ch; }
.legal-content h2 { margin-top: 56px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--navy-900); scroll-margin-top: 24px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 28px; font-size: 1.2rem; color: var(--navy-800); }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content p { margin-top: 14px; }
.legal-content ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; }
.legal-content ul li::marker { color: var(--teal); }
.legal-content a { color: var(--teal-700); font-weight: 600; text-underline-offset: 3px; }
.legal-content table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: var(--fs-sm); }
.legal-content th, .legal-content td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--sky-100); }
.legal-content th { color: var(--navy-900); background: var(--sky-50); }
.legal-table-wrap { overflow-x: auto; }
.pending {
  display: inline; padding: 1px 6px; border-radius: 6px; background: #fff4d6; color: #6b4a00; font-weight: 700;
  box-shadow: inset 0 0 0 1px #f1d58c;
}
.legal-note {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--sky-50);
  color: var(--ink); font-size: var(--fs-sm);
}
.legal-note strong { color: var(--navy-900); }
@media (max-width: 899px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--sky-50); }
}

/* Botón flotante de WhatsApp ---------------------------------------------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal-700); color: #fff; box-shadow: var(--float);
  transition: transform .35s var(--ease), opacity .35s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(0.85); pointer-events: none; }
@media (max-width: 1099px) { .wa-float { display: grid; } }

/* Movimiento --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal--clip { opacity: 1; transform: none; clip-path: inset(14% 0 0 0); }
.js .reveal--clip img { transform: scale(1.12); }
.js .reveal--clip.is-visible { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js .reveal--clip.is-visible img { transform: scale(1); transition: transform 1.6s var(--ease) var(--d, 0s); }

.drift { animation: drift 20s ease-in-out infinite alternate; }

@keyframes intro { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop-in { from { opacity: 0; scale: 0.86; } to { opacity: 1; scale: 1; } }
@keyframes arc-in { from { opacity: 0; transform: rotate(-60deg); } to { opacity: 1; transform: rotate(-16deg); } }
@keyframes chip-in { from { opacity: 0; translate: 0 16px; scale: 0.92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes blob {
  0% { border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; }
  50% { border-radius: 46% 54% 58% 42% / 54% 42% 58% 46%; }
  100% { border-radius: 52% 48% 40% 60% / 42% 58% 42% 58%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -14px; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal--clip { opacity: 1; transform: none; clip-path: none; }
  .js .reveal--clip img { transform: none; }
}

/* Página 404 */
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--sky-50); padding-block: 64px; }
.not-found .header__brand { display: table; margin: 0 auto 32px; }
.not-found .header__brand img { height: 96px; width: auto; mix-blend-mode: multiply; }
.not-found h1 { margin-top: 16px; font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.04em; }
.not-found p:not(.eyebrow) { margin: 18px auto 0; max-width: 46ch; color: var(--ink-soft); font-size: var(--fs-lg); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.svc-group__actions .text-link { white-space: nowrap; }

/* v7 · Fotografías reales de la clínica (PDF «FInal Veterinaria») ------------- */
/* Título universitario: tarjeta junto a la foto del doctor + ventana emergente */
.doctor__frame { position: relative; }
.doctor__frame .doctor__years { bottom: -9%; }
.doctor__media .diploma-card { margin-top: clamp(64px, 7vw, 84px); }
@media (max-width: 560px) {
  .doctor__frame .doctor__years { bottom: -16%; right: -6%; width: 132px; }
  .doctor__media .diploma-card { margin-top: 96px; }
}
.diploma-card {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 360px;
  margin-top: 22px; padding: 10px 16px 10px 10px; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--white); color: var(--ink); font: inherit; box-shadow: 0 14px 30px -18px rgba(13, 32, 90, 0.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.diploma-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(13, 32, 90, 0.5); }
.diploma-card img { width: 96px; height: 72px; flex: none; object-fit: cover; border-radius: 12px; }
.diploma-card__text { display: grid; gap: 2px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.35; }
.diploma-card__text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-900); }
.diploma-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; color: var(--teal-700); }
.diploma-card__cta .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.diploma-card:hover .diploma-card__cta .icon { transform: translateX(3px); }
.diploma-dialog {
  width: min(960px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(8, 21, 61, 0.55);
}
.diploma-dialog::backdrop { background: rgba(8, 21, 61, 0.7); }
.diploma-dialog__inner { padding: clamp(16px, 3vw, 28px); }
.diploma-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.diploma-dialog__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); }
.diploma-dialog__close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: var(--sky-50); color: var(--navy-900); cursor: pointer; transition: background-color .2s;
}
.diploma-dialog__close:hover { background: var(--sky-100); }
.diploma-dialog img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--sky-50); }
.diploma-dialog p { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Atención de especies exóticas (panel del doctor) */
.doctor__exotic {
  display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: center; margin-top: 24px;
  padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06);
}
.doctor__exotic img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 45% 45%; border-radius: 16px; }
.doctor__exotic figcaption { display: grid; gap: 4px; color: var(--on-dark-soft); font-size: var(--fs-sm); }
.doctor__exotic strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }

/* Atención de emergencias (bajo el video) */
.care__photo { margin-top: 20px; }
.care__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 32%; border-radius: var(--radius-lg); }
.care__photo figcaption { margin-top: 10px; color: var(--on-dark-soft); font-size: var(--fs-sm); }

/* Tecnología y equipamiento: imagen junto al texto */
.lab__intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lab__intro .display { max-width: 16ch; font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.75rem); }
.lab__intro .lab__lead { margin-top: 22px; }
.lab__intro-media { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); }
.lab__intro-media img { display: block; width: 100%; height: auto; aspect-ratio: 1610 / 977; object-fit: contain; }
.lab__intro-media figcaption { padding: 12px 18px; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Fotografías del laboratorio clínico veterinario */
.lab__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.lab__photos figure { height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px rgba(13, 32, 90, 0.08); }
.lab__photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 55%; transition: transform .9s var(--ease); }
.lab__photos figure:hover img { transform: scale(1.03); }
.lab__photos figcaption { padding: 12px 16px 16px; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Ecografía: fotografías reales del procedimiento */
.svc-group__media--eco { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-group__media--eco .clinic-photo figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 21, 61, 0.78); color: #fff; font-size: 0.85rem; font-weight: 700;
}

@media (max-width: 999px) {
  .lab__intro { grid-template-columns: 1fr; }
  .lab__photos { grid-template-columns: 1fr 1fr; }
  .lab__photos li:last-child { grid-column: 1 / -1; }
  .lab__photos li:last-child img { aspect-ratio: 16 / 10; }
  .diploma-card { margin-inline: auto; }
}
@media (max-width: 560px) {
  .lab__photos { grid-template-columns: 1fr; }
  .lab__photos img, .lab__photos li:last-child img { aspect-ratio: 4 / 3; }
  .doctor__exotic { grid-template-columns: 110px 1fr; gap: 14px; }
}

/* v8 · Fotos reales en las tarjetas destacadas de Ultrasonidos y Atención de emergencias */
.svc--feature .svc__media img.svc__img--ultrasonidos { object-position: 50% 62%; }
.svc--feature .svc__media img.svc__img--emergencias { object-position: 55% 40%; }
