/* Clínica 3G prototype. Brand colours measured from the client's logo (#00AEEF) and reception signage (#0147A9). */
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --blue: #0147a9;
  --blue-d: #013a8a;
  --cyan: #00aeef;
  --ink: #0a2140;
  --ink-2: #12305a;
  --soft: #e5f6fd;
  --paper: #fbfdff;
  --text: #13233a;
  --muted: #4a5b72;
  --line: #cfe3f1;
  --radius: 14px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-tap-highlight-color: rgba(0, 174, 239, .2); margin: 0; font: 400 1.0625rem/1.65 'Figtree', system-ui, sans-serif; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; line-height: 1.15; margin: 0 0 .6em; color: inherit; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.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; background: #fff; color: var(--blue); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }
.icon-xl { width: 56px; height: 56px; margin-bottom: 12px; }
.lead { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 'Outfit', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s, border-color .2s; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--soft); }
.btn-line { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--blue); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { width: 150px; height: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu ul a { color: #fff; text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu ul a:hover { border-bottom-color: var(--cyan); }
.burger { display: none; background: none; border: 0; color: #fff; padding: 10px; margin-right: -10px; cursor: pointer; }
.burger .icon { width: 28px; height: 28px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--blue); color: #fff; min-height: calc(100dvh - 72px); max-height: 820px; }
.hero-text { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); align-self: center; max-width: 680px; justify-self: end; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2vw, 2.75rem); font-weight: 600; margin-bottom: .45em; }
.hero-sub { font-size: 1.2rem; color: #dcebff; max-width: 34em; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

/* Sections */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec-soft { background: var(--soft); }
.sec-ink { background: var(--ink); color: #e8f1fb; }
.sec-ink a:not(.btn) { color: #8fdcff; }
.sec-blue { background: var(--blue); color: #fff; }
.sec-blue a:not(.btn) { color: #fff; }
.sec-intro { color: var(--muted); margin-top: -.3em; margin-bottom: 2em; }

/* History */
.hist { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hist-text { max-width: 620px; }
.gens { list-style: none; margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--cyan); display: grid; gap: 18px; }
.gens li { display: grid; gap: 2px; }
.gens b { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--blue); }
.gens span { color: var(--muted); }
.hist-photo { margin: 0; display: grid; gap: 14px; }
.hist-photo img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hist-photo img:first-child { aspect-ratio: 4 / 3; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.svc-group h3 { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 1.3rem; margin-bottom: .3em; }
.svc-group h3 .icon { width: 30px; height: 30px; color: var(--cyan); }
.svc-lead { color: var(--muted); margin-bottom: 1em; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list a { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.svc-list a b { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem; transition: color .2s; }
.svc-list a span { color: var(--muted); font-size: .97rem; }
.svc-list a:hover b { color: var(--blue); text-decoration: underline; text-decoration-color: var(--cyan); }

/* Lab */
.lab-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lab h2 { color: #fff; }
.lab h3 { color: #8fdcff; margin-top: 1.4em; }
.lab-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.lab-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Team */
.team { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.member img, .member-mono { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; object-position: top; border-radius: var(--radius); margin-bottom: 14px; background: var(--soft); }
.member-mono { display: grid; place-items: center; background: var(--cyan); color: #fff; font: 600 2.6rem 'Outfit', sans-serif; }
.member h3 { font-size: 1.08rem; margin-bottom: .1em; }
.member-role { color: var(--blue); font-weight: 600; margin-bottom: .4em; }
.member p:last-child { color: var(--muted); font-size: .95rem; }

/* Booking */
.book-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-intro { position: sticky; top: 100px; }
.book-sum { margin: 1.5em 0; display: grid; gap: 10px; background: #fff; border-radius: var(--radius); padding: 18px 20px; }
.book-sum div { display: flex; justify-content: space-between; gap: 16px; }
.book-sum dt { color: var(--muted); }
.book-sum dd { margin: 0; font-weight: 600; text-align: right; }
.book-alt { color: var(--muted); }
.book { background: #fff; border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 18px 50px -24px rgba(1, 71, 169, .35); }
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.steps li { flex: 1; font-size: .9rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.steps li.is-on, .steps li.is-done { color: var(--blue); border-top-color: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 1.35rem/1.2 'Outfit', sans-serif; margin-bottom: 14px; padding: 0; }
legend:focus { outline: none; }
.opt-h { font-weight: 600; margin: 16px 0 8px; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt input:hover + span { border-color: var(--blue); }
.opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.opts-2 .opt span { min-width: 120px; justify-content: center; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.day { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.day small { font-size: .78rem; color: var(--muted); }
.day b { font: 600 1.35rem/1.2 'Outfit', sans-serif; font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--blue); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.day[aria-pressed="true"] small { color: #dcebff; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-weight: 600; }
.f input, .f textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #9fb6cc; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.f input.is-invalid { border-color: #b3261e; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; }
.chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.err { color: #b3261e; font-size: .93rem; font-weight: 600; margin: 6px 0 0; }
.nav-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Contacts */
.contact h2 { color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.clist { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 18px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist .icon { width: 26px; height: 26px; color: var(--cyan); margin-top: 2px; }
.clist div { display: grid; }
.clist b { font-family: 'Outfit', sans-serif; font-weight: 600; color: #fff; }
.clist small { color: #a9bfd9; }
.contact-photo { margin: 0; position: relative; }
.contact-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 20% 50%; }
.contact-photo .btn { position: absolute; left: 18px; bottom: 18px; }

/* Footer */
.foot { background: #071731; color: #b9cbe2; padding: 40px 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot img { width: 140px; margin-bottom: 12px; }
.foot p { margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: #fff; }

/* Request sent / simple pages */
.sent { min-height: 60vh; display: flex; align-items: center; }
.sent h1, .page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 600; }
.sent-sum { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; margin: 1.4em 0; }
.sent-sum div { display: flex; justify-content: space-between; gap: 16px; }
.sent-sum dt { color: #cfe0ff; }
.sent-sum dd { margin: 0; font-weight: 600; text-align: right; }
.page-head { padding: 56px 0 40px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; color: var(--blue); }

/* Responsive */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--blue-d); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 24px; }
  .menu.is-open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu .btn { justify-content: center; margin-top: 8px; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-text { justify-self: start; padding: 36px 24px 32px; }
  .hero-photo { height: 300px; order: 2; }
  .hist, .lab-in, .contact-in, .book-wrap { grid-template-columns: 1fr; }
  .book-intro { position: static; }
  .svc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand img { width: 124px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .team { grid-template-columns: 1fr 1fr; gap: 18px; }
  .lab-photos { grid-template-columns: 1fr 1fr; }
  .nav-steps .btn { flex: 1 1 auto; justify-content: center; }
  .contact-photo .btn { position: static; margin-top: 12px; }
}
