:root {
  --ink: #1a1f2c;
  --ink-soft: #303746;
  --pearl: #f8f9fa;
  --white: #ffffff;
  --gold: #c5a880;
  --gold-deep: #a98b62;
  --line: rgba(26, 31, 44, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(22, 28, 40, 0.10);
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  transition: top .25s ease;
}
.skip-link:focus { top: 16px; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 130px 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, transform .4s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 30px rgba(20, 26, 38, .08);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--gold);
  font: 600 23px/1 var(--serif);
  transform: rotate(45deg);
}
.brand-mark { text-indent: 0; --rotation: -45deg; font-size: 0; }
.brand-mark::before { content: "N"; font: 600 23px/1 var(--serif); transform: rotate(var(--rotation)); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong {
  color: var(--white);
  font: 600 20px var(--serif);
  letter-spacing: .02em;
}
.brand-copy small {
  margin-top: 4px;
  color: rgba(255,255,255,.66);
  font-size: 8.5px;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.scrolled .brand-mark { border-color: rgba(26,31,44,.25); }
.scrolled .brand-copy strong { color: var(--ink); }
.scrolled .brand-copy small { color: rgba(26,31,44,.58); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a:not(.nav-cta) {
  position: relative;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right .3s ease;
}
.nav-links > a:not(.nav-cta):hover::after { right: 0; }
.nav-links > a:not(.nav-cta):hover { color: var(--white); }
.scrolled .nav-links > a:not(.nav-cta) { color: var(--ink-soft); }
.scrolled .nav-links > a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  padding: 12px 20px;
  border: 1px solid rgba(197,168,128,.75);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.scrolled .nav-cta { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.scrolled .menu-toggle span { background: var(--ink); }

.hero {
  position: relative;
  /* Mantiene suficiente altura en pantallas bajas para que los indicadores
     inferiores nunca se monten sobre los botones del hero. */
  min-height: 760px;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  color: var(--white);
  background: #141925 url("https://images.unsplash.com/photo-1551076805-e1869043e560?auto=format&fit=crop&w=1920&q=80") center 45% / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12,16,24,.91) 0%, rgba(12,16,24,.72) 48%, rgba(12,16,24,.38) 100%),
    linear-gradient(180deg, rgba(10,14,21,.32), rgba(10,14,21,.5));
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.hero-content { padding-top: 96px; }
.eyebrow, .section-label {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.hero h1, .section h2, .contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero h1 { max-width: 880px; font-size: clamp(52px, 6.4vw, 94px); line-height: 1.02; }
.hero h1 em, .section h2 em, .contact-section h2 em { color: var(--gold); font-weight: 500; }
.hero-subtitle {
  max-width: 620px;
  margin: 31px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
}
.hero-actions { display: flex; align-items: center; gap: 35px; margin-top: 42px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.button:hover { transform: translateY(-3px); }
.button-gold { background: var(--gold); color: var(--ink); box-shadow: 0 16px 35px rgba(197,168,128,.20); }
.button-gold:hover { background: #d1b793; box-shadow: 0 20px 42px rgba(197,168,128,.32); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .08em;
}
.text-link span { color: var(--gold); font-size: 18px; transition: transform .3s ease; }
.text-link:hover span { transform: translateX(5px); }
.hero-trust {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 58px;
}
.hero-trust > div { display: flex; align-items: center; gap: 13px; }
.hero-trust strong { color: var(--gold); font: 500 22px var(--serif); }
.hero-trust span { max-width: 90px; color: rgba(255,255,255,.54); font-size: 8px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue {
  position: absolute;
  right: 42px;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: right bottom;
  color: rgba(255,255,255,.48);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cue i { position: relative; display: block; width: 56px; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-100%); animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 50%,100% { transform: translateX(100%); } }

.doctor-section { background: var(--white); }
.doctor-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
.doctor-visual { position: relative; padding: 0 0 34px 34px; }
.doctor-visual::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 78%;
  background: var(--pearl); z-index: -1;
}
.image-frame { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.image-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.45); margin: 12px; pointer-events: none; }
.image-frame img { width: 100%; aspect-ratio: 4 / 5.1; object-fit: cover; object-position: center 20%; transition: transform 1.2s ease; }
.doctor-visual:hover .image-frame img { transform: scale(1.025); }
.credential-card {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: min(280px, 72%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 23px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(21,27,39,.22);
}
.credential-card svg { width: 24px; fill: var(--gold); flex: 0 0 auto; }
.credential-card p { margin: 0; display: grid; line-height: 1.35; }
.credential-card strong { font: 500 15px var(--serif); }
.credential-card span { margin-top: 4px; color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.doctor-copy h2, .section-heading h2, .process-copy h2, .contact-section h2 { font-size: clamp(42px, 5vw, 67px); line-height: 1.08; }
.gold-rule { width: 56px; height: 1px; margin: 32px 0; background: var(--gold); }
.doctor-copy > p:not(.section-label) { color: #646a74; font-size: 14px; }
.doctor-copy .lead { color: var(--ink-soft); font-size: 16px; }
.credentials { display: grid; gap: 23px; margin-top: 34px; }
.credentials > div { display: flex; align-items: flex-start; gap: 16px; }
.credential-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); }
.credential-icon svg { width: 21px; fill: var(--gold-deep); }
.credentials p { display: grid; gap: 3px; margin: 0; }
.credentials strong { font: 500 16px var(--serif); }
.credentials span { color: #747a84; font-size: 12px; }

.specialties-section { position: relative; background: var(--pearl); overflow: hidden; }
.specialties-section::before {
  content: "N"; position: absolute; right: -20px; top: -115px;
  color: rgba(26,31,44,.025); font: 600 420px/1 var(--serif); pointer-events: none;
}
.section-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 80px; margin-bottom: 62px; }
.section-heading > p { margin: 0 0 8px; color: #686f7a; font-size: 13px; }
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.specialty-card {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 34px;
  border: 1px solid rgba(26,31,44,.08);
  background: rgba(255,255,255,.84);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, border-color .5s ease;
}
.specialty-card::before {
  content: ""; position: absolute; inset: auto 0 0; height: 0; background: var(--ink); z-index: 0;
  transition: height .55s cubic-bezier(.22,1,.36,1);
}
.specialty-card > * { position: relative; z-index: 1; }
.specialty-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.specialty-card:hover::before { height: 100%; }
.card-number { position: absolute; right: 24px; top: 18px; color: rgba(26,31,44,.12); font: 500 48px var(--serif); }
.card-icon { width: 67px; height: 67px; display: grid; place-items: center; margin-bottom: 32px; border: 1px solid rgba(197,168,128,.48); }
.card-icon svg { width: 38px; height: 38px; fill: none; stroke: var(--gold-deep); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.specialty-card h3 { margin: 0; font: 500 25px/1.25 var(--serif); }
.specialty-card > p { margin: 8px 0 0; color: var(--gold-deep); font: italic 14px var(--serif); }
.card-line { width: 40px; height: 1px; margin: 25px 0; background: var(--gold); }
.specialty-card .card-description { color: #757b85; font: 12.5px/1.8 var(--sans); }
.specialty-card a { margin-top: auto; padding-top: 24px; color: var(--ink); font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.specialty-card a span { color: var(--gold-deep); margin-left: 8px; font-size: 15px; }
.specialty-card:hover .card-number { color: rgba(255,255,255,.06); }
.specialty-card:hover h3, .specialty-card:hover a { color: var(--white); }
.specialty-card:hover .card-description { color: rgba(255,255,255,.55); }
.specialty-card:hover .card-icon { border-color: rgba(197,168,128,.45); }

.process-section { background: var(--ink); color: var(--white); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 10vw, 150px); align-items: center; }
.section-label-light { color: var(--gold); }
.process-copy > p:not(.section-label) { margin: 30px 0; max-width: 500px; color: rgba(255,255,255,.56); font-size: 13px; }
.button-outline { border-color: rgba(197,168,128,.6); color: var(--white); }
.button-outline:hover { background: var(--gold); color: var(--ink); }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.process-list li:first-child { border-top: 1px solid rgba(255,255,255,.10); }
.process-list li > span { color: var(--gold); font: 500 15px var(--serif); }
.process-list strong { font: 500 21px var(--serif); }
.process-list p { margin: 8px 0 0; color: rgba(255,255,255,.48); font-size: 12px; }

.contact-section { padding: 100px 0; background: linear-gradient(180deg, var(--pearl), #fff); }
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
  padding: 70px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(26,31,44,.07);
}
.contact-panel > div:first-child > p:last-child { max-width: 660px; margin: 28px 0 0; color: #6d737d; font-size: 13px; }
.contact-actions { border-left: 1px solid var(--line); padding-left: 55px; }
.contact-actions .button { width: 100%; }
.contact-actions p { margin: 28px 0 0; color: var(--ink-soft); font: 500 14px/1.6 var(--serif); }
.contact-actions p span { display: block; margin-bottom: 5px; color: #8b9099; font: 600 8px var(--sans); letter-spacing: .18em; text-transform: uppercase; }

.site-footer { padding: 78px 0 28px; background: #121722; color: var(--white); }
.brand-footer .brand-mark { border-color: rgba(255,255,255,.22); }
.footer-main { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 56px; }
.footer-info { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 55px; }
.footer-info span { color: var(--gold); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.footer-info p { margin: 13px 0 0; color: rgba(255,255,255,.54); font-size: 11px; line-height: 1.9; }
.footer-info a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.32); font-size: 8px; letter-spacing: .06em; }
.medical-notice { max-width: 620px; text-align: right; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.specialty-card:nth-child(2) { transition-delay: .12s; }
.specialty-card:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  :root { --container: min(100% - 36px, 780px); }
  .section { padding: 95px 0; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(18,23,34,.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.nav-cta), .scrolled .nav-links > a:not(.nav-cta) { color: var(--white); font-size: 13px; }
  .nav-cta, .scrolled .nav-cta { color: var(--white); padding: 15px 24px; }
  .menu-toggle.active span, .scrolled .menu-toggle.active span { background: var(--white); }
  .hero-content { padding-top: 40px; }
  .hero-trust { gap: 28px; }
  .scroll-cue { display: none; }
  .doctor-grid, .process-grid { grid-template-columns: 1fr; }
  .doctor-grid { gap: 74px; }
  .doctor-visual { max-width: 580px; }
  .credential-card { right: -10px; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-card { min-height: 400px; }
  .contact-panel { grid-template-columns: 1fr; padding: 54px; }
  .contact-actions { border-left: 0; border-top: 1px solid var(--line); padding: 38px 0 0; }
  .footer-main { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  .navbar { min-height: 76px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 18px; }
  .hero { min-height: 780px; background-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(12,16,24,.93), rgba(12,16,24,.64)); }
  .hero h1 { font-size: clamp(44px, 13vw, 65px); }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-trust { bottom: 28px; gap: 17px; justify-content: space-between; }
  .hero-trust > div { gap: 7px; align-items: flex-start; flex-direction: column; }
  .hero-trust strong { font-size: 18px; }
  .hero-trust span { max-width: 80px; font-size: 6.8px; }
  .section { padding: 80px 0; }
  .doctor-copy h2, .section-heading h2, .process-copy h2, .contact-section h2 { font-size: 42px; }
  .doctor-visual { padding: 0 0 25px 18px; }
  .credential-card { width: 84%; right: -4px; padding: 16px; }
  .credential-card strong { font-size: 13px; }
  .specialty-card { padding: 34px 27px 28px; }
  .contact-section { padding: 70px 0; }
  .contact-panel { padding: 38px 24px; gap: 42px; }
  .footer-info { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .medical-notice { text-align: left; }
}
