/* ==========================================================================
   Antares Clínica Veterinaria — antaresvet.com
   Ported from "Antares Sitio Interactivo.dc.html".
   The source design is a fixed desktop mock; everything below adds the
   responsive, accessible, and stateful behaviour a production site needs.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #1E2941;
  --navy-deep:   #161F33;
  --navy-mid:    #2B3950;
  --navy-hi:     #33436A;
  --navy-low:    #172137;
  --gold:        #B08D57;
  --gold-lt:     #C9A66B;

  /* Neutrals */
  --cream:       #FBFAF7;
  --sand:        #F1ECE2;
  --sand-2:      #F4EFE5;
  --line:        #E2DDD2;
  --line-2:      #D8D2C6;
  --line-3:      #C9C2B3;
  --muted:       #5A6172;
  --slate:       #9AA3B4;
  --slate-2:     #8C95A8;
  --light:       #C4CBD8;
  --nav-link:    #CFD4DE;
  --stone:       #8B8578;
  --danger:      #E4A0A0;

  /* Type */
  --serif: Marcellus, 'Times New Roman', serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  ui-monospace, Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter:  clamp(20px, 5vw, 56px);
  --section: clamp(56px, 8vw, 88px);
  --maxw:    1240px;
  --nav-h:   76px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: pretty; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-lt); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
}

input, textarea, select { font-family: var(--sans); font-size: 15px; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 22px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--navy-deep); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell { max-width: var(--maxw); margin-inline: auto; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn--gold        { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover  { background: var(--gold-lt); color: var(--navy-deep); }

.btn--ghost       { border-color: rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }

.btn--outline-gold       { border-color: var(--gold); color: var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: var(--navy-deep); }

.btn--navy       { background: var(--navy); color: #fff; width: 100%; }
.btn--navy:hover { background: var(--gold); color: var(--navy-deep); }

.btn--sm { padding: 11px 18px; font-size: 12px; letter-spacing: .08em; }

/* --------------------------------------------------------------- badge -- */

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(176,141,87,.55);
  color: var(--gold-lt);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--navy); }
.section-head--plain { border-bottom: none; padding-bottom: 0; }

.section-note { font-size: 14px; color: var(--muted); }
.section-note--gold {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ----------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 42px; width: auto; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__wordmark b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .22em;
  color: #fff;
}
.nav__wordmark span {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--gold);
  margin-top: 5px;
}

.nav__right { display: flex; align-items: center; gap: 8px; }

.nav__links { display: flex; align-items: center; }
.nav__links a {
  padding: 10px 7px;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--nav-link);
}
.nav__links a:hover { color: #fff; }

.nav__cart {
  position: relative;
  margin-left: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: border-color .2s var(--ease);
}
.nav__cart:hover { border-color: var(--gold); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: #fff;
  transition: transform .25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 100px) var(--gutter) clamp(64px, 10vw, 108px);
  background: radial-gradient(120% 90% at 78% 12%, var(--navy-hi) 0%, var(--navy) 55%, var(--navy-low) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1.4px);
  background-size: 46px 46px;
  opacity: .16;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  color: #fff;
}
.hero__lede {
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  color: var(--light);
  max-width: 520px;
  font-weight: 300;
}
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__cta .btn { padding: 16px 30px; font-size: 14px; }

.hero__address {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  max-width: 560px;
  flex-wrap: wrap;
}
.hero__address p { flex: 1; min-width: 0; font-size: 16px; color: #fff; line-height: 1.5; }
.hero__address .btn { flex: none; padding: 13px 22px; }

.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  flex-wrap: wrap;
}
/* Sized for the opening hours ("10:00–18:00"), which are longer strings
   than a short stat — three must still sit on one row on desktop. */
.hero__stats dt { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px); color: var(--gold); white-space: nowrap; }
.hero__stats dd { margin: 2px 0 0; font-size: 13px; color: var(--slate); }

/* ---------------------------------------------------- media placeholder -- */
/*  Real photos drop into these slots; until then a branded fill stands in
    so the layout never collapses or shows a broken-image icon.            */

.media {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--line) 0 10px, var(--sand-2) 10px 20px);
}
.media--dark { background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,.02) 10px 20px); }
.media img, .media picture { width: 100%; height: 100%; display: block; }
.media img { object-fit: cover; }
.media__note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
}
.media--dark .media__note { color: var(--slate); }
/* Once a real photo is in place the placeholder caption steps aside. The
   onerror handler removes the <picture>, which brings the caption back. */
.media picture + .media__note,
.media img[src]:not([src=""]) + .media__note { display: none; }
/* The lightbox shows the whole frame rather than cropping it. */
.lightbox__stage img { object-fit: contain; }

.hero__media {
  height: clamp(280px, 46vw, 470px);
  border: 1px solid rgba(255,255,255,.18);
}

/* ------------------------------------------------------------ servicios -- */

.servicios { padding: var(--section) var(--gutter); background: var(--cream); }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 1px;
}

.service {
  position: relative;
  padding: 34px 30px 38px;
  background: var(--cream);
  transition: background-color .2s var(--ease);
}
.service:hover, .service.is-open { background: var(--sand-2); }
.service__btn { display: block; width: 100%; }
/* Stretch the toggle across the whole card so the surrounding padding is
   clickable too, not just the text. */
.service__btn::after { content: ''; position: absolute; inset: 0; }
/* ...but keep the expanded panel above it, so "Agendar" stays reachable. */
.service__detail { position: relative; z-index: 1; }
/* Focus ring traces the whole card — the stretched ::after already spans it,
   so no :has() needed. */
.service__btn:focus-visible { outline: none; }
.service__btn:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.service__top { display: flex; align-items: center; justify-content: space-between; }
.service__num { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.service__sign { font-size: 20px; color: var(--gold); line-height: 1; }
.service h3 { margin: 14px 0 10px; font-size: clamp(20px, 2.4vw, 23px); color: var(--navy); }
.service p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Open by default so the content is readable without JS; the .js class
   (set inline in <head>) hands control over to the accordion. */
.service__detail {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .3s var(--ease);
}
.js .service__detail { grid-template-rows: 0fr; }
.js .service.is-open .service__detail { grid-template-rows: 1fr; }
.service__detail > div { overflow: hidden; }

.service__inner { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.service__bullets { list-style: none; margin: 0; padding: 0; }
.service__bullets li {
  display: flex;
  gap: 9px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.service__bullets li::before { content: '★'; color: var(--gold); flex: none; }
.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.service__price { font-family: var(--serif); font-size: 20px; color: var(--navy); }

.service-cta {
  background: var(--navy);
  padding: 34px 30px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.service-cta p { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 23px); color: #fff; line-height: 1.35; }
.service-cta span {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.service-cta:hover span { color: var(--gold-lt); }

/* --------------------------------------------------------------- planes -- */

.planes { padding: var(--section) var(--gutter); background: var(--navy); }
.planes .section-head { border-bottom: none; padding-bottom: 0; }
.planes h2 { color: #fff; margin-bottom: 8px; }
.planes__lede { font-size: 16px; color: var(--slate); max-width: 560px; }

.toggle { display: flex; border: 1px solid rgba(255,255,255,.22); flex: none; }
.toggle button {
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--light);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }

.planes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.plan {
  border: 1px solid rgba(255,255,255,.16);
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.plan.is-picked { border-color: var(--gold); background: rgba(176,141,87,.10); }
.plan__name { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price b { font-family: var(--serif); font-size: clamp(34px, 4vw, 42px); font-weight: 400; color: #fff; }
.plan__price span { font-size: 14px; color: var(--slate-2); }
.plan__rule { height: 1px; background: rgba(255,255,255,.14); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--light); line-height: 1.5; }
.plan li::before { content: '★'; color: var(--gold); flex: none; }
.plan__cta {
  margin-top: auto;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.plan__cta:hover { background: var(--gold); color: var(--navy-deep); }
.plan.is-picked .plan__cta { background: var(--gold); color: var(--navy-deep); }

/* --------------------------------------------------------------- tienda -- */

.tienda { padding: var(--section) var(--gutter); background: var(--cream); }

.filters { display: flex; gap: 10px; margin: 26px 0 30px; flex-wrap: wrap; }
.filters button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  color: var(--navy);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product { display: flex; flex-direction: column; gap: 12px; }
.product__media { aspect-ratio: 4 / 3; }
.product__cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product__name { font-size: 16px; color: var(--navy); font-weight: 600; line-height: 1.35; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}
.product__price { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.product__add {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  color: var(--navy);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.product__add:hover { background: var(--navy); color: #fff; }
.product__add.is-in { background: var(--navy); color: #fff; }

/* ------------------------------------------------------------ pacientes -- */

.pacientes { padding: 0 var(--gutter) var(--section); background: var(--cream); }
.pacientes h2 { margin-bottom: 24px; font-size: clamp(28px, 4vw, 38px); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery button { display: block; width: 100%; }
.gallery .media { aspect-ratio: 4 / 3; transition: outline-color .2s var(--ease); outline: 2px solid transparent; }
.gallery button:hover .media { outline-color: var(--gold); }

/* --------------------------------------------------------- testimonios -- */

.testimonios { padding: clamp(48px, 7vw, 80px) var(--gutter); background: var(--sand); }
.testimonios__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: .3em; }
.testimonios blockquote { margin: 22px 0 20px; }
.testimonios blockquote p {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.5;
  color: var(--navy);
}
.testimonios cite { font-size: 15px; color: var(--muted); font-style: normal; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.carousel-nav__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.carousel-nav__arrow:hover { border-color: var(--gold); color: var(--gold); }
/* The button itself carries the tap target; the dot is drawn by ::before.
   Padding rather than a negative inset, so adjacent targets never overlap. */
.dots { display: flex; gap: 0; }
.dots button {
  width: 28px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dots button::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-3);
  transition: background-color .2s var(--ease);
}
.dots button:hover::before { background: var(--gold-lt); }
.dots button[aria-current="true"]::before { background: var(--gold); }

/* ------------------------------------------------------------ faq + cita -- */

.contacto { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }

.faq { padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px) clamp(48px, 7vw, 80px) var(--gutter); }
.faq h2 { margin-bottom: 28px; font-size: clamp(26px, 3.4vw, 34px); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.faq__sign { font-size: 20px; color: var(--gold); flex: none; }
.faq__a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .25s var(--ease);
}
.js .faq__a { grid-template-rows: 0fr; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { font-size: 15px; color: var(--muted); line-height: 1.65; padding-bottom: 18px; }

.clinic-card { margin-top: 38px; padding: 26px 28px; background: var(--sand); }
.clinic-card h3 { font-size: 22px; color: var(--navy); }
.clinic-card address { font-size: 15px; color: var(--muted); line-height: 1.8; margin-top: 10px; font-style: normal; }
.clinic-card address a { color: var(--muted); }
.clinic-card address a:hover { color: var(--gold); }
.clinic-card .btn-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.cita { padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px); background: var(--navy); }
.cita h2 { margin-bottom: 8px; font-size: clamp(26px, 3.4vw, 34px); color: #fff; }
.cita__lede { margin-bottom: 26px; font-size: 15px; color: var(--slate); }
.cita form { display: flex; flex-direction: column; gap: 14px; }
.cita__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.cita input, .cita select, .cita textarea {
  padding: 15px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  outline: none;
  width: 100%;
  transition: border-color .2s var(--ease);
}
.cita input:focus, .cita select:focus, .cita textarea:focus { border-color: var(--gold); }
.cita input::placeholder, .cita textarea::placeholder { color: var(--slate); opacity: 1; }
.cita select { background: var(--navy); }
.cita select option { background: var(--navy); color: #fff; }
.cita textarea { min-height: 96px; resize: vertical; }
/* Keep the native date picker legible on a dark field */
.cita input[type="date"] { color-scheme: dark; }

.cita__error { font-size: 14px; color: var(--danger); min-height: 20px; }
.cita__submit { padding: 17px; font-size: 14px; }
.cita__alt { text-align: center; font-size: 14px; color: var(--slate); }
.cita__alt:hover { color: var(--gold); }

.cita__sent { animation: fadeUp .35s var(--ease) both; }
.cita__sent .mark { font-size: 48px; color: var(--gold); line-height: 1; }
.cita__sent h2 { margin: 14px 0 12px; }
.cita__sent > p { margin-bottom: 26px; font-size: 17px; line-height: 1.7; color: var(--light); }
.cita__summary {
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 15px;
  color: var(--light);
  line-height: 1.9;
}
.cita__sent-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cita__sent-actions .btn { padding: 15px 26px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- footer -- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--gutter);
  background: var(--navy-deep);
  flex-wrap: wrap;
}
.footer img { height: 36px; width: auto; }
.footer__links { display: flex; gap: 26px; font-size: 14px; color: var(--slate-2); flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--slate-2); }
.footer__links a:hover { color: var(--gold); }

/* ------------------------------------------------------------ whatsapp -- */

.wa-float {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(22,31,51,.35);
  transition: background-color .2s var(--ease);
}
.wa-float:hover { background: var(--gold-lt); color: var(--navy-deep); }
.wa-float svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* --------------------------------------------------------------- drawer -- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(22,31,51,.55);
  border: none;
  width: 100%;
  display: none;
}
.overlay.is-open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 81;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--cream);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__head h2 { font-size: 26px; color: var(--navy); }
.drawer__close { font-size: 22px; color: var(--muted); width: 36px; height: 36px; }
.drawer__close:hover { color: var(--navy); }

.cart-list { list-style: none; margin: 22px 0 0; padding: 0; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-item__media { width: 58px; height: 58px; flex: none; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-size: 15px; color: var(--navy); font-weight: 600; line-height: 1.35; }
.cart-item__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty {
  width: 32px; height: 32px;
  flex: none;
  border: 1px solid var(--line-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
@media (pointer: coarse) {
  .qty { width: 40px; height: 40px; }
}
.qty:hover { border-color: var(--gold); color: var(--gold); }
.cart-item__total { margin-left: auto; font-family: var(--serif); font-size: 17px; color: var(--navy); }

.cart-empty { font-size: 15px; color: var(--muted); padding: 14px 0; }

.drawer__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drawer__total span { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer__total b { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--navy); }
.drawer__foot .btn { margin-top: 16px; }

/* ------------------------------------------------------------ lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,21,35,.94);
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 26px);
  padding: clamp(60px, 8vw, 80px) clamp(12px, 3vw, 40px);
}
.lightbox.is-open { display: flex; }
.lightbox__arrow {
  width: 52px; height: 52px;
  flex: none;
  border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lightbox__arrow:hover { border-color: var(--gold); background: rgba(176,141,87,.15); }
.lightbox__stage {
  width: min(720px, 100%);
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(255,255,255,.25);
}
.lightbox__close {
  position: absolute;
  top: 28px; right: 34px;
  color: #fff;
  font-size: 26px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { color: var(--gold); }

/* ---------------------------------------------------------------- toast -- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 95;
  padding: 14px 24px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(22,31,51,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 1080px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .planes__grid { grid-template-columns: 1fr; }
  .planes .section-head { align-items: flex-start; }
}

@media (max-width: 920px) {
  .nav__links,
  .nav__brand .nav__wordmark { display: none; }
  .nav__toggle { display: flex; }
  .nav { --nav-h: 72px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 8px var(--gutter) 20px;
    gap: 2px;
    z-index: 59;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: clamp(220px, 52vw, 340px); }

  .contacto { grid-template-columns: 1fr; }
  .faq { padding-inline: var(--gutter); }
  .cita { padding-inline: var(--gutter); }
}

@media (max-width: 720px) {
  .servicios__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__address { flex-direction: column; align-items: stretch; }
  .hero__address .btn { width: 100%; }
  /* Two per row; the odd one out stays half-width instead of stretching. */
  .hero__stats { gap: 20px; }
  .hero__stats > div { flex: 0 1 calc(50% - 10px); }

  .cita__row { grid-template-columns: 1fr; }

  .wa-float { right: 16px; bottom: 16px; padding: 14px 18px; font-size: 13px; }

  .lightbox { flex-wrap: wrap; padding-inline: 12px; }
  .lightbox__arrow { width: 44px; height: 44px; }

  .footer { justify-content: center; text-align: center; }
  .footer__links { justify-content: center; gap: 16px; }
}

@media (max-width: 420px) {
  /* The reservation cart used to compete for this space; with it gone the
     "Agendar cita" CTA stays visible even on the narrowest phones. */
  .nav__right > .btn,
  .nav--sub > .nav__cta { padding: 12px 14px; font-size: 12px; letter-spacing: .06em; }
  .nav { padding-inline: 16px; }
}

/* ------------------------------------------------- páginas de servicio -- */

/* Service pages: brand / links / CTA are direct children of .nav (no
   .nav__right wrapper), so the strip can wrap to its own row on mobile. */
.nav__links--static { display: flex; }
.nav--sub { gap: 16px; }
.nav--sub .nav__links--static { margin-left: auto; }

.page { padding: clamp(28px, 5vw, 48px) var(--gutter) var(--section); background: var(--cream); }
.page__shell { max-width: 780px; margin-inline: auto; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }

.eyebrow--dark { border-color: rgba(176,141,87,.55); color: var(--gold); }

.page__head h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  color: var(--navy);
}
.page__lede { margin-top: 18px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 300; }
.page__price {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
}
.page__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

.page__media { aspect-ratio: 4 / 3; margin: 40px 0; }

.page__incluye { margin: 40px 0; padding: 26px 28px; background: var(--sand); }
.page__incluye h2 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.page__incluye ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.page__incluye li { display: flex; gap: 10px; font-size: 16px; color: var(--muted); line-height: 1.5; }
.page__incluye li::before { content: '★'; color: var(--gold); flex: none; }

.page__section { margin: 36px 0; }
.page__section h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--navy);
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.page__section p { font-size: 17px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.page__section p:last-child { margin-bottom: 0; }

.page__closing { margin: 48px 0 0; padding: 32px 30px; background: var(--navy); }
.page__closing h2 { font-size: 26px; color: #fff; margin-bottom: 12px; }
.page__closing p { font-size: 16px; line-height: 1.7; color: var(--light); }
.page__closing a { color: var(--gold-lt); }

.page__otros { margin-top: 48px; }
.page__otros h2 { font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.page__otros-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.page__otros-list--grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.page__otros-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--cream);
  color: var(--navy);
  transition: background-color .2s var(--ease);
}
.page__otros-list a:hover { background: var(--sand-2); color: var(--navy); }
.page__otros-list span { font-size: 17px; font-weight: 600; }
.page__otros-list small { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.page__otros-list em { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* Link out of a service card on the home page — sits above the card's
   stretched toggle overlay so it stays clickable. */
.service__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.service__more {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 0;
}
.service__more:hover { color: var(--navy); }

/* Service pages have no hamburger (they don't load app.js), so on narrow
   screens the links become a scrollable strip instead of disappearing. */
@media (max-width: 920px) {
  .nav--sub { flex-wrap: wrap; row-gap: 0; gap: 12px; }
  /* Row 1 is brand + CTA; the CTA gets pushed right on its own. */
  .nav--sub > .nav__cta { margin-left: auto; }
  .nav--sub .nav__links--static {
    margin-left: 0;
    /* Must undo the mobile drawer rules above — without resetting position
       and direction this renders as a fixed panel covering the page heading. */
    display: flex;
    position: static;
    top: auto;
    flex-direction: row;
    align-items: center;
    background: none;
    border-bottom: none;
    z-index: auto;
    order: 3;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0 0;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav--sub .nav__links--static::-webkit-scrollbar { display: none; }
  .nav--sub .nav__links--static a {
    padding: 8px 18px 8px 0;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: none;
  }
  /* The two-row sub nav is taller, so anchors need more scroll offset. */
  html:has(.nav--sub) { scroll-padding-top: 130px; }
}

/* --------------------------------------------------------------- motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------------- print -- */

@media print {
  .nav, .wa-float, .drawer, .overlay, .lightbox, .toast, .hero__cta, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .planes, .cita { background: #fff !important; color: #000; }
  .hero h1, .planes h2, .cita h2 { color: #000; }
}
