:root {
  --bg: #0a0b0d;
  --bg-alt: #0f1013;
  --card: #131418;
  --line: rgba(201, 169, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --gold: #c9a96a;
  --gold-soft: #e2cb98;
  --text: #ece8e1;
  --muted: #a7a299;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
picture img { width: 100%; }
figure { margin: 0; }

.container { width: min(1180px, 88%); margin: 0 auto; }
.narrow { width: min(780px, 88%); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.55rem; margin-bottom: .6rem; }
em { font-style: italic; color: var(--gold); font-weight: 400; }

.eyebrow {
  font-size: .76rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  font-weight: 400;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }

/* Botones */
.btn {
  display: inline-block;
  padding: 1rem 2.1rem;
  background: var(--gold);
  color: #12100b;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--small { padding: .65rem 1.3rem; font-size: .7rem; }
.link-arrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text);
  display: inline-flex; gap: .6rem; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: .3rem; transition: color .3s, border-color .3s;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow:hover span { transform: translateX(4px); }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.4rem 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
/* El fondo difuminado va en ::before: si el blur estuviera en .nav, el menú móvil (fixed) quedaría recortado a la altura de la barra */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(10, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  padding: .85rem 0;
  border-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; }
.nav__links { white-space: nowrap; display: flex; align-items: center; gap: 1.7rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 60; }
.nav__toggle span { position: absolute; left: 0; right: 0; height: 1px; background: var(--text); transition: .3s; }
.nav__toggle span:first-child { top: 6px; }
.nav__toggle span:last-child { bottom: 6px; }
.nav__toggle.open span:first-child { top: 10px; transform: rotate(45deg); }
.nav__toggle.open span:last-child { bottom: 11px; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7.5rem 0 4rem;
  position: relative;
  background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(201,169,106,.09), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: center; gap: 4.5rem; align-items: center; }
.hero__lead { max-width: 500px; color: var(--muted); font-size: 1.05rem; margin: 2rem 0 2.8rem; }
.hero__actions { display: flex; gap: 2.2rem; align-items: center; flex-wrap: wrap; }
.hero__creds {
  margin-top: 3.6rem; font-size: .72rem; letter-spacing: .28em; color: var(--muted);
  display: flex; align-items: center; gap: 1rem;
}
.hero__creds i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero__photo { position: relative; animation: fadeUp 1.4s var(--ease) both .2s; width: min(440px, calc(72vh * .75)); }
.hero__photo::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 1px solid var(--line); border-radius: 300px 300px 0 0;
}
.hero__photo img {
  position: relative;
  aspect-ratio: 3/4; object-fit: cover; object-position: center 20%;
  border-radius: 300px 300px 0 0;
  filter: saturate(.85) contrast(1.02);
}
.hero__text > * { animation: fadeUp 1.2s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .1s; }
.hero__text > *:nth-child(3) { animation-delay: .2s; }
.hero__text > *:nth-child(4) { animation-delay: .3s; }
.hero__text > *:nth-child(5) { animation-delay: .4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Franja de confianza */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 2.2rem 0; }
.trust__inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.trust p { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 1rem 2.6rem; flex: 1; justify-content: space-between; }
.trust li { font-family: var(--serif); font-size: 1.15rem; color: var(--text); opacity: .85; line-height: 1.3; }

/* Secciones */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 3rem; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6rem; align-items: center; }
.about__photo { position: relative; }
.about__photo img { aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; filter: saturate(.75); }
.about__photo figcaption {
  position: absolute; left: -1px; bottom: 2rem; background: var(--bg);
  padding: .7rem 1.4rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.about__text > p { color: var(--muted); margin-bottom: 1.1rem; max-width: 560px; }
.cv { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.cv div { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cv dt { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); padding-top: .35rem; }
.cv dd { font-size: .98rem; }
.cv dd span { color: var(--muted); font-size: .9rem; }

/* Especialidades */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.card { background: var(--bg-alt); padding: 2.6rem 2.4rem; transition: background .4s var(--ease); }
.card:hover { background: var(--card); }
.card__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; margin-bottom: 1.6rem; }
.card p { color: var(--muted); font-size: 1rem; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.steps li { border-top: 1px solid var(--line); padding-top: 2rem; }
.steps span { display: block; font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--gold); margin-bottom: 1rem; line-height: 1; }
.steps p { color: var(--muted); font-size: 1rem; }

/* La consulta */
.office { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.office__text > p { color: var(--muted); margin-bottom: 2rem; }
.hours { border-top: 1px solid var(--line); margin-bottom: 2.4rem; }
.hours div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); padding-top: .3rem; }
.office__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.office__gallery figure:last-child { margin-top: 4rem; }
.office__gallery img { aspect-ratio: 3/4; object-fit: cover; filter: saturate(.8); }

/* FAQ */
.faq__group {
  font-family: var(--sans); font-size: .7rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 3.2rem 0 .4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.faq__group:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 200; font-size: 1.5rem; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 1rem; max-width: 680px; }

/* Contacto */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact__lead { color: var(--muted); margin-bottom: 2.2rem; }
.contact__list { list-style: none; margin-bottom: 2.6rem; border-top: 1px solid var(--line); }
.contact__list li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.contact__list span { color: var(--gold); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; padding-top: .3rem; }
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--gold); }
.form { border: 1px solid var(--line); padding: 2.8rem; display: grid; gap: 1.6rem; background: var(--bg); }
.form label { display: grid; gap: .5rem; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: .7rem 0; color: var(--text); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { justify-self: start; }
.form__note { font-size: .75rem; color: var(--muted); }

/* Mapa */
.map iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.9); }

/* Footer */
.footer { padding: 5rem 0 3rem; border-top: 1px solid var(--line-soft); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.footer__logo { width: 64px; height: 64px; margin-bottom: .8rem; }
.footer__name { font-family: var(--serif); font-size: 1.6rem; }
.footer__creds { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.social { display: flex; gap: 1rem; margin-top: 1.8rem; }
.social a {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); transition: background .3s, color .3s;
}
.social a:hover { background: var(--gold); color: var(--bg); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__handle { color: var(--muted); font-size: .85rem; }
.footer__legal { margin-top: 2.6rem; font-size: .72rem; color: var(--muted); opacity: .7; max-width: 520px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  display: flex; align-items: center; gap: .7rem;
  background: #25d366; color: #fff;
  padding: .55rem 1.3rem .55rem .55rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .12), 0 4px 12px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37, 211, 102, .18), 0 4px 12px rgba(0,0,0,.35); }
.wa-float__icon {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0;
}
.wa-float__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPulse 2.2s ease-out infinite;
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1320px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
    padding: 2.5rem; background: var(--bg-alt); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.open { transform: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 7rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 4rem; }
  .hero__photo { max-width: 420px; width: 88%; margin: 0 auto; justify-self: center; }
  .about, .office, .contact__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .about__photo { max-width: 460px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero__grid { justify-content: stretch; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust ul { grid-template-columns: 1fr; justify-content: start; }
}
@media (max-width: 600px) {
  .section { padding: 3.75rem 0; }
  .section__head { margin-bottom: 2rem; }
  .hero { min-height: auto; padding: 6.5rem 0 3rem; }
  .hero__grid { gap: 2.5rem; }
  .trust { padding: 1.6rem 0; }
  .about, .office, .contact__inner { gap: 2.5rem; }
  .card { padding: 2rem 1.6rem; }
  .steps { gap: 1.8rem; }
  .faq__group { margin-top: 2.4rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .wa-float { padding: .5rem; }
  .wa-float__label { display: none; }
  .cv div, .hours div, .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
  .office__gallery figure:last-child { margin-top: 2rem; }
  .form { padding: 2rem; }
  .brand span { font-size: 1.15rem; }
}

/* ===== Páginas de especialidad ===== */
.page-hero {
  padding: 9rem 0 4rem;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201,169,106,.08), transparent 70%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.page-hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 1.6rem 0 2.4rem; }
.breadcrumb { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.2rem; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .6rem; opacity: .5; }

.section--tight { padding: 4.5rem 0; }
.section--alert { padding: 0; }  /* el recuadro queda pegado a las secciones vecinas */
.prose p { color: var(--muted); margin-bottom: 1.1rem; }
.bullets { list-style: none; }
.bullets li { position: relative; padding: .55rem 0 .55rem 1.6rem; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.bullets li::before { content: "◆"; position: absolute; left: 0; top: .85rem; font-size: .55rem; color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }

.alert { border: 1px solid rgba(214, 120, 90, .45); background: rgba(214, 120, 90, .06); padding: 2rem 2.2rem; }
.alert__title { font-family: var(--serif); font-size: 1.5rem; color: #e0a088; margin-bottom: .6rem; }
.alert p { color: var(--text); opacity: .9; }
.alert strong { font-weight: 500; color: #f0c2b0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compare__item { background: var(--bg); padding: 2.6rem 2.4rem; }
.compare__item p { color: var(--muted); }
.compare__note { color: var(--muted); max-width: 760px; margin-top: 2rem; }
.compare__note strong, .prose strong { color: var(--gold-soft); font-weight: 400; }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.cta h2 { margin-bottom: 0; }
.cta p { color: var(--muted); max-width: 520px; }

.card__more { display: inline-block; margin-top: 1.2rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
a.card { display: block; color: inherit; }
a.card:hover .card__more { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .two-col, .compare { grid-template-columns: 1fr; gap: 2.5rem; }
  .compare { gap: 1px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 7rem 0 2.8rem; }
  .section--tight { padding: 3.2rem 0; }
  .breadcrumb { margin-bottom: 1.6rem; }
  .compare__item { padding: 2rem 1.6rem; }
  .alert { padding: 1.6rem; }
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }
.prose .bullets a { color: var(--text); border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.prose .bullets a:hover { color: var(--gold); border-color: var(--gold); }
.others { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line); width: 100%; }
.others__title { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.others__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.others__links a {
  font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; transition: color .2s, border-color .2s;
}
.others__links a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
.others--faq { text-align: center; margin-top: 3rem; border-top: none; padding-top: 0; }

/* ===== Recuadros de foto pendiente (se sustituyen por <picture> cuando lleguen las fotos) ===== */
.ph {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed rgba(201,169,106,.45); background: rgba(201,169,106,.04);
  color: var(--gold); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; padding: 1.5rem;
  aspect-ratio: 3/4; width: 100%;
}
.hero__photo .ph { position: relative; border-radius: 300px 300px 0 0; object-position: center; }
.about__photo .ph { aspect-ratio: 4/5; }

/* ===== Cómo trabajo (equipamiento) ===== */
.tech { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tech li { background: var(--bg); padding: 2.2rem 2rem; }
.tech h3 { font-size: 1.4rem; }
.tech p { color: var(--muted); font-size: 1rem; }
.tech__note { color: var(--muted); margin-top: 1.8rem; max-width: 760px; }

/* ===== Para colegas (referidos) ===== */
.referral { border: 1px solid var(--line); padding: 3rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; background: var(--bg); }
.referral p { color: var(--muted); margin-bottom: 1rem; }
.referral .bullets { margin-bottom: 0; }
.referral__cta { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.general-note { color: var(--muted); margin-top: 2rem; font-size: 1rem; }
.general-note strong { color: var(--gold-soft); font-weight: 400; }

@media (max-width: 900px) {
  .tech { grid-template-columns: 1fr 1fr; }
  .referral { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .tech { grid-template-columns: 1fr; }
  .tech li { padding: 1.8rem 1.6rem; }
  .referral { padding: 2rem 1.6rem; }
}

/* Datos pendientes de confirmar (se ven en rojizo para localizarlos; quitar la clase al completarlos) */
.pendiente { color: #e0a088; border-bottom: 1px dashed currentColor; }
.footer__handle a:hover { color: var(--gold); }
.tech__note strong { color: var(--gold-soft); font-weight: 400; }
