:root {
  --ink: #0d2c3f;
  --navy: #123a52;
  --navy-2: #1a4b67;
  --teal: #2b7d7b;
  --teal-l: #7cc6c2;
  --mint: #e6f3f2;
  --paper: #f6fbfb;
  --orange: #f29a4a;
  --white: #fff;
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.h2 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.02em; color: var(--navy); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 99px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: translate .2s, background-color .2s, color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { translate: 0 -2px; }
.btn-o { background: var(--orange); color: var(--ink); }
.btn-o:hover { background: #ffb06a; }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); color: var(--white); transition: background-color .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(13, 44, 63, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font: 600 1.25rem/1 var(--display); display: grid; gap: 3px; }
.brand small { font: 500 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* HERO */
.hero { position: relative; min-height: 100svh; background: var(--navy); color: var(--white); overflow: hidden; display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gut) 48px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 50% 38%, #24607e 0%, transparent 70%), radial-gradient(40% 40% at 90% 100%, rgba(124,198,194,.18), transparent 70%); }
.hero-giant { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 14vh; margin: 0; font: 700 clamp(6rem, 24vw, 22rem)/.78 var(--display); letter-spacing: -.04em; color: rgba(124,198,194,.16); text-transform: uppercase; pointer-events: none; user-select: none; }
.hero-giant span:last-child { color: transparent; -webkit-text-stroke: 2px rgba(124,198,194,.4); }
.tag-wrap { position: relative; justify-self: center; align-self: start; display: flex; flex-direction: column; align-items: center; margin-top: -110px; }
.tag-cord { width: 3px; height: clamp(90px, 14vh, 150px); background: linear-gradient(var(--orange), #c86f24); border-radius: 2px; }
.tag { --s: clamp(240px, 24vw, 350px); position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; padding: 0; background: radial-gradient(circle at 30% 25%, #b9e3e0, var(--teal) 55%, #1f5f5e); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 -8px 18px rgba(0,0,0,.25), inset 0 6px 14px rgba(255,255,255,.35); transform-origin: 50% -40px; }
.tag-ring { position: absolute; left: 50%; top: -22px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; border: 6px solid #d9e9e8; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.tag img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 4px solid rgba(255,255,255,.55); filter: saturate(.95) contrast(1.05); }
.tag-text { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: spin 40s linear infinite; }
.tag-text text { font: 700 8.6px var(--body); letter-spacing: .2em; fill: var(--ink); }
@keyframes spin { to { rotate: 360deg; } }
.hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: 32px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.8rem); letter-spacing: -.02em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 18px; max-width: 46ch; font-size: 1.1rem; color: #d3e7ec; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.kicker { margin-bottom: 18px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: .9rem; font-weight: 500; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #9fb3bd; }
.status.is-open i { background: #6fe3a5; box-shadow: 0 0 0 4px rgba(111,227,165,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111,227,165,0); } }

/* Banda */
.band { background: var(--orange); color: var(--ink); overflow: hidden; padding: 16px 0; }
.band-track { display: flex; gap: 48px; width: max-content; animation: band 30s linear infinite; font: 600 clamp(1.2rem, 2.4vw, 1.8rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.band-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.band-track span::after { content: "✚"; font-size: .7em; color: var(--navy); }
@keyframes band { to { translate: -50% 0; } }

/* Horarios */
.hours { padding: clamp(80px, 12vw, 160px) 0; background: var(--paper); }
.hours-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.hours-big { font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -.03em; color: var(--navy); }
.hours-big.is-open { color: var(--teal); }
.hours-next { margin-top: 16px; font-size: 1.25rem; color: var(--navy-2); }
.urg { margin-top: 40px; padding: 28px; border-radius: 28px; background: var(--navy); color: #dcebef; display: grid; gap: 20px; justify-items: start; }
.urg strong { color: var(--white); }
.hours-board { background: var(--white); border-radius: 28px; padding: 8px 28px; box-shadow: 0 24px 50px -30px rgba(18,58,82,.45); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1.5px dashed #c5dcdc; font-size: 1.1rem; }
.row:last-child { border-bottom: 0; }
.row span:first-child { font-weight: 700; }
.row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.row.is-today { position: relative; color: var(--teal); }
.row.is-today span:first-child::after { content: "Hoy"; margin-left: 10px; padding: 3px 9px; border-radius: 99px; background: var(--teal); color: var(--white); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.row-24 { color: #b3561a; }

/* Servicios */
.services { padding: clamp(80px, 10vw, 140px) 0; background: var(--mint); }
.sec-head { margin-bottom: 56px; }
.serv-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.serv { grid-column: span 4; background: var(--white); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.serv h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--navy); }
.serv p { color: #355466; }
.serv-n { font: 600 .85rem/1 var(--body); color: var(--teal); letter-spacing: .1em; margin-bottom: auto; }
.serv-big { grid-column: span 8; grid-row: span 2; padding: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto; background: var(--navy); color: var(--white); }
.serv-big img { width: 100%; height: 100%; min-height: 320px; max-height: 460px; object-fit: cover; object-position: 50% 30%; }
.serv-big > div { padding: 32px; display: grid; gap: 10px; }
.serv-big h3 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.6rem); }
.serv-big p { color: #cfe2e8; max-width: 52ch; }
.serv-food { grid-column: span 8; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; }
.serv-food img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.serv-food > div { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

/* Fichas apiladas */
.files { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy); color: var(--white); }
.files-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.files-head { position: sticky; top: 120px; }
.files-head .eyebrow { color: var(--teal-l); }
.files-head .h2 { color: var(--white); }
.files-head p:last-child { margin-top: 24px; color: #c4dbe2; max-width: 30ch; }
.files-stack { display: grid; gap: 40px; }
.file { position: sticky; top: 110px; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--paper); color: var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); min-height: 380px; }
.file:nth-child(2) { top: 130px; } .file:nth-child(3) { top: 150px; } .file:nth-child(4) { top: 170px; }
.file img { width: 100%; height: 100%; object-fit: cover; }
.file-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; border-left: 6px solid var(--orange); }
.file-id { font: 500 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.file-id b { display: block; margin-top: 10px; font: 600 clamp(2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--navy); }
.file dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding: 14px 0; border-block: 1.5px dashed #c5dcdc; font-size: .95rem; }
.file dt { font-weight: 700; color: var(--teal); }
.file dd { margin: 0; }
.file-body > p:last-child { color: #355466; }

/* El médico */
.doc { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.doc-photo { position: relative; min-height: 100%; }
.doc-photo img { position: sticky; top: 0; width: 100%; height: 100svh; object-fit: cover; object-position: 50% 40%; }
.doc-text { padding: clamp(64px, 9vw, 140px) var(--gut); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.doc-quote { margin: 0; }
.doc-quote p { font: 500 clamp(1.9rem, 3.6vw, 3.4rem)/1.08 var(--display); color: var(--navy); letter-spacing: -.01em; }
.doc-name { font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--teal); }
.doc-text > p { color: #355466; max-width: 46ch; }
.doc-cat { margin: 16px 0 0; width: min(260px, 70%); align-self: flex-end; rotate: 3deg; background: var(--white); padding: 10px 10px 14px; border-radius: 10px; box-shadow: 0 20px 40px -24px rgba(18,58,82,.6); }
.doc-cat img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.doc-cat figcaption { margin-top: 8px; font-size: .85rem; color: #4b6677; }

/* Plan Socios */
.club { padding: clamp(80px, 10vw, 150px) 0; background: var(--teal); color: var(--white); position: relative; overflow: hidden; }
.club::before { content: "SOCIOS"; position: absolute; right: -2vw; bottom: -4vw; font: 700 clamp(8rem, 22vw, 20rem)/.8 var(--display); color: rgba(255,255,255,.07); pointer-events: none; }
.club-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.club .eyebrow { color: #d8f1ef; }
.club-price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(5rem, 13vw, 11rem); letter-spacing: -.04em; }
.club-price small { font-size: .28em; letter-spacing: 0; }
.club-lead { margin-top: 12px; font-size: 1.25rem; max-width: 34ch; }
.perks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.perks li { padding: 12px 0; border-top: 1.5px solid rgba(255,255,255,.3); font-size: .98rem; }
.perks b { display: block; font: 600 1.25rem/1.1 var(--display); color: var(--white); }
.builder { background: var(--paper); color: var(--ink); border-radius: 32px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.builder-t { font: 600 1.8rem/1 var(--display); color: var(--navy); }
.slots { display: grid; gap: 12px; }
.slot { border: 1.5px solid #c5dcdc; border-radius: 20px; padding: 14px 16px; margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.slot legend { float: left; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.kind { display: flex; gap: 6px; }
.kind button { font: 600 .92rem/1 var(--body); min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #b5d2d2; background: var(--white); color: var(--ink); cursor: pointer; }
.kind button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pet-name input { width: 100%; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #b5d2d2; font: 500 .95rem var(--body); background: var(--white); color: var(--ink); }
.rm { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mint); color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.builder-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.add { font: 700 .95rem var(--body); background: none; border: 0; color: var(--teal); cursor: pointer; padding: 8px 0; }
.add:disabled { opacity: .4; cursor: not-allowed; }
.count { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.fine { font-size: .85rem; color: #4b6677; text-align: center; }

/* Turnos */
.agenda { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); color: var(--ink); --tn-accent: var(--navy); --tn-on-accent: #fff; --tn-radius: 16px; --tn-line: #c5dcdc; --tn-card: var(--paper); }
.agenda-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.agenda-head { position: sticky; top: 110px; display: grid; gap: 20px; }
.agenda-head .eyebrow { margin: 0; }
.agenda-head p:last-child { color: #355466; max-width: 36ch; }
.agenda-head a { color: var(--teal); font-weight: 700; }
.agenda .tn-go { border-radius: 99px; }

/* Cierre */
.close { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); background: var(--ink); color: var(--white); }
.close .eyebrow { color: var(--teal-l); }
.close-in { position: relative; }
.tag-sm { --s: clamp(200px, 22vw, 320px); position: absolute; right: 0; top: 0; rotate: 8deg; }
.tag-sm img { object-position: 50% 70%; }
.close-big { font-size: clamp(4rem, 14vw, 13rem); letter-spacing: -.04em; line-height: .92; }
.close-big span { color: var(--teal-l); }
.close-sub { margin-top: 36px; font-size: 1.2rem; color: #bcd3dc; }
.close-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.facts { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid rgba(255,255,255,.16); }
.facts li { padding: 22px 0; display: grid; gap: 6px; }
.facts span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-l); }
.facts b, .facts a { font: 600 1.3rem/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.facts a:hover { text-decoration: underline; }
.foot { background: var(--ink); color: #9fb8c3; border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 32px; font-size: .9rem; }
.foot-in { display: flex; align-items: center; gap: 20px; }
.foot img { border-radius: 50%; width: 56px; height: 56px; }
.foot p { margin-right: auto; }
.foot a { color: var(--white); }

/* Dock mobile */
.dock { display: none; }

/* Animación: solo con JS */
.js .reveal { opacity: 0; }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hours-grid, .files-grid, .club-grid, .agenda-grid { grid-template-columns: 1fr; }
  .files-head, .agenda-head { position: static; }
  .serv, .serv-big, .serv-food { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; }
  .doc-photo img { position: static; height: 70svh; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 76px; }
  .nav .btn-sm { display: none; }
  .hero { padding: 96px 16px 32px; min-height: auto; }
  .tag-wrap { margin-top: -96px; }
  .tag-cord { height: 120px; }
  .tag { --s: min(72vw, 290px); }
  .hero-giant { justify-content: flex-start; padding: 190px 0 0; font-size: 25vw; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-cta .btn-line:last-child { display: none; }
  .serv { min-height: 0; }
  .serv-n { margin-bottom: 8px; }
  .serv-food { grid-template-columns: 1fr; }
  .serv-food img { aspect-ratio: 4 / 3; height: auto; }
  .file { grid-template-columns: 1fr; position: static; min-height: 0; }
  .file img { aspect-ratio: 4 / 3; height: auto; }
  .file-body { border-left: 0; border-top: 6px solid var(--orange); }
  .perks { grid-template-columns: 1fr 1fr; }
  .slot { grid-template-columns: 1fr auto; }
  .slot .pet-name { grid-column: 1 / -1; grid-row: 3; }
  .slot legend { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .tag-sm { position: relative; --s: 190px; margin: 0 0 32px auto; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .dock { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 8px; border-radius: 99px; background: rgba(13,44,63,.94); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 99px; text-decoration: none; font-weight: 700; }
  .dock svg { width: 18px; height: 18px; }
  .dock-a { color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
  .dock-b { background: var(--orange); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; }
}
