:root {
  --turq: #00b4c5;
  --turq-d: #008c9a;
  --turq-l: #dff4f6;
  --ink: #121414;
  --white: #ffffff;
  --orange: #f7941d;
  --steel: #2f6a96;
  --grey: #4a5556;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --caslon: "Libre Caslon Display", Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --b: 10px;   /* borde negro del marco */
  --w: 6px;    /* filete blanco */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; font-variation-settings: "wdth" 78; line-height: .95; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 16px; height: 16px; border: 3px solid currentColor; box-shadow: inset 0 0 0 2px var(--white); background: var(--turq); flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 0 22px; border: 3px solid var(--ink); border-radius: 6px;
  font: 700 16px/1.1 var(--sans); text-decoration: none;
  transition: translate .2s ease, box-shadow .2s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--white); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--white); }
.btn-line { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-wide { width: 100%; }

/* ---------- Encabezado ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.top.solid { background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border: 3px solid var(--ink); }
.brand span { font: 400 26px/0.9 var(--caslon); display: grid; }
.brand small { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.urg { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; background: var(--orange); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; font: 800 14px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.urg span { display: none; }

/* ---------- 1 · Hero: salen del marco ---------- */
.hero { background: var(--turq); position: relative; z-index: 1; }
.hero-in {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: end;
  padding: 80px var(--pad) 26px; gap: 18px;
  overflow: hidden;
}
.hero-t {
  justify-self: stretch; align-self: start;
  font-size: clamp(54px, 15.5vw, 170px); text-align: left;
}
.hero-t span { display: block; }
.hero-t .l2 { text-align: right; }

.scene {
  --s: min(60vw, 34vh, 330px);
  position: relative; width: calc(var(--s) * 1.18); height: var(--s);
  margin-top: calc(var(--s) * .34);
  clip-path: inset(-200% -200% 0 -200%);
}
.frame { position: absolute; inset: 0; background: var(--turq); border: var(--b) solid var(--ink); box-shadow: inset 0 0 0 var(--w) var(--white); }
.frame i { position: absolute; inset: calc(var(--w) + 10px); background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 14px); }
.golden { position: absolute; z-index: 2; right: 4%; bottom: 0; height: 128%; width: auto; max-width: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }
.frame-front { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(var(--b) + var(--w)); background: linear-gradient(to bottom, var(--white) 0 var(--w), var(--ink) var(--w)); }
.pepito { position: absolute; z-index: 4; left: -9%; bottom: 0; height: 76%; width: auto; max-width: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }

.hero-side { justify-self: stretch; display: grid; gap: 12px; }
.lead { font-size: 18px; line-height: 1.4; max-width: 34ch; }
.lead b { font-weight: 700; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--sans); background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 6px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee08b; box-shadow: 0 0 0 4px rgba(62,224,139,.25); }
.hero-r { gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .brand img { animation: pop .9s cubic-bezier(.3,1.6,.5,1) both .1s; }
  .hero-t span { animation: up 1s cubic-bezier(.2,.8,.2,1) both; }
  .hero-t .l1 { animation-delay: .15s; }
  .hero-t .l2 { animation-delay: .3s; }
  .frame { animation: wipe .8s cubic-bezier(.7,0,.2,1) both .35s; }
  .frame-front { animation: fade .3s ease both .5s; }
  .golden { animation: emerge 1.1s cubic-bezier(.2,.9,.25,1.05) both 1s; }
  .pepito { animation: slidein .9s cubic-bezier(.2,.8,.2,1) both 1.55s; }
  .hero-side { animation: up .9s cubic-bezier(.2,.8,.2,1) both 1.8s; }
  .hero-r { animation-delay: 1.95s; }
}
@keyframes pop { from { scale: .4; rotate: -12deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes up { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes emerge { from { translate: 0 75%; } to { translate: 0 0; } }
@keyframes slidein { from { translate: -60px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* ---------- 2 · El local (recorrido horizontal) ---------- */
.local { position: relative; z-index: 2; background: var(--white); border-top: var(--b) solid var(--ink); }
.local-pin { padding: 64px 0 56px; overflow: hidden; }
.local-head { padding: 0 var(--pad); margin-bottom: 30px; }
.local-head .eyebrow { color: var(--turq-d); }
.local h2 { font-size: clamp(40px, 11vw, 104px); max-width: 14ch; }
.track { display: flex; gap: 18px; padding: 0 var(--pad); width: max-content; align-items: flex-start; }
.no-pin .track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.card { margin: 0; flex: none; scroll-snap-align: start; }
.card img { width: 100%; object-fit: cover; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--turq); }
.card.wide { width: min(84vw, 760px); }
.card.wide img { aspect-ratio: 4 / 3; }
.card.tall { width: min(66vw, 420px); }
.card.tall img { aspect-ratio: 4 / 5; }
.card figcaption { margin-top: 18px; font-size: 16px; color: var(--grey); max-width: 40ch; }
.card figcaption b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; }

/* ---------- 3 · La ficha ---------- */
.ficha { background: var(--turq-l); padding: clamp(70px, 10vw, 140px) var(--pad); display: grid; gap: 30px; position: relative; z-index: 2; }
.ficha h2 { font-size: clamp(42px, 11vw, 100px); max-width: 12ch; }
.ficha-copy { display: grid; gap: 8px; }
.ficha-copy p:not(.eyebrow) { max-width: 46ch; color: var(--grey); margin-top: 10px; }
.ficha-copy .eyebrow { color: var(--turq-d); }
.ficha-form { display: grid; gap: 24px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field span { display: block; font: 800 15px/1.2 var(--sans); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; min-height: 46px; padding: 0 16px;
  font: 700 15px/1 var(--sans); color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 6px;
  transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.chip:hover { translate: 0 -2px; }
.chip.on { background: var(--ink); color: #fff; }
.chip-urg { border-color: var(--ink); background: #fff3e3; }
.chip-urg.on { background: var(--orange); color: var(--ink); }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px;
  font: 600 18px/1 var(--sans); color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 6px;
}
.field input::placeholder { color: #7d8789; }

.card-ficha { background: var(--white); border: 4px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--ink); padding: 0 0 22px; display: grid; gap: 18px; align-self: start; overflow: hidden; }
.card-ficha > *:not(.cf-top) { margin: 0 22px; }
.cf-top { display: flex; align-items: center; gap: 10px; background: var(--turq); border-bottom: 4px solid var(--ink); padding: 10px 16px; font: 800 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.cf-top img { border: 2px solid var(--ink); }
.card-ficha dl { display: grid; gap: 0; }
.card-ficha dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px dashed #b9c6c7; }
.card-ficha dt { font-size: 14px; color: var(--grey); }
.card-ficha dd { margin: 0; font: 800 20px/1.1 var(--sans); text-align: right; text-transform: capitalize; overflow-wrap: anywhere; }
.cf-note { font-size: 16px; color: var(--grey); }
.card-ficha.urgent .cf-top { background: var(--orange); }

.tag { display: grid; place-items: center; padding: 26px 0 6px; }
.tag-plate {
  position: relative; width: 210px; min-height: 120px; padding: 36px 14px 18px;
  display: grid; place-items: center; gap: 6px; text-align: center;
  background: linear-gradient(145deg, #f4f7f7 0%, #c9d3d4 45%, #eef2f2 60%, #aebabb 100%);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--turq);
  transform-origin: 50% -14px;
}
.tag-plate::before { content: ""; position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; translate: -50% 0; border-radius: 50%; background: var(--turq-l); border: 3px solid var(--ink); }
.tag-plate::after { content: ""; position: absolute; top: -20px; left: 50%; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%; border: 4px solid #9aa6a7; border-bottom-color: transparent; }
.tag-plate b { font: 800 26px/1 var(--sans); font-variation-settings: "wdth" 75; letter-spacing: .06em; color: #2d3637; text-shadow: 0 1px 0 rgba(255,255,255,.7); overflow-wrap: anywhere; }
.tag-plate span { font: 700 14px/1 var(--sans); letter-spacing: .08em; color: #3a4546; }
.tag-plate.swing { animation: swing 1s cubic-bezier(.3,1.6,.5,1); }
@keyframes swing { 0% { rotate: 10deg; } 40% { rotate: -6deg; } 70% { rotate: 3deg; } 100% { rotate: 0deg; } }

/* ---------- 4 · 24 h ---------- */
.socios { background: var(--ink); color: #fff; padding: clamp(70px, 10vw, 140px) var(--pad); display: grid; gap: 26px; overflow: hidden; position: relative; z-index: 2; }
.big24 { display: flex; align-items: flex-end; gap: .04em; font: 800 clamp(170px, 56vw, 520px)/.8 var(--sans); font-variation-settings: "wdth" 75; letter-spacing: -0.05em; color: var(--turq); }
.big24 span:last-child { font-size: .38em; line-height: 1; color: var(--white); padding-bottom: .1em; }
.socios h2 { font-size: clamp(36px, 9vw, 74px); max-width: 14ch; }
.socios-copy { display: grid; gap: 18px; justify-items: start; }
.socios-copy p { max-width: 44ch; color: #cfd7d8; }
.socios-copy a:not(.btn) { color: var(--orange); font-weight: 700; }
.socios .btn-ink { background: var(--turq); color: var(--ink); border-color: var(--turq); box-shadow: 4px 4px 0 var(--white); }

/* ---------- 5 · Vacunas ---------- */
.vacunas { background: var(--steel); color: #fff; padding: clamp(70px, 10vw, 140px) var(--pad); display: grid; gap: 28px; position: relative; z-index: 2; }
.vacunas h2 { font-size: clamp(40px, 10.5vw, 96px); max-width: 13ch; }
.vac-head { display: grid; gap: 22px; align-content: start; }
.switch { display: inline-flex; justify-self: start; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.switch button { appearance: none; border: 0; cursor: pointer; min-height: 48px; padding: 0 22px; font: 800 16px/1 var(--sans); background: transparent; color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
.vac-list { list-style: none; margin: 0; padding: 0; counter-reset: v; border-top: 2px solid rgba(255,255,255,.35); }
.vac-list li { counter-increment: v; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 2px solid rgba(255,255,255,.35); }
.vac-list li::before { content: counter(v, decimal-leading-zero); grid-row: 1 / span 3; font: 800 15px/1.9 var(--sans); color: #bfe9ee; }
.vac-list b { font: 800 clamp(26px, 6.6vw, 40px)/1.05 var(--sans); font-variation-settings: "wdth" 80; }
.vac-list span { color: #e3eef5; font-size: 16px; max-width: 52ch; }
.vac-list em { justify-self: start; margin-top: 6px; font: 700 12px/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: var(--white); color: var(--ink); padding: 6px 8px; border-radius: 4px; }
.vacunas .btn { justify-self: start; }

/* ---------- 6 · Golpe de calor ---------- */
.calor { background: #1b1d1d; color: #fff; padding: clamp(70px, 10vw, 140px) var(--pad); display: grid; gap: 34px; position: relative; z-index: 2; }
.calor-img { margin: 0; border: var(--b) solid var(--orange); overflow: hidden; aspect-ratio: 631 / 545; }
.calor-img img { width: 100%; height: 116%; object-fit: cover; }
.calor-copy { display: grid; gap: 16px; justify-items: start; }
.calor .eyebrow { color: var(--orange); }
.calor .eyebrow::before { background: var(--orange); box-shadow: inset 0 0 0 2px #1b1d1d; }
.calor h2 { font-size: clamp(40px, 10.5vw, 92px); max-width: 12ch; }
.calor-copy p { max-width: 46ch; color: #d6dcdc; }
.calor ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.calor li { padding-left: 30px; position: relative; font-size: 18px; }
.calor li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: var(--orange); rotate: 45deg; }
.calor .strong { font-weight: 800; color: #fff; font-size: 20px; }
.calor .btn-orange { box-shadow: 4px 4px 0 var(--white); }

/* ---------- 7 · Contacto ---------- */
.contacto { background: var(--turq); padding: clamp(80px, 10vw, 140px) var(--pad) clamp(110px, 10vw, 140px); display: grid; gap: 34px; position: relative; z-index: 2; }
.ct-scene { --s: 120px; position: relative; width: calc(var(--s) * 1.18); height: var(--s); margin-top: 40px; clip-path: inset(-200% -200% 0 -200%); --b: 6px; --w: 4px; }
.ct-scene .golden { height: 140%; right: 6%; }
.ct-scene .frame i { inset: 8px; }
.contacto h2 { font-size: clamp(44px, 12vw, 120px); max-width: 12ch; }
.ct-grid { display: grid; gap: 26px; }
.ct-grid p:not(.eyebrow) { font-size: 18px; }
.ct-grid a { font-weight: 700; }
.link { display: inline-block; margin-top: 8px; }
.rating { display: inline-block; margin-top: 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 6px; padding: 8px 12px; text-decoration: none; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.rating b { font-size: 20px; }
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px var(--pad) 100px; font-size: 13px; background: var(--ink); color: #b7c0c1; }

/* ---------- Barra móvil ---------- */
.dock {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  transition: translate .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.dock a { min-height: 52px; display: grid; place-items: center; font: 800 15px/1 var(--sans); text-decoration: none; }
.dock a + a { border-left: 3px solid var(--ink); }
.d-wa { background: var(--ink); color: #fff; }
.d-tel { background: var(--white); color: var(--ink); }
.d-urg { background: var(--orange); color: var(--ink); }
.js .dock { translate: 0 150%; opacity: 0; }
.js .dock.show { translate: 0 0; opacity: 1; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .urg span { display: inline; }
  .hero-in { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr; column-gap: clamp(30px, 4vw, 70px); padding: 96px var(--pad) 0; }
  .hero-t { grid-column: 1 / -1; text-align: center; font-size: clamp(90px, 9.6vw, 190px); display: flex; justify-content: center; gap: .25em; }
  .hero-t .l2 { text-align: center; }
  .scene { --s: min(52vh, 30vw, 520px); grid-column: 2; grid-row: 2; margin-top: 0; }
  .hero-side { grid-row: 2; align-self: end; padding-bottom: 56px; }
  .hero-l { grid-column: 1; }
  .hero-r { grid-column: 3; justify-self: end; width: min(100%, 340px); }
  .lead { font-size: 21px; }

  .local-pin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 100px 0 60px; }
  .local-head { margin-bottom: 26px; }
  .local h2 { font-size: clamp(56px, 5.6vw, 96px); max-width: 18ch; }
  .card.wide { width: min(56vw, 76vh, 860px); }
  .card.tall { width: min(30vw, 40vh, 440px); }

  .ficha { grid-template-columns: 1.1fr 1fr; gap: 40px 80px; align-items: start; }
  .ficha-copy { grid-column: 1 / -1; }
  .card-ficha { position: sticky; top: 110px; }

  .socios { grid-template-columns: auto 1fr; align-items: end; gap: 60px; }

  .vacunas { grid-template-columns: 1fr 1.25fr; gap: 40px 80px; align-items: start; }
  .vac-head { position: sticky; top: 120px; grid-row: 1 / span 2; }
  .vacunas .btn { grid-column: 2; }

  .calor { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }

  .ct-scene { --s: 220px; }
  .ct-grid { grid-template-columns: repeat(4, 1fr); }
  .dock { display: none; }
  .pie { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.card-ficha .btn-wide { width: auto; }
