:root {
  --navy: #0D1C4A;
  --navy-2: #172C6E;
  --ink: #0A1433;
  --sky: #48B6F6;
  --sky-soft: #DCEFFD;
  --paper: #F2F6FB;
  --white: #fff;
  --red: #D93A31;
  --muted: #475273;
  --display: "Red Hat Display", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --wrap: min(100% - 32px, 1220px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.6 var(--display); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sr-only { 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(--white); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.label { font: 500 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.label--sky { color: var(--sky); }
.label--navy { color: var(--navy); justify-content: center; }
.h2 { font: 900 clamp(2.3rem, 5.2vw, 4.8rem)/.98 var(--display); letter-spacing: -.035em; }
.h2 em { font-style: italic; font-weight: 700; color: var(--sky); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent; font: 700 .98rem/1.1 var(--display); text-decoration: none; cursor: pointer;
  transition: translate .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { translate: 0 -2px; }
.btn--sky { background: var(--sky); color: var(--ink); }
.btn--sky:hover { background: var(--white); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #B92E26; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 26px;
  padding: 14px clamp(16px, 3vw, 40px); color: var(--white); transition: background-color .3s ease, padding .3s ease;
}
.top.is-solid { background: rgba(13,28,74,.94); backdrop-filter: blur(10px); padding-block: 10px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.25rem/1 var(--display); letter-spacing: -.02em; }
.top__brand img { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: .95rem; font-weight: 700; opacity: .88; }
.top__nav a:hover { opacity: 1; color: var(--sky); }
.top__wa { min-height: 42px; padding: 0 18px; }

/* ---------- Hero: la chapita ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 96px 16px 36px; background: radial-gradient(60% 50% at 50% 30%, #1E3A8F 0%, var(--navy) 62%, var(--ink) 100%); color: var(--white); text-align: center; overflow: hidden;
}
.hero::before { /* patitas sutiles */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='30' cy='38' rx='9' ry='8'/%3E%3Ccircle cx='18' cy='26' r='4'/%3E%3Ccircle cx='26' cy='18' r='4'/%3E%3Ccircle cx='36' cy='18' r='4'/%3E%3Ccircle cx='43' cy='26' r='4'/%3E%3Cpath d='M86 76v18M77 85h18' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__kicker { position: absolute; top: 84px; left: 0; right: 0; font: 500 .8rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sky-soft); }
.hero__kicker span { color: var(--sky); }
.tag { position: absolute; top: 0; left: 50%; width: clamp(190px, 27vh, 280px); translate: -50% 0; transform-origin: 50% 0; }
.tag__string { display: block; width: 3px; height: clamp(110px, 16vh, 150px); margin: 0 auto -6px; background: linear-gradient(var(--sky), #9FD6FA); border-radius: 2px; }
.tag__svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 40px rgba(0,0,0,.45)); overflow: visible; }
.tag__arc { font: 700 15px var(--mono); letter-spacing: 3.2px; fill: var(--navy); }
.tag__name { font: 900 38px var(--display); letter-spacing: -1px; fill: var(--navy); }
.tag__tel { font: 500 19px var(--mono); letter-spacing: 2px; fill: var(--navy-2); }
.hero__title { position: relative; font: 900 clamp(2.9rem, 7.6vw, 7.6rem)/.92 var(--display); letter-spacing: -.045em; max-width: 12ch; }
.hero__title em { display: block; font-style: italic; font-weight: 700; color: var(--sky); }
.hero__sub { position: relative; margin-top: 18px; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #D7E2F5; }
.hero__cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hero__meta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 26px; font: 500 .82rem/1.3 var(--mono); letter-spacing: .06em; color: #B9C8E4; }
.hero__meta b { color: var(--white); }

/* ---------- Banda de servicios ---------- */
.band { background: var(--sky); color: var(--ink); overflow: hidden; padding: 16px 0; }
.band__track { display: flex; width: max-content; gap: 0; animation: band 38s linear infinite; }
.band span { font: 900 clamp(1.3rem, 2.4vw, 2rem)/1 var(--display); letter-spacing: -.02em; padding-inline: 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.band span::after { content: "✚"; font-size: .6em; color: var(--navy); }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- ¿Qué necesita hoy? ---------- */
.need { padding: clamp(80px, 11vw, 140px) 0; background: var(--paper); }
.need .h2 { max-width: 14ch; margin-bottom: clamp(30px, 4vw, 50px); }
.need .h2 em { color: var(--red); }
.need__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.need__tab {
  display: grid; justify-items: start; gap: 4px; text-align: left; padding: 22px 22px 20px; min-height: 150px; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--white); border: 2px solid #D5DFEE; border-radius: 22px;
  transition: border-color .2s, background-color .2s, color .2s, translate .2s;
}
.need__tab svg { width: 40px; height: 40px; margin-bottom: auto; color: var(--navy); }
.need__tab b { font: 900 1.35rem/1.1 var(--display); letter-spacing: -.02em; margin-top: 18px; }
.need__tab small { font: 500 .8rem/1.2 var(--mono); color: var(--muted); }
.need__tab:hover { border-color: var(--navy); translate: 0 -3px; }
.need__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.need__tab[aria-selected="true"] svg { color: var(--sky); }
.need__tab[aria-selected="true"] small { color: #B9C8E4; }
.need__tab--red svg { color: var(--red); }
.need__tab--red[aria-selected="true"] { background: var(--red); border-color: var(--red); }
.need__tab--red[aria-selected="true"] svg, .need__tab--red[aria-selected="true"] small { color: var(--white); }
.need__panels { margin-top: 14px; }
.need__panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 70px); align-items: center;
  background: var(--white); border-radius: 28px; padding: clamp(26px, 4vw, 56px); border: 2px solid #D5DFEE; margin-bottom: 14px;
}
.js-tabs .need__panel { margin-bottom: 0; }
.need__panel[hidden] { display: none; }
.need__copy { display: grid; gap: 18px; justify-items: start; }
.need__copy h3 { font: 900 clamp(1.8rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -.035em; max-width: 16ch; }
.need__copy p { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.need__copy p b { color: var(--ink); }
.need__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.need__photo { margin: 0; position: relative; justify-self: center; width: min(100%, 340px); }
.need__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 24px; }
.need__photo--sq img { aspect-ratio: 1; object-position: 50% 50%; }
.need__photo figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--white); border-radius: 999px; padding: 8px 14px; font: 500 .75rem/1.1 var(--mono); color: var(--ink); }
.need__stat { margin: 0; display: grid; gap: 12px; width: 100%; }
.need__stat div { background: var(--navy); color: var(--white); border-radius: 22px; padding: 22px 26px; display: grid; grid-template-columns: minmax(96px, 150px) 1fr; align-items: center; gap: 20px; }
.need__stat dt { font: 900 clamp(3.4rem, 6vw, 5.4rem)/.85 var(--display); letter-spacing: -.05em; color: var(--sky); display: grid; }
.need__stat dt small { font: 500 .78rem/1.2 var(--mono); letter-spacing: .08em; color: var(--white); margin-top: 8px; }
.need__stat dd { margin: 0; font-size: 1.05rem; color: #D7E2F5; }
#p-ban .need__photo img { object-position: 50% 45%; }
.need__panel--urg { background: var(--red); border-color: var(--red); color: var(--white); }
.need__panel--urg .need__copy p { color: #FFE4E1; }
.need__panel--urg .btn--red { background: var(--white); color: var(--red); }
.need__panel--urg .btn--line:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.need__big { font: 900 clamp(4rem, 10vw, 9rem)/.84 var(--display); letter-spacing: -.05em; text-align: right; color: rgba(255,255,255,.95); }

/* ---------- Servicios ---------- */
.serv { background: var(--navy); color: var(--white); padding: clamp(80px, 11vw, 150px) 0; }
.serv__head { display: grid; gap: 0; margin-bottom: clamp(40px, 6vw, 70px); }
.serv__head .h2 { max-width: 15ch; }
.serv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 6vw, 90px); }
.serv__list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); }
.serv__list li:nth-child(even) { translate: 0 clamp(0px, 3vw, 40px); }
.serv__list span { grid-row: span 2; font: 500 .85rem/1.9 var(--mono); color: var(--sky); }
.serv__list h3 { font: 900 clamp(1.35rem, 2.2vw, 1.9rem)/1.1 var(--display); letter-spacing: -.025em; }
.serv__list p { color: #B9C8E4; margin-top: 6px; }

/* ---------- Equipo ---------- */
.team { padding: clamp(90px, 12vw, 160px) 0; background: var(--sky-soft); overflow: hidden; }
.team__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 7vw, 110px); align-items: center; }
.team__photo { margin: 0; justify-self: center; width: min(100%, 380px); position: relative; }
.team__photo::before { content: ""; position: absolute; inset: -22px 22px 22px -22px; border-radius: 200px 200px 30px 30px; background: var(--sky); z-index: 0; }
.team__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: 200px 200px 30px 30px; }
.team__copy { display: grid; gap: 22px; justify-items: start; }
.team__copy > p:not(.label) { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* ---------- Turnos ---------- */
.turnos { --tn-accent: var(--navy); --tn-on-accent: #fff; --tn-radius: 14px; --tn-font: var(--display); --tn-card: #fff; --tn-line: #CBD6E7; padding: clamp(80px, 11vw, 140px) 0; background: var(--paper); color: var(--ink); }
.turnos__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.turnos__head { display: grid; gap: 18px; position: sticky; top: 100px; }
.turnos__head > p:not(.label) { color: var(--muted); font-size: 1.1rem; }
.turnos__box { background: var(--white); border-radius: 28px; padding: clamp(22px, 4vw, 44px); border: 2px solid #D5DFEE; }
.turnos .tn-go { border-radius: 999px; }

/* ---------- Sedes ---------- */
.sedes { background: var(--navy); color: var(--white); padding: clamp(80px, 11vw, 140px) 0; }
.sedes .h2 { max-width: 14ch; }
.sedes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.sede { position: relative; display: grid; gap: 14px; justify-items: start; padding: clamp(26px, 4vw, 48px); border-radius: 28px; background: var(--navy-2); overflow: hidden; }
.sede__n { position: absolute; right: 20px; top: 6px; font: 900 clamp(5rem, 10vw, 9rem)/1 var(--display); color: rgba(255,255,255,.07); letter-spacing: -.05em; }
.sede h3 { font: 900 clamp(2.4rem, 4.6vw, 4rem)/1 var(--display); letter-spacing: -.04em; }
.sede__addr { font-size: 1.15rem; color: #D7E2F5; max-width: 28ch; }
.sede__rating { font: 500 .82rem/1 var(--mono); color: var(--sky); letter-spacing: .08em; }
.sede__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sedes__hours { margin-top: 26px; color: #B9C8E4; font: 500 .9rem/1.5 var(--mono); }

/* ---------- Cierre ---------- */
.close { background: var(--sky); color: var(--ink); text-align: center; padding: clamp(80px, 11vw, 150px) 16px; }
.close__num { font: 900 clamp(3.4rem, 13vw, 13rem)/.9 var(--display); letter-spacing: -.055em; }
.close__num a { text-decoration: none; }
.close__num a:hover { color: var(--white); }
.close__sub { margin: 20px auto 0; max-width: 40ch; font-size: 1.15rem; }
.close__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.foot { background: var(--ink); color: #B9C8E4; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 36px 16px 40px; font-size: .9rem; }
.foot img { border-radius: 12px; }
.dock { display: none; }

.js .reveal { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .need__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need__panel, .team__grid, .turnos__grid { grid-template-columns: 1fr; }
  .need__big { text-align: left; font-size: clamp(3.4rem, 18vw, 6rem); }
  .turnos__head { position: static; }
  .serv__list { grid-template-columns: 1fr; }
  .serv__list li:nth-child(even) { translate: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .top__nav, .top__wa { display: none; }
  .hero { padding-bottom: 100px; }
  .hero__cta { display: none; }
  .hero__kicker { top: 74px; font-size: .7rem; letter-spacing: .14em; }
  .tag { width: 228px; }
  .tag__string { height: 100px; }
  .hero__title { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .hero__meta { gap: 6px 16px; font-size: .74rem; }
  .need__tab { min-height: 128px; padding: 16px; border-radius: 18px; }
  .need__tab b { font-size: 1.1rem; }
  .need__panel { border-radius: 22px; }
  .sedes__grid { grid-template-columns: 1fr; }
  .dock { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,28,74,.95); backdrop-filter: blur(10px); }
  .dock__a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 700; border: 2px solid rgba(255,255,255,.35); }
  .dock__a--sky { background: var(--sky); border-color: var(--sky); color: var(--ink); }
  .dock__a--red { background: var(--red); border-color: var(--red); }
}
@media (max-height: 760px) and (min-width: 761px) {
  .tag { width: 190px; }
  .tag__string { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .band__track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
