/* Dr. Villagómez — hoja de estilos (limpia, sin reglas de versiones anteriores) */
:root {
  --night: #08131f;
  --navy: #163f6b;
  --navy-deep: #0f2e50;
  --sky: #b9d3ef;
  --sky-dim: #9cc3ec;
  --ink: #111821;
  --muted: #5b6573;
  --line: #e1e4e9;
  --ivory: #f7f5f0;
  --white: #fff;
  --on-dark: #cfdeee;
  --on-dark-muted: #a9b8c9;

  --display: 'Cormorant Garamond', Georgia, serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --header-h: 80px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --section: clamp(88px, 11vw, 144px);
  --radius: 18px;
  --measure: 60ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol, dl, dd, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
.hx :focus-visible, .band :focus-visible, .voice :focus-visible, .surgery :focus-visible, .closing :focus-visible, .menu :focus-visible { outline-color: var(--sky); }
::selection { background: #d6e5f6; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 1100; left: 12px; top: -60px; padding: 10px 16px; border-radius: 10px; background: var(--white); }
.skip:focus { top: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.02em; }
h2 em, h1 em { font-style: italic; }
h3 { font-family: var(--display); font-weight: 400; font-size: clamp(25px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.005em; }
.lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.fine { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.btn {
  --bg: var(--navy); --fg: var(--white); --fill: var(--navy-deep);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .25s var(--ease), box-shadow .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 16px 34px -18px rgba(8, 19, 31, .6); }
.btn:active { transform: scale(.97); }
.btn-arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -12px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 14px; transition: transform .55s var(--ease); }
.btn:hover .btn-arrow { transform: rotate(45deg); }
.btn-light { --bg: var(--white); --fg: var(--night); --fill: #e6eef7; }
.btn-light .btn-arrow { background: var(--navy); color: var(--white); }
.btn-outline { --bg: transparent; --fg: var(--navy); --fill: rgba(22, 63, 107, .08); border-color: #c5cfdb; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link::after { content: '↗'; font-size: 13px; transition: transform .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: right bottom; }
.link:hover::after { transform: translate(2px, -2px); }
.link-light { color: var(--white); }
.link-sm { font-size: 14px; }
.ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 500; color: var(--white); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); color: var(--ink); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.header-inner { max-width: calc(var(--max) + var(--gutter) * 2); margin: auto; height: var(--header-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; transition: height .5s var(--ease); }
.site-header.is-scrolled .header-inner { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -.12em; padding-right: 4px; }
.brand-mark span { opacity: .45; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.brand-name small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 6px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; transition: background-color .25s; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.site-header.is-scrolled .nav a:hover { background: var(--ivory); }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .4s var(--ease); }
.nav a.is-active::after { transform: scale(1); }
.site-header .btn-sm { --bg: var(--white); --fg: var(--night); --fill: #e6eef7; }
.site-header.is-scrolled .btn-sm { --bg: var(--navy); --fg: var(--white); --fill: var(--navy-deep); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; }
.menu-toggle span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin-left: -8px; border-radius: 1px; background: currentColor; transition: transform .45s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 490;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--white);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .75s var(--ease-io), visibility 0s .75s;
}
.menu-open { overflow: hidden; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .75s var(--ease-io), visibility 0s; }
.menu-open .site-header { background: transparent; color: var(--white); box-shadow: none; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--display); font-size: clamp(32px, 9vw, 46px); line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu nav a small { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sky-dim); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .45s; }
.menu-foot { display: grid; gap: 16px; opacity: 0; transition: opacity .6s .5s var(--ease); }
.menu-open .menu-foot { opacity: 1; }
.menu-foot p { font-size: 15px; color: var(--on-dark-muted); }
.menu-call { text-align: center; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.hx { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: var(--night); color: var(--white); }
.hx-stage { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: flex-end; align-items: flex-end; padding-right: 4vw; }
.hx-light { position: absolute; inset: 0; background: radial-gradient(ellipse 38% 55% at 72% 46%, rgba(120, 165, 220, .34), transparent 70%), radial-gradient(ellipse 70% 40% at 72% 100%, rgba(40, 80, 130, .35), transparent 70%), linear-gradient(180deg, #0a1726, var(--night)); }
.hx-num { position: absolute; right: 2vw; top: 50%; transform: translateY(-56%); font-family: var(--display); font-weight: 300; line-height: .8; letter-spacing: -.06em; font-size: clamp(320px, 44vw, 760px); color: transparent; -webkit-text-stroke: 1px rgba(185, 211, 239, .26); user-select: none; }
.hx-portrait { position: relative; height: min(90svh, 880px); width: auto; max-width: none; transform-origin: 50% 100%; }
.hx-floor { position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(180deg, rgba(8, 19, 31, 0), var(--night) 92%); }
.hx-copy { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; }
.hx-copy > * { max-width: 600px; }
.hx-eyebrow { color: var(--sky-dim); margin-bottom: 24px; }
.hx-title { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 7.2vw, 116px); line-height: .96; letter-spacing: -.028em; margin-bottom: 28px; }
.hx-title em { color: var(--sky); font-size: .84em; }
.hx-lead { font-size: 18px; line-height: 1.65; color: var(--on-dark); max-width: 440px; margin-bottom: 36px; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hx-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 64px; }
.hx-fact { display: grid; gap: 4px; padding: 20px 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.hx-fact strong { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.hx-fact > span { font-size: 14px; color: var(--on-dark-muted); }
.hx-hint { display: none; }
.hx-ready .hx-facts { position: absolute; inset: 0; grid-template-columns: 1fr; align-content: center; padding-top: var(--header-h); pointer-events: none; }
.hx-ready .hx-fact { grid-area: 1 / 1; border: 0; padding: 0; max-width: 620px; visibility: hidden; }
.hx-ready .hx-fact strong { font-size: clamp(64px, 8vw, 128px); line-height: .95; letter-spacing: -.025em; }
.hx-ready .hx-fact > span { margin-top: 14px; font-size: 18px; color: var(--on-dark); max-width: 380px; }
.hx-ready .hx-hint { display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .65); animation: fade-in 1s 2s both; }
.hx-hint i { width: 1px; height: 34px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); transform-origin: top; animation: hint-drop 2s var(--ease) infinite; }
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--white); }
.band-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.band-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; filter: saturate(.5) brightness(.4); will-change: transform; }
.band-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 19, 31, .6), rgba(8, 19, 31, .2) 50%, rgba(8, 19, 31, .75)); }
.band-inner { padding-block: clamp(120px, 17vw, 220px); }
.manifesto { max-width: 1000px; font-family: var(--display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.14; letter-spacing: -.015em; }
.manifesto .w { opacity: .22; transition: opacity .5s var(--ease), color .5s var(--ease); }
.manifesto .w.lit { opacity: 1; }
.voice { background: var(--night); color: var(--white); }
.voice-media { position: relative; overflow: hidden; height: 56vh; }
.voice-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.7); }
.voice-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 19, 31, 0) 55%, var(--night)); }
.voice-copy { padding: 40px var(--gutter) var(--section); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.voice .eyebrow { color: var(--sky-dim); }
.voice h2 em { color: var(--sky); }
.voice .lede { color: var(--on-dark-muted); }
.voice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 48px; }
.voice-list li { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.voice-list .ico { color: var(--sky-dim); margin-bottom: 18px; }
.voice-list h3 { margin-bottom: 8px; }
.voice-list p { font-size: 15px; color: var(--on-dark-muted); max-width: 36ch; }
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.areas { padding-bottom: calc(var(--section) * .6); }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { overflow: hidden; border-radius: var(--radius); background: var(--ivory); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(17, 24, 33, .4); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #e4e0d8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); filter: saturate(.92); }
.card-body { padding: 26px 28px 32px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p:last-child { font-size: 15px; color: var(--muted); }
.path { background: var(--ivory); }
.path-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.path-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 30px 0 20px; }
.timeline { position: relative; padding-left: 44px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; }
.timeline::before { background: #d6d2c8; }
.timeline::after { background: var(--navy); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; padding-bottom: 46px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -44px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--navy); transition: background-color .6s var(--ease) .2s; }
.timeline li.visible::before { background: var(--navy); }
.timeline h3 { margin-bottom: 6px; }
.timeline p:last-child { color: var(--muted); max-width: 46ch; }
.surgery { background: var(--night); color: var(--white); padding-block: var(--section); }
.surgery-media { margin-bottom: clamp(56px, 7vw, 96px); }
.surgery-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; border-radius: 14px; filter: saturate(.7); }
.surgery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); }
.surgery .eyebrow { color: var(--sky-dim); }
.surgery h2 em { color: var(--on-dark-muted); }
.surgery .lede { color: var(--on-dark-muted); }
.surgery-list { margin-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.surgery-list li { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.surgery-list li::before { content: ''; flex: 0 0 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--sky-dim); }
.consults-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.consult { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.consult h3 { font-size: clamp(34px, 3.4vw, 46px); margin-bottom: 12px; }
.consult > p:not(.label):not(.fee):not(.included) { color: var(--muted); max-width: 36ch; }
.consult-voice { background: var(--ivory); border-color: transparent; }
.included { margin-top: 16px; padding: 6px 14px; border-radius: 999px; background: #e3ecf6; color: var(--navy); font-size: 13px; font-weight: 700; }
.fee { display: grid; gap: 2px; margin: auto 0 22px; padding-top: 32px; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.fee span { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visit { background: var(--ivory); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit-info address { margin: 6px 0 18px; font-size: 18px; line-height: 1.7; }
.contact { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 40px; margin-top: 34px; padding-top: 26px; border-top: 1px solid #ddd8cd; }
.contact dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin-top: 4px; font-size: 17px; font-weight: 600; }
.contact a:hover { color: var(--navy); }
.visit-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: #e4e0d8; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(64px, 8vw, 104px); }
.tips .ico { color: var(--navy); margin-bottom: 16px; }
.tips h3 { font-size: 24px; margin-bottom: 6px; }
.tips p { font-size: 15px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); }
.accordion { border-top: 1px solid var(--line); }
.accordion:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; transition: color .25s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover, .accordion[open] > summary { color: var(--navy); }
.accordion-body { padding: 0 48px 24px 0; }
.accordion-body p { color: var(--muted); }
.plus { position: relative; flex: 0 0 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .45s var(--ease); }
.plus::after { transform: rotate(90deg); }
[open] > summary .plus { background: var(--navy); border-color: var(--navy); color: var(--white); transform: rotate(180deg); }
[open] > summary .plus::after { transform: rotate(0); }
.closing { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px); background: var(--navy); color: var(--white); }
.closing-inner { display: flex; align-items: center; gap: 32px; }
.closing-portrait { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: radial-gradient(circle at 50% 35%, #2c5a8c, var(--navy-deep)); border: 1px solid rgba(255, 255, 255, .3); }
.closing-copy { flex: 1; }
.closing .eyebrow { color: var(--sky); margin-bottom: 10px; }
.closing h2 { font-size: clamp(44px, 5.4vw, 72px); }
.site-footer { background: var(--night); color: var(--on-dark-muted); font-size: 14px; padding-top: 72px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; color: var(--white); }
.footer-brand .brand-mark { font-size: 44px; }
.footer-brand strong { display: block; font-size: 15px; margin-bottom: 4px; }
.footer-brand p { color: var(--on-dark-muted); }
.site-footer .label { color: var(--white); margin-bottom: 10px; }
.site-footer p { line-height: 1.8; }
.site-footer a:not(.link):hover { color: var(--white); }
.site-footer .link { color: var(--sky); margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 13px; }
.footer-bottom a, #motion-toggle { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
#motion-toggle { padding: 0; border: 0; background: none; font-size: 13px; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 400; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 16px 32px -14px rgba(8, 19, 31, .6); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .25s; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--navy-deep); }
.wa-float svg { width: 26px; height: 26px; }
.action-bar { display: none; position: fixed; inset: auto 0 0; z-index: 450; grid-template-columns: 1fr 1.8fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .6s var(--ease); }
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 50px; padding: 0 14px; gap: 10px; }
.menu-open .action-bar { transform: translateY(110%); }
.js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.js-motion .reveal.visible { opacity: 1; transform: none; }
.js-motion .reveal h2 { clip-path: inset(0 -6% 100% -6%); transform: translateY(34px); transition: clip-path 1.4s var(--ease) calc(var(--d, 0s) + .1s), transform 1.4s var(--ease) calc(var(--d, 0s) + .1s); }
.js-motion .reveal.visible h2 { clip-path: inset(-14% -6% -20% -6%); transform: none; }
.js-motion .reveal .card-media img, .js-motion .visit-media.reveal img, .js-motion .voice-media.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-io) var(--d, 0s), transform 2s var(--ease) var(--d, 0s), filter 1s var(--ease); transform: scale(1.12); }
.js-motion .reveal.visible .card-media img, .js-motion .visit-media.reveal.visible img, .js-motion .voice-media.reveal.visible img { clip-path: inset(0); transform: none; }
.js-motion .reveal.visible.card:hover .card-media img { transform: scale(1.04); transition-delay: 0s; }
.js-motion .voice-media.reveal, .js-motion .visit-media.reveal, .js-motion .surgery-media.reveal { opacity: 1; transform: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hint-drop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
.motion-paused .reveal, .motion-paused .reveal h2, .motion-paused .reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.motion-paused .manifesto .w { opacity: 1; }
.motion-paused .timeline::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; transition: none !important; }
.js-motion .reveal, .js-motion .reveal h2, .js-motion .reveal img { opacity: 1; transform: none; clip-path: none; }
.manifesto .w { opacity: 1; }
.timeline::after { transform: scaleY(1); }}
@media (min-width: 861px) {.voice { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.voice-media { position: sticky; top: 0; height: 100vh; }
.voice-media::after { background: linear-gradient(90deg, rgba(8, 19, 31, 0) 60%, var(--night)); }
.voice-copy { margin: 0; max-width: 640px; padding: var(--section) clamp(32px, 5vw, 80px); }
.voice-list { grid-template-columns: 1fr; }
.voice-list li { padding-block: 34px; }
.path-head { position: sticky; top: 120px; }}
@media (max-width: 1100px) {.nav a { padding-inline: 10px; }
.tips { grid-template-columns: 1fr 1fr; }
.footer-grid { grid-template-columns: 1fr 1fr; }}
@media (max-width: 860px) {:root { --header-h: 68px; }
.nav, .site-header .btn-sm { display: none; }
.menu-toggle { display: block; }
.brand-name small { display: none; }
.brand-mark { font-size: 34px; }
.hx-stage { justify-content: center; padding-right: 0; }
.hx-light { background: radial-gradient(ellipse 80% 45% at 50% 70%, rgba(120, 165, 220, .32), transparent 70%), linear-gradient(180deg, #0a1726, var(--night)); }
.hx-num { right: auto; left: 50%; top: auto; bottom: 14%; transform: translateX(-50%); font-size: 96vw; }
.hx-portrait { height: 52svh; }
.hx-copy { justify-content: flex-start; padding-top: calc(var(--header-h) + 28px); padding-bottom: 0; }
.hx-title { font-size: clamp(46px, 12.4vw, 62px); margin-bottom: 18px; }
.hx-lead { font-size: 16px; margin-bottom: 0; max-width: 32ch; }
.hx-actions { display: none; }
.hx-facts { grid-template-columns: 1fr; padding-bottom: 40px; }
.hx-ready .hx-facts { align-content: start; padding-top: calc(var(--header-h) + 40px); }
.hx-ready .hx-fact strong { font-size: clamp(52px, 14vw, 72px); }
.hx-ready .hx-fact > span { font-size: 16px; }
.hx-ready .hx-hint { bottom: calc(96px + env(safe-area-inset-bottom)); }
.lede { font-size: 17px; }
.voice-media { height: 44vh; }
.voice-list { grid-template-columns: 1fr 1fr; column-gap: 18px; margin-top: 32px; }
.voice-list li { padding: 20px 0; }
.voice-list .ico { width: 26px; height: 26px; margin-bottom: 12px; }
.voice-list h3 { font-size: 21px; }
.voice-list p { font-size: 14px; line-height: 1.55; }
.areas-grid { grid-template-columns: 1fr; gap: 14px; }
.card { display: grid; grid-template-columns: 38% 1fr; }
.card-media { aspect-ratio: auto; min-height: 150px; }
.card-body { padding: 18px 18px 20px; }
.card-body h3 { font-size: 22px; }
.path-grid, .surgery-grid, .consults-grid, .visit-grid, .faq-grid { grid-template-columns: 1fr; }
.timeline { padding-left: 34px; }
.timeline li::before { left: -34px; }
.timeline li { padding-bottom: 32px; }
.surgery-media img { aspect-ratio: 4 / 3; }
.surgery-list li { font-size: 24px; padding: 18px 0; }
.contact { grid-template-columns: 1fr 1fr; }
.tips { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.tips h3 { font-size: 21px; }
.tips p { font-size: 14px; }
.closing-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
.closing-portrait { width: 76px; height: 76px; }
.footer-grid { grid-template-columns: 1fr; gap: 28px; }
.site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.wa-float { display: none; }
.action-bar { display: grid; }}
@media (max-width: 359px) {.voice-list, .tips { grid-template-columns: 1fr; }
.hx-title { font-size: 42px; }}
@media (min-width: 861px) {.footer-bottom { padding-right: calc(var(--gutter) + 72px); }}
.hx-ready .hx-portrait, .hx-ready .hx-num, .hx-ready .hx-fact { will-change: transform, opacity; }
.hx-num { contain: layout paint; }
@media (min-width: 861px) {.areas-h .areas { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: calc(var(--header-h) + 24px) 56px; }
.areas-h .areas .section-head { margin-bottom: 40px; }
.areas-h .areas-grid { display: flex; gap: 28px; width: max-content; max-width: none; margin: 0; }
.areas-h .card { flex: none; width: min(40vw, 580px); }
.areas-h .card-media { aspect-ratio: 16 / 11; }}
.hx-ready .reveal h2 { clip-path: none !important; transform: none !important; transition: none !important; }
.voice, .surgery, .closing, .band { position: relative; }
.spotlight { position: absolute; left: 0; top: 0; z-index: 0; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(130, 175, 230, .16), rgba(130, 175, 230, 0) 65%); pointer-events: none; opacity: 0; visibility: hidden; will-change: transform; }
.voice > :not(.spotlight), .surgery > :not(.spotlight), .closing > :not(.spotlight) { position: relative; z-index: 1; }
.voice > .voice-media { position: relative; }
@media (min-width: 861px) {.voice > .voice-media { position: sticky; }}
.band-inner { position: relative; z-index: 1; }
.hx::after, .band::after, .voice::after, .surgery::after, .closing::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.closing-portrait { animation: halo 3.4s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(185, 211, 239, .45); } 70%, 100% { box-shadow: 0 0 0 18px rgba(185, 211, 239, 0); } }
@media (min-width: 861px) {.areas-h .card-media { aspect-ratio: auto; height: min(36vh, 380px); }}
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps-row li { position: relative; padding: 32px 28px 34px; border-radius: var(--radius); background: var(--ivory); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.steps-row li:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(17, 24, 33, .35); }
.steps-row .ico { color: var(--navy); margin-bottom: 26px; }
.step-n { position: absolute; top: 28px; right: 26px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #a3abb6; }
.steps-row h3 { margin-bottom: 8px; }
.steps-row p { font-size: 15px; color: var(--muted); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.visit-map { aspect-ratio: 4 / 3; }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
@media (max-width: 1100px) {.steps-row { grid-template-columns: 1fr 1fr; }}
@media (max-width: 860px) {.steps-row { grid-template-columns: 1fr 1fr; gap: 12px; }
.steps-row li { padding: 22px 18px 24px; }
.steps-row .ico { width: 26px; height: 26px; margin-bottom: 16px; }
.step-n { top: 20px; right: 16px; }
.steps-row h3 { font-size: 21px; }
.steps-row p { font-size: 14px; }
.steps-cta .btn { width: 100%; }}
@media (max-width: 359px) {.steps-row { grid-template-columns: 1fr; }}
.hx-stage { bottom: auto; height: 100svh; }
@media (pointer: coarse) {.link { padding-block: 12px; margin-block: -12px; background-position: left bottom 9px; }
.link:hover { background-position: right bottom 9px; }
.contact a, .site-footer p a, .footer-bottom a, #motion-toggle { display: inline-block; padding-block: 11px; margin-block: -11px; }
.brand { padding-block: 5px; }
.accordion summary { min-height: 60px; }}
@media (max-width: 860px) {.hx-copy { min-height: 0; padding-bottom: 0; }
.hx-portrait { height: min(54svh, 470px); }
.hx-num { bottom: 16%; font-size: min(96vw, 420px); }
.hx:not(.hx-ready) .hx-copy { min-height: 100svh; }
.hx-facts { padding-top: 32px; }
:root:not(.hx-ready) .hx-facts { margin-top: 0; }
:root { --section: 76px; }
.section-head { margin-bottom: 32px; }
h2 { font-size: clamp(38px, 10.6vw, 48px); }
.lede { margin-top: 16px; }
.card-body p:last-child, .steps-row p, .tips p, .voice-list p { line-height: 1.55; }
.consult { padding: 28px 22px; }
.consult h3 { font-size: 34px; }
.fee { padding-top: 22px; margin-bottom: 16px; }
.surgery-media { margin-bottom: 44px; }
.closing h2 { font-size: 40px; }
.band-inner { padding-block: 104px; }}
@media (max-width: 360px) {.hx-title { font-size: 40px; }
.steps-row h3, .tips h3, .voice-list h3 { font-size: 19px; }}
.hx-num {
  background: linear-gradient(180deg, rgba(185, 211, 239, .22), rgba(185, 211, 239, .02) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1px rgba(185, 211, 239, .42);
}
.band-media img { filter: saturate(.55) brightness(.58); }
.band-media::after { background: linear-gradient(180deg, rgba(8, 19, 31, .5), rgba(8, 19, 31, .15) 45%, rgba(8, 19, 31, .7)); }
.site-header.is-scrolled.on-dark { background: rgba(8, 19, 31, .82); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.is-scrolled.on-dark .btn-sm { --bg: var(--white); --fg: var(--night); --fill: #e6eef7; }
.site-header.is-scrolled.on-dark .nav a:hover { background: rgba(255, 255, 255, .1); }
.step-n { color: #6b7480; }
.pro-strip { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pro-strip .eyebrow { color: var(--sky-dim); margin-bottom: 16px; }
.pro-strip ul { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-strip li { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.consult-btn { margin-top: 4px; }
.consult .fee { margin-bottom: 20px; }
.action-bar { box-shadow: 0 -1px 0 var(--line), 0 -14px 34px -16px rgba(8, 19, 31, .28); }
.timeline-toggle { display: none; }
@media (max-width: 860px) {.hx-stage { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.hx-portrait { height: min(48svh, 430px); }
.hx-floor { bottom: calc(70px + env(safe-area-inset-bottom)); height: 18%; }
.hx-stage::after { content: ''; position: absolute; inset: auto 0 0; height: calc(70px + env(safe-area-inset-bottom)); background: var(--night); }
.hx-num { left: auto; right: -4vw; bottom: auto; top: 46%; transform: none; font-size: 64vw; }
.band-inner { padding-block: 84px; }
.voice-copy { padding-bottom: 64px; }
.steps-row { grid-template-columns: 1fr; gap: 0; }
.steps-row li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px 0; border-radius: 0; background: none; border-top: 1px solid var(--line); }
.steps-row li:last-child { border-bottom: 1px solid var(--line); }
.steps-row li:hover { transform: none; box-shadow: none; }
.steps-row .ico { display: none; }
.step-n { position: static; grid-row: 1 / 3; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--navy); }
.steps-row h3 { font-size: 23px; margin-bottom: 4px; }
.steps-row p { font-size: 15px; }
.steps-cta { margin-top: 32px; }
.consult-btn { width: 100%; }
.timeline.is-compact li > p:last-child { display: none; }
.timeline.is-compact li { padding-bottom: 22px; }
.timeline-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.pro-strip li { font-size: 13px; padding: 8px 14px; }}
@media (max-width: 860px) {.timeline-toggle { margin-top: -14px; }}
.surgery-media { overflow: hidden; border-radius: 14px; padding: 0; width: calc(100% - var(--gutter) * 2); max-width: var(--max); }
html, body { overflow-x: clip; }

/* Rendimiento: menos desenfoque en celular y capas estables */
@media (max-width: 860px) {
  .site-header.is-scrolled, .action-bar { -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); }
}
.hx::after, .band::after, .voice::after, .surgery::after, .closing::after { transform: translateZ(0); }

/* ---------- Contenido del doctor (v27): procedimientos, currículum, cirugías ---------- */
.proc-group { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.procs .accordion + .proc-group { border-top: 1px solid var(--line); padding-top: 44px; margin-top: 0; }
.procs .accordion:has(+ .proc-group) { margin-bottom: 0; }
.path-portrait { max-width: 220px; margin: 4px 0 28px; }
.path-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%; border-radius: 14px; }
.cv { margin-top: clamp(64px, 8vw, 112px); }
.cv-acc { max-width: 860px; }
.cv-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.cv-list li:first-child { border-top: 0; padding-top: 4px; }
.cv-list strong { color: var(--ink); font-weight: 600; }
.accordion-body > p + .cv-list { margin-top: 8px; }
.surgery-list li strong { display: block; font-weight: 400; }
.surgery-list li span { display: block; margin-top: 6px; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); max-width: 46ch; }
.surgery-also { margin: -6px 0 28px; font-size: 15px; color: var(--on-dark-muted); }
.surgery-media img { object-position: 30% 38%; }
@media (max-width: 860px) {
  .path-portrait { max-width: 180px; }
  .surgery-list li span { font-size: 14px; }
}
.contact > div { min-width: 0; }
.contact dd, .site-footer a[href^="mailto"] { overflow-wrap: anywhere; }
.procs header .fine { margin-top: 14px; }
