/* Layout concept: a group photo against the clinic's green wall, then the rooms a visitor walks through.
   The palette comes from the building and the scrubs: the wall, the navy and teal prints, Gracia's coral. */
:root {
  color-scheme: light;
  --wall: #cbe07b;
  --wall-soft: #e7f0c2;
  --ink: #10303a;
  --ink-2: #1a4450;
  --ink-soft: #4b646c;
  --teal: #38b6c4;
  --teal-deep: #0c7682;
  --teal-soft: #bfe6ea;
  --coral: #f2563b;
  --coral-soft: #fbc9bc;
  --urgent: #d92c1c;
  --urgent-line: #ffffff59;
  --paper: #fbfcf6;
  --white: #ffffff;
  --line: #d8e0cf;

  --display: "Gabarito", "Helvetica Neue", Arial, sans-serif;
  --dw: 700;
  --dt: -.02em;
  --h1: 15.4vw;
  --h1m: 21vw;
  --ov: -.25;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --leaf: 0 clamp(48px, 9vw, 120px) 0 clamp(48px, 9vw, 120px);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wide: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h2 { font: var(--dw) clamp(40px, 6vw, 84px)/1 var(--display); text-wrap: balance; letter-spacing: var(--dt); }
h3 { font: var(--dw) clamp(24px, 2.4vw, 32px)/1.12 var(--display); text-wrap: balance; letter-spacing: calc(var(--dt) * .5); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.band { padding: clamp(64px, 9vw, 128px) var(--gutter-r) clamp(64px, 9vw, 128px) var(--gutter); }
.inner { max-width: var(--wide); margin-inline: auto; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }
.label { font: 500 13px/1.3 var(--mono); letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; background: var(--ink); color: var(--white); border: 2px solid var(--ink); cursor: pointer; transition: background .15s, color .15s; font-family: var(--body); }
.btn:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.arrow { text-decoration: none; font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.arrow:hover { color: var(--teal-deep); }
.glyph { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 1px solid #ffffff1f; padding-inline: var(--gutter) var(--gutter-r); }
.top-in { max-width: 1680px; margin-inline: auto; display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { flex: none; }
.logo img { width: 158px; height: auto; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--wall); }
.top .btn { background: var(--wall); border-color: var(--wall); color: var(--ink); }
.top .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.top .btn.ghost { background: transparent; border-color: #ffffff80; color: var(--white); }
.top .btn.ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.top-cta { display: flex; gap: 10px; align-items: center; }
.top-cta .btn { min-height: 42px; padding: 7px 18px; font-size: 15px; white-space: nowrap; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; background: var(--wall); overflow-x: clip; padding-top: clamp(18px, 2.4vw, 34px); }
.hero-meta { position: relative; z-index: 6; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; padding-inline: var(--gutter) var(--gutter-r); max-width: 1680px; margin-inline: auto; font-size: clamp(16px, 1.45vw, 20px); font-weight: 500; }
.hero-meta > p { max-width: 36em; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 8px 16px 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; }
.status-wrap { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.map-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 16px 6px 12px; border: 2px solid var(--white); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 15px/1.1 var(--body); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.map-pill .glyph { font-size: 17px; color: var(--teal-deep); }
.map-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.map-pill:hover .glyph { color: var(--white); }
.urg-toggle { white-space: nowrap; }
.urg-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 16px; border: 2px solid var(--urgent); border-radius: 999px; background: var(--urgent); color: var(--white); font: 600 15px/1.1 var(--body); cursor: pointer; transition: background .15s, color .15s; }
.urg-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.urg-toggle i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s, translate .2s; }
.urg-toggle[aria-expanded="true"] i { rotate: 225deg; translate: 0 2px; }
.drawer { position: absolute; top: 100%; right: 0; margin-top: 8px; width: min(430px, calc(100vw - 32px)); display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1), visibility .28s; }
.drawer.open { grid-template-rows: 1fr; visibility: visible; }
.drawer-in { min-height: 0; overflow: hidden; border-radius: 0 0 22px 22px; box-shadow: 0 14px 30px #10303a40; }
.drawer-body { background: var(--urgent); color: var(--white); padding: 18px 22px 20px; }
.drawer-body .label { display: block; }
.drawer-body ul { margin-top: 12px; }
.drawer-body li { padding: 11px 0; border-top: 1px solid var(--urgent-line); font-size: 15px; line-height: 1.35; }
.drawer-body li b { display: block; font-weight: 700; font-size: 16px; }
.drawer-body li a { display: inline-block; margin-top: 2px; font: var(--dw) 25px/1.2 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.drawer-body li a:hover { text-decoration: underline; }
.drawer-body .mail { padding-top: 11px; border-top: 1px solid var(--urgent-line); font-size: 15px; line-height: 1.35; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--wall); flex: none; }
.status.closed i { background: var(--coral); }
.hero h1 { font: var(--dw) min(var(--h1), 290px)/.98 var(--display); letter-spacing: var(--dt); text-align: center; white-space: nowrap; margin-top: -8px; position: relative; z-index: 1; }
.lineup { position: relative; z-index: 2; clip-path: inset(-100vh -100vw 0 -100vw); max-width: 1760px; margin: calc(min(var(--h1), 290px) * var(--ov)) auto 0; aspect-ratio: 1280 / 270; }
.who { position: absolute; top: var(--t); left: var(--l); width: var(--w); z-index: var(--z); display: block; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.who img { width: 100%; height: auto; }
/* Begoña's photo stops at the chest: her dark top carries on behind her neighbours. */
.who.fill::after { content: ""; position: absolute; z-index: -1; left: 34%; right: 22%; top: 94%; height: 60%; background: #1c2a30; }
/* Gracia's photo is cropped hard at its left edge: soften it so it doesn't show as a straight seam. */
img[src$="gracia.webp"] { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%); mask-image: linear-gradient(to right, transparent 0, #000 9%); }
.who:hover, .who:focus-visible { transform: translateY(-10px); }
.who .tag { position: absolute; left: 50%; top: var(--tagtop, -6px); translate: -50% 0; background: var(--white); color: var(--ink); padding: 5px 12px; border-radius: 999px; font: 500 13px/1.2 var(--mono); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; box-shadow: 0 2px 0 var(--ink); }
.who:hover .tag, .who:focus-visible .tag { opacity: 1; }
/* Starts only once the browser is painting frames, so the resting state is always the finished group photo. */
.lineup.go .who { animation: rise .8s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--d); }
@keyframes rise { from { transform: translateY(70px); } }

.actions { background: var(--ink); color: var(--white); padding-inline: var(--gutter) var(--gutter-r); position: relative; z-index: 3; }
.actions-in { max-width: 1680px; margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 16px 40px; align-items: center; padding-block: 22px; }
.actions dt { font: 500 13px/1.3 var(--mono); color: var(--wall); letter-spacing: .04em; margin-bottom: 4px; }
.actions dd { font-size: 17px; line-height: 1.35; }
.actions .phone { font: var(--dw) clamp(26px, 2.6vw, 36px)/1.1 var(--display); text-decoration: none; color: var(--white); white-space: nowrap; }
.actions .phone:hover { color: var(--wall); }
.actions .alt { display: inline-block; margin-left: 14px; font-size: 16px; white-space: nowrap; }
.actions .btn { background: var(--wall); border-color: var(--wall); color: var(--ink); }
.actions .btn:hover { background: var(--coral); border-color: var(--coral); }
.hem { height: 60px; background-color: var(--ink); background-image: var(--print); background-size: 300px 300px; background-position: center; }

/* chooser */
.pick-head { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 24px 48px; align-items: end; }
.search { display: grid; gap: 8px; }
.search label { font-weight: 600; font-size: 15px; }
.search input { width: 100%; min-height: 54px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font: 400 17px var(--body); }
.search input::placeholder { color: var(--ink-soft); }
.chips { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 6px 12px; background: var(--white); border: 2px solid var(--line); color: var(--ink); font: 600 15px/1.15 var(--body); cursor: pointer; border-radius: 18px; text-align: center; transition: background .15s, border-color .15s, transform .15s; min-width: 0; }
.chip .glyph { font-size: 40px; }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--wall); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.p-media { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--leaf); overflow: hidden; background: var(--teal-soft); }
.p-media > img.ph { width: 100%; height: 100%; object-fit: cover; }
.p-media .big-glyph { position: absolute; inset: 0; margin: auto; font-size: clamp(120px, 17vw, 240px); color: var(--white); }
.p-copy { min-width: 0; }
.p-copy h3 { font-size: clamp(30px, 3.6vw, 48px); }
.p-copy .p-text { margin-top: 16px; max-width: 36em; font-size: 18px; }
.all-vets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; line-height: 1.3; }
.all-vets p { flex: 1 1 14em; min-width: 0; }
.faces { display: flex; flex: none; }
.faces .av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: block; position: relative; background: var(--wall); border: 2px solid var(--paper); }
.faces .av + .av { margin-left: -12px; }
.faces .av img { position: absolute; width: 150%; max-width: none; left: -25%; top: -2%; }
.p-more { margin-top: 14px; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.g-head strong { font-weight: 700; }
.g-list { columns: 2; column-gap: 32px; }
.g-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.g-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; }
.g-list a:hover { color: var(--teal-deep); text-decoration: underline; }
.g-list small { font: 400 12px/1.8 var(--mono); color: var(--ink-soft); white-space: nowrap; }
.g-more { margin-top: 14px; }
.g-empty { padding: 18px 0; max-width: 34em; }

/* felina */
.felina { background: var(--ink); color: var(--white); }
.felina a { color: inherit; }
.fel-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.felina h2 { color: var(--wall); font-size: clamp(42px, 7vw, 104px); }
.fel-head .lede { margin-top: 24px; }
.cert { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.cert img { background: var(--white); padding: 6px; width: 96px; height: auto; }
.cert p { font-size: 16px; line-height: 1.45; }
.cert strong { display: block; font: var(--dw) 21px/1.15 var(--display); color: var(--wall); margin-bottom: 8px; }
.route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(48px, 6vw, 88px); }
.route li { display: grid; gap: 14px; align-content: start; }
.route li:nth-child(2) { margin-top: 56px; }
.route li:nth-child(3) { margin-top: 112px; }
.route li:nth-child(4) { margin-top: 56px; }
.route img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.route li:nth-child(1) img { border-top-left-radius: clamp(40px, 7vw, 96px); }
.route li:nth-child(4) img { border-bottom-right-radius: clamp(40px, 7vw, 96px); }
.route .step { display: flex; gap: 12px; align-items: baseline; }
.route .n { font: var(--dw) 28px/1 var(--display); color: var(--teal); flex: none; }
.route b { display: block; font-weight: 600; font-size: 18px; line-height: 1.25; }
.route span.d { display: block; font-size: 15px; line-height: 1.4; color: var(--teal-soft); margin-top: 2px; }
.fel-foot { display: grid; gap: clamp(24px, 3vw, 40px); margin-top: clamp(56px, 7vw, 96px); }
.lurdes { background: var(--ink-2); padding: clamp(20px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.l-photo { min-width: 0; }
.l-photo img { width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 0 clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.l-photo figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--teal-soft); font-style: italic; }
.l-bio { min-width: 0; display: grid; gap: 12px; max-width: 40em; }
.l-role { font: 500 13.5px/1.35 var(--mono); color: var(--wall); }
.lurdes h3 { color: var(--white); font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.l-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; font-weight: 500; }
.l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.l-tags li { padding: 5px 12px; border: 1px solid #ffffff4d; border-radius: 999px; font-size: 14px; line-height: 1.25; }
.l-more a:hover { color: var(--wall); }
.ledger { grid-column: 1 / -1; padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid #ffffff33; min-width: 0; }
.ledger h4 { margin: 0; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -.01em; color: var(--white); }
.ledger dl { margin-top: 10px; display: grid; grid-template-columns: repeat(2, auto minmax(0, 1fr)); gap: 0 18px; }
.ledger dt, .ledger dd { padding: 8px 0; border-top: 1px solid #ffffff24; font-size: 15.5px; line-height: 1.35; }
.ledger dt { font-family: var(--mono); color: var(--wall); font-variant-numeric: tabular-nums; }
.home-visit { background: var(--wall); color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: 0 clamp(48px, 8vw, 110px) 0 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px clamp(24px, 3.5vw, 56px); align-items: center; }
.home-visit a { color: var(--white); }
.home-visit a:hover { color: var(--ink); }
.home-visit h3 { font-size: clamp(30px, 3.6vw, 46px); }
.home-visit small { font-size: 15px; line-height: 1.4; display: block; }

/* servicios */
.serv-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 64px); align-items: start; }
.serv-list li { border-top: 1px solid var(--line); }
.serv-list li:last-child { border-bottom: 1px solid var(--line); }
.serv-btn { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; background: none; border: 0; color: var(--ink); font: 500 clamp(21px, 2.1vw, 28px)/1.2 var(--body); text-align: left; cursor: pointer; transition: padding .18s; }
.serv-btn:hover { color: var(--teal-deep); }
.serv-btn[aria-expanded="true"] { padding-left: 14px; background: var(--wall); color: var(--ink); }
.serv-btn small { font: 400 12px/1.3 var(--mono); color: var(--ink-soft); white-space: nowrap; padding-right: 10px; }
.serv-card { position: sticky; top: 100px; }
.serv-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--leaf); background: var(--wall-soft); }
.serv-card h3 { margin-top: 20px; }
.serv-card p { margin-top: 8px; max-width: 34em; }
.serv-card .arrow { display: inline-block; margin-top: 12px; }

/* equipo */
.team { background: var(--white); }
.team-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.8vw, 24px); margin-top: clamp(32px, 5vw, 64px); }
.member { display: block; text-decoration: none; scroll-margin-top: 100px; }
.m-tile { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--tile); border-radius: 0 clamp(36px, 5vw, 72px) 0 0; }
.m-tile img { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: var(--iw, 92%); max-width: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.member:hover .m-tile img { transform: scale(1.04); }
.member h3 { font: 600 19px/1.2 var(--body); margin-top: 12px; }
.member:hover h3 { text-decoration: underline; }
.m-id { font: 400 13px/1.35 var(--mono); color: var(--teal-deep); margin-top: 3px; }
.member p { font-size: 15.5px; line-height: 1.4; margin-top: 6px; color: var(--ink-soft); }

/* instalaciones */
.rooms { background: var(--wall-soft); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.mosaic figure { position: relative; overflow: hidden; min-width: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--white); padding: 3px 10px; font: 500 13px/1.35 var(--mono); max-width: calc(100% - 20px); }
.mosaic .a { grid-column: span 7; grid-row: span 2; border-top-left-radius: clamp(48px, 9vw, 120px); }
.mosaic .a img { height: 100%; aspect-ratio: auto; position: absolute; inset: 0; object-position: 100% 100%; }
.mosaic .b { grid-column: span 5; }
.mosaic .c { grid-column: span 5; }
.mosaic .d, .mosaic .e, .mosaic .f { grid-column: span 4; }
.mosaic .f { border-bottom-right-radius: clamp(48px, 9vw, 120px); }

/* visita */
.visit-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); align-items: stretch; }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 10px; }
.hours th, .hours td { padding: 9px 8px; text-align: left; font-weight: 400; border-top: 1px solid var(--line); }
.hours td { text-align: right; font-family: var(--mono); font-size: 15px; }
.hours tr.today th, .hours tr.today td { background: var(--wall); font-weight: 600; }
.hours .note { margin-top: 16px; font-size: 16px; }
.contact-lines { margin-top: 16px; display: grid; gap: 4px; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.urg { background: var(--wall-soft); padding: clamp(20px, 2.4vw, 32px); }
.urg.alert { background: var(--urgent); color: var(--white); }
.urg.alert li { border-top-color: var(--urgent-line); }
.urg .label { display: block; margin-bottom: 8px; }
.urg ul { margin-top: 14px; display: grid; gap: 0; }
.urg li { padding: 12px 0; border-top: 1px solid #10303a33; line-height: 1.35; font-size: 16px; }
.urg li b { display: block; font-weight: 700; }
.urg li a { font: var(--dw) 22px/1.3 var(--display); text-decoration: none; display: inline-block; margin-top: 2px; }
.urg li a:hover { text-decoration: underline; }
.where { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.where iframe { flex: 1; width: 100%; min-height: 320px; border: 0; background: var(--wall-soft); border-radius: 0 clamp(48px, 7vw, 96px) 0 0; }

/* footer */
.foot { background: var(--ink); color: var(--white); padding: 56px var(--gutter-r) 40px var(--gutter); }
.foot a { color: inherit; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px 48px; }
.foot-logo { width: 200px; height: auto; }
.foot-grid p { margin-top: 16px; font-size: 16px; max-width: 30em; }
.foot ul { display: grid; gap: 6px; font-size: 16px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-grid p.langs { font: var(--dw) clamp(22px, 2.4vw, 30px)/1.25 var(--display); color: var(--wall); margin-top: 0; }
.foot-end { margin-top: 40px; padding-top: 16px; border-top: 1px solid #ffffff2b; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

/* phone call bar */
.callbar { display: none; }

@media (max-width: 1360px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; gap: 0; padding: 8px var(--gutter-r) 16px var(--gutter); margin: 0; border-top: 1px solid #ffffff1f; box-shadow: 0 12px 20px #10303a40; font-size: 19px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .top-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1120px) {
  .hero-meta > p, .status-wrap { width: 100%; }
  .status-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .pill-row { justify-content: flex-start; }
  .drawer { right: auto; left: 0; }
  .hero h1 { margin-top: clamp(4px, 1vw, 16px); }
  .actions-in { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .where { grid-column: 1 / -1; }
  .where iframe { min-height: 360px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; padding-bottom: 66px; }
  .logo img { width: 128px; }
  .top-in { min-height: 62px; gap: 10px; }
  .top-cta .call { display: none; }
  .top-cta .btn { min-height: 38px; padding: 5px 14px; font-size: 14px; }
  html { scroll-padding-top: 72px; }
  .status-wrap { flex-direction: column; align-items: flex-start; }
  .drawer { position: static; margin-top: 0; width: 100%; }
  .map-pill, .urg-toggle { padding-inline: 11px; font-size: 14px; gap: 7px; }
  .map-pill { padding-left: 9px; }
  .hero h1 { font-size: var(--h1m); line-height: .95; white-space: normal; text-align: left; padding-inline: var(--gutter) var(--gutter-r); margin-top: 14px; }
  .hero h1 span { display: block; white-space: nowrap; }
  .lineup { margin-top: -2vw; aspect-ratio: 390 / 215; }
  .who { left: var(--lm); width: var(--wm); top: var(--tm); z-index: var(--zm); }
  .who .tag { display: none; }
  .actions-in { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 20px; }
  .actions .alt { display: block; margin: 2px 0 0; }
  .actions .btn { justify-content: center; }
  .hem { height: 44px; }
  .pick-head { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .chip { padding: 10px 2px 8px; font-size: 13px; border-radius: 14px; }
  .chip .glyph { font-size: 32px; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .g-list { columns: 1; }
  .fel-head { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route li:nth-child(n) { margin-top: 0; }
  .route li:nth-child(even) { margin-top: 36px; }
  .lurdes, .home-visit { grid-template-columns: minmax(0, 1fr); }
  .ledger dl { grid-template-columns: auto minmax(0, 1fr); }
  .serv-grid { grid-template-columns: minmax(0, 1fr); }
  .serv-aside { display: none; }
  .serv-list .serv-card { position: static; padding: 6px 0 22px; }
  .team-head { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .a, .mosaic .b, .mosaic .c { grid-column: span 12; grid-row: auto; }
  .mosaic .a img { position: static; aspect-ratio: 3 / 2; }
  .mosaic .d, .mosaic .e { grid-column: span 6; }
  .mosaic .f { grid-column: span 12; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .callbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: var(--white); box-shadow: 0 -2px 12px #10303a26; }
  .callbar .btn { justify-content: center; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lineup.go .who { animation: none; }
  .drawer, .urg-toggle i { transition: none; }
  .who { transition: none; }
  .m-tile img, .chip, .serv-btn { transition: none; }
}

/* Mis mascotas login */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login { display: flex; align-items: center; gap: 5px; padding: 4px; border: 2px solid #ffffff4d; border-radius: 999px; }
.login input { width: 112px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 400 14px var(--body); }
.login input::placeholder { color: var(--ink-soft); }
.login .login-go { min-height: 32px; padding: 3px 13px; background: var(--teal); border-color: var(--teal); color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.login .login-go:hover { background: var(--white); border-color: var(--white); }
.login-toggle { display: none; }
@media (max-width: 1040px) {
  .login-toggle { display: inline-flex; }
  .login { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 2; flex-wrap: wrap; gap: 8px; padding: 12px var(--gutter-r) 14px var(--gutter); background: var(--ink); border: 0; border-top: 1px solid #ffffff1f; border-radius: 0; box-shadow: 0 12px 20px #10303a40; }
  .login.open { display: flex; }
  .login input { flex: 1 1 140px; width: auto; height: 46px; font-size: 16px; }
  .login .login-go { flex: 1 1 100%; min-height: 46px; justify-content: center; font-size: 15.5px; }
}
/* On the homepage the login sits in the hero, above the intro line. Phones open it from the header button. */
.hero-left { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.hero .login { position: static; display: flex; flex-wrap: nowrap; padding: 5px; background: var(--ink); border: 0; border-radius: 999px; box-shadow: none; }
.hero .login input { flex: none; width: 124px; height: 36px; font-size: 15px; }
.hero .login .login-go { flex: none; min-height: 36px; font-size: 14px; }
.login-toggle.for-hero { display: none; }
@media (min-width: 1041px) and (max-width: 1360px) {
  .home .nav { display: flex; position: static; flex-direction: row; gap: clamp(14px, 1.8vw, 28px); padding: 0; margin-left: auto; background: none; border: 0; box-shadow: none; font-size: 16px; }
  .home .nav a { padding: 6px 0; }
  .home .top-cta { margin-left: 0; }
  .home .menu-btn { display: none; }
}
@media (max-width: 760px) {
  .login-toggle.for-hero { display: inline-flex; }
  .hero-left { width: 100%; }
  .hero .login { display: none; flex-wrap: wrap; gap: 8px; width: 100%; padding: 10px; border-radius: 24px; }
  .hero .login.open { display: flex; }
  .hero .login input { flex: 1 1 120px; width: auto; min-width: 0; height: 46px; font-size: 16px; }
  .hero .login .login-go { flex: 1 1 100%; min-height: 46px; justify-content: center; font-size: 15.5px; }
}
.rooms-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }

/* Inner pages */
.page-head { background: var(--wall); padding: clamp(32px, 5vw, 72px) var(--gutter-r) clamp(32px, 5vw, 64px) var(--gutter); }
.page-head h1 { font: var(--dw) clamp(46px, 8vw, 112px)/1 var(--display); letter-spacing: var(--dt); text-wrap: balance; }
.page-head .lede { margin-top: 16px; }
.eyebrow { font: 500 14px/1.35 var(--mono); margin-bottom: 10px; }
.eyebrow a { text-underline-offset: 3px; }
.prose p { margin-top: .85em; max-width: 42em; }
.prose p:first-child { margin-top: 0; }
.prose ul { margin-top: .85em; max-width: 42em; }
.prose li { padding: 7px 0 7px 18px; border-top: 1px solid var(--line); position: relative; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Servicios */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 84px; align-items: start; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--leaf); background: var(--wall-soft); }
.svc h2 { font-size: clamp(30px, 3.8vw, 50px); }
.svc .tag { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--wall-soft); font: 500 12.5px/1.35 var(--mono); }
.svc .prose { margin-top: 16px; }
.svc-index { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.svc-index a { padding: 6px 13px; border-radius: 999px; background: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; }
.svc-index a:hover { background: var(--ink); color: var(--white); }

/* Equipo */
.profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.profile .m-tile { --iw: 92%; }
.profile .id { font: 500 14px/1.45 var(--mono); color: var(--teal-deep); margin-bottom: 18px; }
.back { display: inline-block; margin-top: 28px; }

/* Guías */
.guide-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.guide-group { scroll-margin-top: 90px; min-width: 0; }
.guide-group h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 38px); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.guide-group h2 .glyph { font-size: 36px; }
.guide-group li { border-bottom: 1px solid var(--line); }
.guide-group a { display: block; padding: 9px 0; text-decoration: none; }
.guide-group a:hover { color: var(--teal-deep); text-decoration: underline; }
.guide-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.guide-note { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); max-width: 42em; }
.side-card { padding: 22px; background: var(--wall-soft); border-radius: 0 56px 0 0; display: grid; gap: 10px; justify-items: start; }
.side-card h2 { font-size: 24px; letter-spacing: -.01em; }
.side-list { margin-top: 24px; }
.side-list h2 { font-size: 22px; letter-spacing: -.01em; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list a { display: block; padding: 7px 0; font-size: 15.5px; text-decoration: none; }
.side-list a:hover { text-decoration: underline; }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.filters button { min-height: 40px; padding: 6px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 15px/1 var(--body); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--wall); }
.gal { columns: 3 260px; column-gap: 10px; }
.gal button { display: block; width: 100%; margin-bottom: 10px; padding: 0; border: 0; background: var(--wall-soft); cursor: zoom-in; break-inside: avoid; position: relative; overflow: hidden; }
.gal img { width: 100%; height: auto; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.gal button:hover img { transform: scale(1.03); }
.gal .cap { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 9px; background: var(--white); color: var(--ink); font: 500 12.5px/1.35 var(--mono); text-align: left; }
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #0a1e25f2; color: var(--white); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 56px 12px 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.lb-cap { min-width: 0; font-size: 16px; }
.lb-cap small { display: block; font: 400 13px var(--mono); color: var(--wall); }
.lb-nav { display: flex; gap: 6px; flex: none; }
.lb-btn { min-height: 44px; padding: 6px 16px; border: 2px solid #ffffff66; border-radius: 999px; background: none; color: var(--white); font: 600 15px var(--body); cursor: pointer; }
.lb-btn:hover { background: var(--white); color: var(--ink); }
.lb-close { position: absolute; top: 10px; right: 12px; background: #0a1e25; }

/* Privacidad */
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 32px; }
.legal h2:first-child { margin-top: 0; }

@media (max-width: 760px) {
  .svc, .profile, .guide-index, .guide-wrap { grid-template-columns: minmax(0, 1fr); }
  .profile .m-tile { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .gal img { transition: none; } }
