/* =========================================================
   Dr. Rodrigo Ortega Guerrero · Ortopedia y traumatología
   Sistema visual: azul tinta, oro y vidrio esmerilado (blur)
   ========================================================= */

:root {
  --ink: #20364E;
  --ink-deep: #16283B;
  --action: #2A5180;
  --slate: #889DC2;
  --sky: #8FB9EE;
  --bronze: #906B41;
  --bronze-text: #7F5D37;
  --gold: #BDA05B;
  --sand: #E1CEAD;
  --paper: #F7F7F7;
  --muted: #4F6278;
  --line: rgba(32, 54, 78, .12);
  --danger: #B3261E;

  --gold-grad: linear-gradient(140deg, #F1E4C3 0%, #D6BC80 32%, #BDA05B 58%, #906B41 100%);
  --gold-soft: linear-gradient(180deg, #ECDDB6 0%, #CDB173 55%, #BDA05B 100%);
  --gold-line: linear-gradient(180deg, #E1CEAD 0%, #BDA05B 45%, #906B41 100%);
  --navy-grad: linear-gradient(155deg, #30609A 0%, #2A5180 28%, #20364E 72%, #1A2D42 100%);
  --ink-text: linear-gradient(180deg, #2E5A8F 0%, #20364E 78%);
  --light-text: linear-gradient(180deg, #FFFFFF 35%, #CFE0F7 100%);

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", Arial, Helvetica, sans-serif;
  --font-script: "Great Vibes", cursive;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 8px 20px -12px rgba(22, 40, 59, .35);
  --shadow-md: 0 24px 48px -28px rgba(22, 40, 59, .5);
  --shadow-lg: 0 40px 80px -40px rgba(22, 40, 59, .6);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1.1em; }

a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: #F1E4C3; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 1.55rem + 3.3vw, 4.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.8125rem, 1.45rem + 1.5vw, 2.625rem); line-height: 1.16; }
h3 { font-size: clamp(1.3rem, 1.2rem + .45vw, 1.6rem); line-height: 1.22; }

.grad-ink {
  background: var(--ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-light {
  background: var(--light-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.q-gold { color: var(--bronze-text); }
.on-dark .q-gold { color: #D6BC80; }

@media (forced-colors: active) {
  .grad-ink, .grad-light, .lockup, .lockup span, .script, .name-h1 span {
    background: none !important;
    color: CanvasText !important;
  }
}

.ico { width: 24px; height: 24px; flex: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Vidrio esmerilado ---------- */

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .44));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(32, 54, 78, .05),
    0 30px 60px -36px rgba(22, 40, 59, .45);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.glass-dark {
  color: #fff;
  background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 58%, rgba(255, 255, 255, .12));
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 40px 80px -40px rgba(6, 14, 24, .75);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .94); }
  .glass-dark { background: rgba(32, 54, 78, .94); }
}

/* ---------- Botones ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--h);
  padding: .7em 1.35em;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.25em; height: 1.25em; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2F5A8E 0%, #2A5180 55%, #244872 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 26px -14px rgba(42, 81, 128, .75);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: inset 0 0 0 1px rgba(32, 54, 78, .08), 0 12px 24px -18px rgba(22, 40, 59, .55);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.btn-glass:hover { background: rgba(255, 255, 255, .85); }

.btn-gold {
  color: var(--ink-deep);
  background: var(--gold-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 28px -14px rgba(144, 107, 65, .75);
}
.btn-gold:hover { filter: brightness(1.05); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #C42F26, #B3261E);
  box-shadow: 0 14px 26px -14px rgba(179, 38, 30, .7);
}

.btn-lg { --h: 58px; font-size: 1.0625rem; padding-inline: 1.6em; }
.btn-block { width: 100%; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--action);
  text-decoration: none;
}
.link-arrow .ico { width: 20px; height: 20px; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 10px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 8px 8px 18px;
  border-radius: 20px;
  transition: box-shadow .3s ease, background .3s ease;
}
.is-scrolled .header-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .7));
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(32, 54, 78, .06), 0 18px 40px -24px rgba(22, 40, 59, .5);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.brand-name {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(.92rem, .86rem + .3vw, 1.05rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  margin-top: 4px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li { position: relative; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .97rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color .2s ease;
}
.nav-list a:hover { background: rgba(32, 54, 78, .06); }
.nav-list a[aria-current="page"],
.nav-list .is-section > a {
  background: rgba(42, 81, 128, .1);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.has-sub { display: flex; align-items: center; }
.sub-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.sub-toggle .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.has-sub.is-open .sub-toggle .ico { transform: rotate(180deg); }

.sub {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 5;
  min-width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.is-open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub a {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font-size: .95rem;
}
.sub .sub-all {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.sub .sub-all a { color: var(--action); font-weight: 650; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}
.header-cta { --h: 48px; padding-inline: 1.15em; white-space: nowrap; }
.lbl-short { display: none; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(32, 54, 78, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  cursor: pointer;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow: auto;
    padding: 12px;
    border-radius: 24px;
    background: #FBFCFD;
    box-shadow: 0 0 0 1px rgba(32, 54, 78, .06), 0 30px 60px -30px rgba(22, 40, 59, .55);
  }
  .nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { width: 100%; min-height: 50px; font-size: 1.05rem; }
  .has-sub { flex-wrap: wrap; }
  .sub-toggle { display: none; }
  .sub {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 6px 14px;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sub::before { display: none; }
  .sub a { min-height: 44px; color: var(--muted); font-size: .98rem; }
  .sub .sub-all { border-top: 0; margin-top: 0; padding-top: 0; }

  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav { position: static; display: block; order: 3; width: 100%; box-shadow: none; }
  .no-js .menu-toggle { display: none; }
}

@media (max-width: 520px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .brand-sub { font-size: .68rem; }
  .header-inner { padding-left: 14px; gap: 8px; }
  .header-cta { padding-inline: .95em; }
}

/* ---------- Fondos difuminados ---------- */

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 92% 4%, rgba(143, 185, 238, .5), transparent 62%),
    radial-gradient(30rem 24rem at 4% 96%, rgba(225, 206, 173, .55), transparent 64%),
    radial-gradient(26rem 22rem at 58% 78%, rgba(136, 157, 194, .26), transparent 66%),
    linear-gradient(165deg, #FBFBFC 0%, #F3F6FA 48%, #E8EEF6 100%);
}
.aurora--soft {
  background:
    radial-gradient(34rem 26rem at 12% 10%, rgba(143, 185, 238, .32), transparent 62%),
    radial-gradient(30rem 24rem at 96% 92%, rgba(225, 206, 173, .45), transparent 64%),
    linear-gradient(180deg, #F7F7F7 0%, #EEF2F7 100%);
}
.aurora--motion::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 8%;
  width: 70%;
  height: 70%;
  background: repeating-linear-gradient(-28deg, rgba(143, 185, 238, 0) 0 34px, rgba(143, 185, 238, .22) 34px 36px);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 120px);
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: .8rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #906B41, #BDA05B, #E1CEAD);
}
.on-dark .eyebrow { color: #E1CEAD; }

/* ---------- Firma tipográfica (nombre) ---------- */

.lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(.98rem, .86rem + .55vw, 1.25rem);
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.lockup span {
  background: var(--ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lockup::after {
  content: "";
  flex: 0 0 52px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #BDA05B, rgba(225, 206, 173, 0));
}

.script {
  display: block;
  margin: 0;
  padding: 0 .1em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.9rem + 2.8vw, 4.4rem);
  line-height: 1.05;
  background: linear-gradient(120deg, #D9C08A 0%, #BDA05B 45%, #8C6A40 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Héroe de portada ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  padding-bottom: clamp(56px, 7vw, 108px);
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: .45em; }

.lead {
  max-width: 60ch;
  margin-bottom: 0;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.62;
  color: var(--muted);
}
.on-dark .lead { color: rgba(255, 255, 255, .88); }

.spec-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 580px;
  margin-top: 28px;
  padding: 18px 24px 18px 18px;
  border-radius: 22px;
  color: #fff;
  background: var(--navy-grad);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.spec-card p { margin: 0; font-size: 1rem; line-height: 1.45; }
.spec-label {
  display: block;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E1CEAD;
}

.sede-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.sede-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(32, 54, 78, .1);
  border-radius: 999px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sede-chips a:hover { background: #fff; }
.sede-chips .ico { width: 20px; height: 20px; color: var(--bronze); }

.hero-media { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4% 10%;
  z-index: -1;
  border-radius: 48px;
  background: linear-gradient(160deg, rgba(143, 185, 238, .55), rgba(42, 81, 128, .35));
  filter: blur(40px);
}

.chip-call {
  position: absolute;
  left: -18px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 18px;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}
.chip-call span { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.chip-call .ico { width: 16px; height: 16px; }
.chip-call strong { font-size: 1.2rem; font-weight: 750; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (max-width: 560px) {
  .chip-call { left: 12px; bottom: 12px; }
}

/* ---------- Mosaico dorado ---------- */

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #fff;
  background: var(--gold-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -3px 8px rgba(144, 107, 65, .35),
    0 14px 26px -14px rgba(144, 107, 65, .85);
}
.tile .ico { width: 30px; height: 30px; filter: drop-shadow(0 1px 0 rgba(120, 88, 50, .45)); }
.tile-sm { width: 44px; height: 44px; border-radius: 13px; }
.tile-sm .ico { width: 24px; height: 24px; }
.tile-lg { width: 78px; height: 78px; border-radius: 22px; }
.tile-lg .ico { width: 42px; height: 42px; }
.spec-card .tile { margin-left: -38px; }
@media (max-width: 560px) {
  .spec-card .tile { margin-left: 0; }
}

/* ---------- Espacios para fotografía ---------- */

.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 60% at 28% 12%, rgba(255, 255, 255, .92), transparent 62%),
    radial-gradient(70% 50% at 88% 92%, rgba(143, 185, 238, .6), transparent 70%),
    linear-gradient(165deg, #E9EFF7 0%, #CFDBEA 55%, #B2C3DB 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), var(--shadow-lg);
}
.ph-portrait::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Ccircle cx='100' cy='86' r='44' fill='%2320364E' fill-opacity='.1'/%3E%3Cpath d='M14 240c4-62 42-98 86-98s82 36 86 98z' fill='%2320364E' fill-opacity='.1'/%3E%3C/svg%3E") center bottom / contain no-repeat;
}
.ph-wide { aspect-ratio: 3 / 2; }
.ph-site { aspect-ratio: 16 / 10; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.ph::after,
.ph-bg::after {
  content: attr(data-ph);
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 110px);
  padding: 7px 12px 7px 34px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(255, 255, 255, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320364E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2.5h6L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") 12px 50% / 15px no-repeat;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ph img,
.ph-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph:has(img)::before, .ph:has(img)::after,
.ph-bg:has(img)::before, .ph-bg:has(img)::after { display: none; }

.ph-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(16% 24% at 18% 22%, rgba(210, 230, 255, .95), transparent 70%),
    radial-gradient(22% 30% at 82% 16%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(30% 40% at 66% 62%, rgba(143, 185, 238, .55), transparent 72%),
    radial-gradient(44% 52% at 16% 94%, rgba(42, 81, 128, .95), transparent 72%),
    linear-gradient(160deg, #3D6DA6 0%, #2A5180 34%, #1D324A 74%, #13233A 100%);
}
.ph-bg::before {
  content: "";
  position: absolute;
  left: 5%;
  top: 10%;
  width: 24%;
  height: 18%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 22% 40%, #9DF0C4 0 3px, transparent 4px),
    radial-gradient(circle at 46% 62%, #8FB9EE 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0 60%, rgba(143, 185, 238, .5) 60% 61%, transparent 61%),
    linear-gradient(180deg, #0F1C2B, #16283B);
  box-shadow: inset 0 0 0 2px rgba(143, 185, 238, .35), 0 0 40px rgba(143, 185, 238, .35);
  filter: blur(1.5px);
}
.ph-bg::after { left: auto; top: auto; right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19, 35, 58, .12), rgba(19, 35, 58, .55));
}

/* ---------- Tarjetas de acceso ---------- */

.access-grid { display: grid; gap: 20px; }
.access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.access-card:hover { transform: translateY(-4px); text-decoration: none; }
.access-card h3 { margin: 8px 0 0; }
.access-card .quote { margin: 0; color: var(--muted); font-style: italic; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 650;
  color: var(--action);
}
.more .ico { width: 20px; height: 20px; transition: transform .2s ease; }
.access-card:hover .more .ico,
.mini-card:hover .more .ico,
.related-card:hover .more .ico { transform: translateX(4px); }

.access-row2 { display: grid; gap: 14px; margin-top: 18px; }
.mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
}
.mini-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.mini-card .small { display: block; font-size: .95rem; color: var(--muted); }
.mini-card .more { margin: 0 0 0 auto; padding: 0; }

@media (min-width: 760px) {
  .access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Bloque dividido ---------- */

.split {
  display: grid;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.split-media { position: relative; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split-media { order: 2; }
}

.gold-rule {
  position: relative;
  max-width: 46ch;
  margin: 28px 0;
  padding-left: 22px;
}
.gold-rule::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold-line);
}
.gold-rule strong { display: block; font-style: italic; font-weight: 700; color: var(--action); }
.on-dark .gold-rule strong { color: #CFE0F7; }

.media-chip {
  position: absolute;
  right: -14px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
@media (max-width: 700px) {
  .media-chip { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- Sección oscura con desenfoque ---------- */

.dark-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 144px);
  color: #fff;
  background: #1A2D42;
}
.dark-section h2, .dark-section h3 { color: #fff; }

.surgery-card {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(28px, 5.5vw, 68px);
  border-radius: var(--r-xl);
  text-align: center;
}
.surgery-card > p {
  max-width: 58ch;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  color: rgba(255, 255, 255, .9);
}
.surgery-links { display: grid; gap: 16px; margin-top: 34px; text-align: left; }
@media (min-width: 720px) { .surgery-links { grid-template-columns: 1fr 1fr; } }

.pill-gold {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  background: rgba(16, 30, 46, .38);
  transition: transform .25s ease, background-color .25s ease;
}
.pill-gold:hover { transform: translateY(-3px); background: rgba(16, 30, 46, .2); }

/* Filete dorado con interior translúcido (deja ver el desenfoque) */
.pill-gold::before,
.tag-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.pill-title {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.pill-sub { font-size: .98rem; line-height: 1.4; color: rgba(255, 255, 255, .86); }

.tag-gold {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 18px;
  border-radius: 14px;
  font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 108%;
  line-height: 1.1;
  color: #fff;
  background: rgba(16, 30, 46, .4);
}

/* ---------- Tarjetas de sede ---------- */

.sede-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .sede-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sede-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.sede-body { display: flex; flex: 1; flex-direction: column; padding: 20px 12px 10px; }
.sede-kicker {
  margin: 0 0 6px;
  font-size: .8rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.sede-card h2, .sede-card h3 { margin-bottom: .3em; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
.sede-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--muted); }
.sede-meta .ico { width: 20px; height: 20px; color: var(--bronze); }
.sede-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Formulario de citas ---------- */

.booking-section { scroll-margin-top: calc(var(--header-h) + 8px); }
.booking-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px) clamp(32px, 5vw, 64px);
  grid-template-areas: "copy" "form" "extra";
}
.booking-copy { grid-area: copy; }
.booking { grid-area: form; }
.booking-aside { grid-area: extra; }
@media (min-width: 980px) {
  .booking-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy form" "extra form";
    align-items: start;
  }
}
.booking-copy > p { color: var(--muted); }
.booking { padding: clamp(22px, 4vw, 42px); border-radius: var(--r-xl); }
.form-help { margin: 0 0 24px; color: var(--muted); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 650; }
.field .opt { font-weight: 450; color: var(--muted); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.booking select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 56px;
  padding: 12px 46px 12px 16px;
  border: 1px solid rgba(32, 54, 78, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.booking select:hover { border-color: rgba(32, 54, 78, .45); }
.booking select:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.field.has-error select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field-error { margin: 8px 0 0; font-size: .95rem; font-weight: 600; color: #9E2019; }
.field-error[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 250px; }
.form-privacy { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.form-noscript { margin: 14px 0 0; font-weight: 600; }

.booking-aside { display: grid; gap: 16px; align-content: start; }
.booking-aside .faq { margin-top: 0; }
.booking-aside .faq h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); }
.urgent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(144, 107, 65, .25);
  border-radius: 18px;
  background: rgba(225, 206, 173, .38);
}
.urgent-line .ico { margin-top: 2px; color: var(--bronze); }
.urgent-line p { margin: 0; }
.urgent-line a { font-weight: 700; white-space: nowrap; }

/* ---------- Héroe de páginas interiores ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(18px, 4vw, 48px));
  padding-bottom: clamp(52px, 7vw, 96px);
}
.page-hero-grid { display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.page-hero h1 { margin-bottom: .4em; }
.media-frame { position: relative; }
.media-frame .tile { position: absolute; top: 20px; right: 20px; }

.page-hero--dark {
  color: #fff;
  background: #1A2D42;
  padding-bottom: clamp(64px, 9vw, 128px);
}
.page-hero--dark h1 { color: #fff; }
.hero-glass {
  max-width: 900px;
  padding: clamp(26px, 5vw, 60px);
  border-radius: var(--r-xl);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--bronze); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--action); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .crumbs ol, .on-dark .crumbs a { color: rgba(255, 255, 255, .78); }
.on-dark .crumbs [aria-current] { color: #fff; }
.on-dark .crumbs li + li::before { color: #D6BC80; }

.eyebrow-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: .82rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.on-dark .eyebrow-tile { color: #E1CEAD; }

/* ---------- Artículo ---------- */

.article-wrap {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 96px);
}
.article-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
}
.prose { max-width: 70ch; min-width: 0; }
.prose p, .prose li { color: #2A3F57; }
.prose ul { padding-left: 1.2em; }

.sec {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, #BDA05B, rgba(189, 160, 91, 0) 70%) 1;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sec-num {
  display: block;
  margin-bottom: 10px;
  font-size: .85rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: .16em;
  color: var(--bronze-text);
}

.note {
  margin: 1.4em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(225, 206, 173, .34);
  font-size: 1.05em;
}
.note p:last-child { margin-bottom: 0; }

.checklist, .ask-list {
  display: grid;
  gap: 12px;
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}
.checklist li, .ask-list li { position: relative; padding-left: 38px; }
.checklist li::before, .ask-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: calc(.12em + 5px);
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.ask-list li::after {
  content: "?";
  position: absolute;
  left: 0;
  top: .12em;
  width: 24px;
  line-height: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: .95rem;
  color: #fff;
}

.inline-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 0; padding: 0; list-style: none; }

.faq {
  position: relative;
  margin-top: 52px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.faq h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.faq p:last-child { margin-bottom: 0; }
.faq .tile { position: absolute; top: -22px; right: 26px; }

/* ---------- Tarjeta lateral ---------- */

.aside { display: none; }
@media (min-width: 1000px) { .aside { display: block; } }
.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  color: #fff;
  background: var(--navy-grad);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.aside-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 185, 238, .45), transparent 70%);
}
.aside-title {
  position: relative;
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
}
.aside-card p { position: relative; font-size: .98rem; color: rgba(255, 255, 255, .86); }
.aside-card .btn { position: relative; width: 100%; margin-top: 10px; }
.aside-urgent {
  position: relative;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .92rem;
}
.aside-urgent a { color: #fff; font-weight: 700; }

/* ---------- Relacionados y cierre ---------- */

.related { padding-bottom: clamp(56px, 7vw, 96px); }
.related-title {
  margin: 0 0 18px;
  font-size: .8rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.related-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.related-card:hover { transform: translateY(-2px); }
.related-card .more { margin: 0 0 0 auto; padding: 0; }

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 110px);
  color: #fff;
  background: #1A2D42;
}
.cta-card {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 4.5vw, 52px);
  border-radius: var(--r-xl);
}
@media (min-width: 900px) { .cta-card { grid-template-columns: minmax(0, 1.25fr) auto; } }
.cta-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  line-height: 1.18;
}
.cta-card p { margin: 0; color: rgba(255, 255, 255, .86); }
.cta-card .actions { margin: 0; }

/* ---------- Urgencias ---------- */

.urgent-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--r-xl);
  color: #fff;
  background: var(--navy-grad);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.urgent-card::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 185, 238, .4), transparent 70%);
}
.urgent-label {
  position: relative;
  margin: 18px 0 0;
  font-size: .82rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E1CEAD;
}
.urgent-number {
  position: relative;
  display: block;
  margin: 6px 0 22px;
  font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.urgent-number:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.urgent-card .btn { position: relative; }

.alert-911 {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(179, 38, 30, .22);
  border-left: 6px solid var(--danger);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.alert-911 p { margin: 0; color: var(--ink); }
.alert-911 .ico { color: var(--danger); }
.alert-head { display: flex; align-items: flex-start; gap: 12px; }
.alert-911 .btn { justify-self: start; }

/* ---------- El doctor ---------- */

.name-h1 {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .06em;
  align-items: end;
  margin: 0 0 .35em;
  font-family: var(--font-sans);
  font-size: clamp(2.45rem, 1.3rem + 4.6vw, 5.1rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .94;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.name-h1 span {
  background: var(--ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-h1 .dr {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: .04em 0;
  font-size: .33em;
  letter-spacing: .04em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.name-h1 .l1 { grid-column: 2; grid-row: 1; }
.name-h1 .l2, .name-h1 .l3 { grid-column: 1 / -1; }
.name-sub {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 450;
  color: var(--ink);
}

.cred-list { display: grid; gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.cred {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cred p { margin: 0; }
.cred-label { display: block; font-size: .9rem; color: var(--muted); }
.cred-num { font-weight: 750; letter-spacing: .03em; font-variant-numeric: tabular-nums; }

.area-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .area-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Contacto: datos y avisos ---------- */

.contact-hero-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .contact-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.contact-quick { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-lg); }
.contact-quick .btn { width: 100%; }

.avisos { display: grid; gap: 18px; }
@media (min-width: 760px) { .avisos { grid-template-columns: 1fr 1fr; } }
.aviso-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.aviso-card h3 { font-size: 1.35rem; }
.aviso-card dl { display: grid; gap: 14px; margin: 0; }
.aviso-card dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.aviso-card dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.legal-doc { max-width: 70ch; }
.legal-doc h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.9rem); margin-top: 1.4em; }

/* ---------- Pie de página ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 30px;
  color: rgba(255, 255, 255, .84);
  background: #16283B;
  font-size: .98rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 26rem at 90% 0%, rgba(42, 81, 128, .85), transparent 65%),
    radial-gradient(30rem 22rem at 0% 100%, rgba(143, 185, 238, .18), transparent 65%);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
}
.footer-strip .strip-cta { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .footer-strip { grid-template-columns: auto auto 1fr auto; }
  .footer-strip .strip-cta { grid-column: auto; }
}
.strip-item { display: flex; flex-direction: column; margin: 0; padding: 6px 14px; line-height: 1.25; }
.strip-label { font-size: .74rem; color: rgba(255, 255, 255, .72); }
.strip-value { font-weight: 700; letter-spacing: .03em; color: #fff; font-variant-numeric: tabular-nums; }
.strip-spacer { display: none; }
@media (min-width: 760px) { .strip-spacer { display: block; } }
.footer-strip .strip-cta {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  background: rgba(143, 185, 238, .18);
  line-height: 1.25;
}
.strip-cta .strip-value { font-size: 1.2rem; }

.footer-grid { display: grid; gap: 32px; margin-top: 52px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.35fr 1fr .9fr 1.05fr 1.15fr; } }
.footer-brand .brand-name { font-size: 1.1rem; background: var(--light-text); -webkit-background-clip: text; background-clip: text; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .7); }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; font-size: .95rem; }
.footer-title {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E1CEAD;
}
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-phone { display: block; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.footer-small { display: block; font-size: .85rem; color: rgba(255, 255, 255, .68); }

.footer-legal {
  display: grid;
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr 1fr 1fr; } }
.footer-legal p { margin: 0; }
.folio { font-weight: 700; letter-spacing: .05em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
}
.footer-bottom p { margin: 0; }
.powered {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.powered strong { font-weight: 700; color: #E1CEAD; }

/* ---------- Acción flotante ---------- */

.float-cta {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 20px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(48, 96, 154, .94), rgba(32, 54, 78, .96));
  box-shadow: 0 18px 40px -16px rgba(10, 22, 36, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .3s ease, opacity .3s ease;
}
.float-cta:hover { transform: translateY(-2px); }
.float-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
}
.float-cta--911 .float-ico { background: var(--danger); }
.float-ico .ico { width: 22px; height: 22px; }
.is-typing .float-cta { opacity: 0; transform: translateY(130%); pointer-events: none; }

@media (max-width: 767.98px) {
  .float-cta .lbl-long { display: none; }
  .float-cta .lbl-short { display: inline; }
  .site-footer { padding-bottom: 108px; }
}

/* ---------- Utilidades ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Componentes adicionales ---------- */

.narrow { max-width: 820px; }
.pt-0 { padding-top: 0 !important; }
.mt-1 { margin-top: 1rem; }

.dark-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30rem 22rem at 12% 20%, rgba(143, 185, 238, .35), transparent 65%),
    radial-gradient(34rem 26rem at 88% 80%, rgba(42, 81, 128, .9), transparent 65%),
    radial-gradient(20rem 16rem at 70% 10%, rgba(225, 206, 173, .18), transparent 70%),
    linear-gradient(160deg, #20364E, #16283B);
}

.split-media .tile-corner { position: absolute; top: 20px; right: 20px; }

.hero-glass { position: relative; }
.hero-glass > .tile { position: absolute; top: -28px; right: clamp(20px, 4vw, 40px); }
@media (max-width: 560px) {
  .hero-glass > .tile { width: 60px; height: 60px; top: -22px; }
  .hero-glass > .tile .ico { width: 32px; height: 32px; }
}

.comfort { font-size: clamp(1.125rem, 1.08rem + .2vw, 1.1875rem); line-height: 1.7; }

.steps {
  display: grid;
  gap: 14px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { flex-direction: column; align-items: flex-start; }
}
.step-num { flex: none; }
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: var(--navy-grad);
  box-shadow: var(--shadow-md);
}
.steps p { margin: 0; font-size: .98rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-grad);
  color: var(--ink-deep);
  font-weight: 800;
  font-stretch: 125%;
}

.urgent-grid { display: grid; gap: 20px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .urgent-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.urgent-grid .alert-911 { margin-top: 0; }

.contact-urgent { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .contact-urgent { grid-template-columns: minmax(0, 1fr) auto; } }
.contact-urgent h2 { margin-bottom: .2em; font-size: clamp(1.5rem, 1.3rem + .9vw, 2.1rem); color: #fff; }
.contact-urgent .urgent-label { margin-top: 0; }
.contact-urgent .urgent-number { margin-bottom: 0; }

.cred-row { margin-bottom: 18px; }
@media (min-width: 760px) { .cred-row { grid-template-columns: 1fr 1fr; } }

.booking-copy > :last-child { margin-bottom: 0; }

.doctor-hero .crumbs ol { margin-bottom: 8px; }
.doctor-hero .gold-rule { margin: 26px 0 30px; }

/* ---------- Cabecera en pantallas angostas ---------- */

@media (max-width: 520px) {
  .header-cta { font-size: .94rem; padding-inline: .9em; }
  .header-cta .ico { display: none; }
  .site-header .brand-name { font-size: .8rem; font-stretch: 112%; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .site-header .brand-name { max-width: 9.5em; white-space: normal; line-height: 1.1; }
  .site-header .brand-sub { display: none; }
}

.footer-brand .brand-name { white-space: normal; }
.site-footer .brand:hover { text-decoration: none; }

@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
}
