/* ==========================================================
   Dra. Martha Lombardi — línea gráfica
   Taupe de estudio, crema cálido y acento rosa-oro.
   ========================================================== */
:root {
  --cream: #f7f2ed;
  --sand: #efe6de;
  --line: #e2d6cc;
  --taupe: #5d5754;
  --cocoa: #3a302c;
  --ink: #2c2522;
  --muted: #85776f;
  --rose: #b98a78;
  --rose-deep: #9c6f5e;
  --rose-soft: #ead8ce;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: .01em; }
h2 em { font-style: italic; color: var(--rose-deep); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 400 12px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 22px;
}
.script { font-family: var(--script); font-weight: 400; color: var(--rose-deep); letter-spacing: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  background: var(--cocoa); color: var(--cream);
  font: 400 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--cocoa); border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn--sm { padding: 12px 20px; font-size: 11px; }
.btn--light { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.btn--light:hover { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--cocoa); }
.btn--block { width: 100%; }

.link-arrow {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cocoa); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.link-arrow::after { content: "→"; letter-spacing: 0; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--cream); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__brand img { width: 52px; }
.nav__brand span { font: 400 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cocoa); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--cocoa); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 72px); max-height: 940px;
}
.hero__text {
  align-self: center;
  padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero__title { margin: 0 0 30px; position: relative; }
.hero__first {
  display: block;
  font-size: clamp(64px, 9vw, 132px);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 300;
  color: var(--cocoa);
}
.hero__script {
  display: block;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(54px, 7vw, 104px);
  color: var(--rose-deep);
  margin: -.5em 0 0 1.4em; line-height: 1.2;
}
.hero__lead { max-width: 30em; color: var(--muted); font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 38px 0 48px; }
.hero__motto {
  font: italic 300 20px/1.3 var(--serif); color: var(--muted);
  display: flex; align-items: center; gap: 14px; margin: 0;
}
.hero__motto strong { font: 300 44px/1 var(--serif); font-style: normal; color: var(--rose-deep); }

.hero__media { margin: 0; position: relative; background: var(--taupe); overflow: hidden; }
.hero__media > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__mark { position: absolute; right: 7%; top: 7%; width: clamp(80px, 9vw, 130px); opacity: .9; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--taupe); color: var(--cream); }
.section--dark .eyebrow { color: var(--rose-soft); }
.section--dark h2 em { color: var(--rose-soft); }

.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 680px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__lead { margin: 22px auto 0; max-width: 30em; font-size: 18px; color: var(--muted); }
.section--dark .section__lead { color: rgba(247, 242, 237, .78); }

/* ---------- Tratamientos ---------- */

.service__n { font: 400 12px/1 var(--sans); letter-spacing: .2em; color: var(--rose); }
.tx { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.tx__group { padding: 44px 48px 8px 0; }
.tx__group + .tx__group { padding: 44px 0 8px 48px; border-left: 1px solid var(--line); }
.tx__group h3 { font-size: clamp(32px, 3.4vw, 42px); margin: 18px 0 10px; color: var(--cocoa); }
.tx__intro { color: var(--muted); margin-bottom: 26px; }
.tx__list { list-style: none; margin: 0; padding: 0; }
.tx__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0 16px 30px; position: relative;
  border-top: 1px solid var(--line);
}
.tx__list li::before {
  content: ""; position: absolute; left: 2px; top: 30px;
  width: 14px; height: 1px; background: var(--rose);
}
.tx__name { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.tx__desc { font-size: 15px; color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--rose); z-index: 0;
}
.about__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__text h2 { margin-bottom: 12px; }
.about__text h2 .script { display: block; font-size: .95em; margin-top: .05em; }
.about__role { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--cocoa); margin-bottom: 28px; }
.about__text > p:not(.eyebrow):not(.about__role) { color: var(--muted); }

.creds { list-style: none; margin: 32px 0 0; padding: 0; }
.creds li {
  position: relative; padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink);
}
.creds li::before {
  content: ""; position: absolute; left: 4px; top: 25px;
  width: 14px; height: 1px; background: var(--rose);
}

.about__ig { margin-top: 28px; font-size: 15px; color: var(--muted); }
.about__ig a { color: var(--rose-deep); text-decoration: none; border-bottom: 1px solid var(--rose); white-space: nowrap; }
.fine a { color: var(--rose-soft); }

.quote { margin-top: clamp(72px, 9vw, 120px); text-align: center; }
.quote p {
  font: italic 300 clamp(26px, 3.2vw, 40px)/1.35 var(--serif);
  color: var(--cocoa); max-width: 28em; margin: 0 auto 22px;
}
.quote cite { font: normal 400 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--rose-deep); }

/* ---------- Resultados ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.gallery figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Agendar ---------- */
.booking {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(247, 242, 237, .16);
  padding: clamp(24px, 4vw, 56px);
}
.booking__col { min-width: 0; }
.step { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.step legend {
  padding: 0; margin-bottom: 18px;
  font: 400 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--cream);
}
.step__n { color: var(--rose-soft); margin-right: 10px; }
.hint { color: rgba(247, 242, 237, .6); font-size: 15px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 300 14px/1 var(--sans); color: var(--cream);
  background: transparent; border: 1px solid rgba(247, 242, 237, .3); border-radius: 100px;
  padding: 11px 18px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--cream); }
.chip[aria-checked="true"] { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }

.cal { max-width: 380px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font: 400 22px/1 var(--serif); }
.cal__nav {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: 1px solid rgba(247, 242, 237, .3); color: var(--cream);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { text-align: center; font-size: 11px; letter-spacing: .1em; color: rgba(247, 242, 237, .5); padding: 6px 0; }
.day {
  aspect-ratio: 1; border-radius: 50%;
  background: none; border: 1px solid transparent; color: var(--cream);
  font: 300 15px/1 var(--sans); cursor: pointer; transition: all .15s;
}
.day:hover:not(:disabled) { border-color: rgba(247, 242, 237, .5); }
.day:disabled { color: rgba(247, 242, 237, .22); cursor: default; }
.day.is-today { border-color: rgba(247, 242, 237, .25); }
.day[aria-pressed="true"] { background: var(--cream); color: var(--cocoa); font-weight: 400; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slots .hint { grid-column: 1 / -1; }
.slot {
  padding: 11px 0; font: 300 14px/1 var(--sans); color: var(--cream);
  background: none; border: 1px solid rgba(247, 242, 237, .3); border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.slot:hover { border-color: var(--cream); }
.slot[aria-pressed="true"] { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 242, 237, .7); }
.field small { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font: 300 16px/1.4 var(--sans); color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgba(247, 242, 237, .35);
  padding: 8px 0; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cream); }
.field textarea::placeholder { color: rgba(247, 242, 237, .35); }
.field.is-invalid input { border-bottom-color: #e7b3a3; }

.summary {
  font: italic 300 20px/1.4 var(--serif); color: var(--rose-soft);
  min-height: 1.4em; margin-bottom: 18px;
}
.error { color: #f0c2b3; font-size: 14px; min-height: 1.2em; margin: 0 0 12px; }
.fine { font-size: 13px; color: rgba(247, 242, 237, .55); text-align: center; margin: 14px 0 0; }

.done { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; }
.done img { margin: 0 auto 28px; }
.done h3 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 16px; }
.done p { color: rgba(247, 242, 237, .78); }
.done__actions { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 48px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__tag { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer__links a { text-decoration: none; font-size: 15px; color: var(--cocoa); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.footer__links a:hover { border-color: var(--rose); }
.footer__copy { font-size: 12px; color: var(--muted); margin: 28px 0 0; letter-spacing: .08em; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cocoa); color: var(--cream);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(44, 37, 34, .25);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--rose-deep); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__text { padding: 56px var(--gutter) 48px; order: 2; }
  .hero__media { order: 1; aspect-ratio: 4 / 4.2; }
  .tx { grid-template-columns: 1fr; }
  .tx__group, .tx__group + .tx__group { padding: 36px 0 8px; border-left: 0; }
  .tx__group + .tx__group { border-top: 1px solid var(--line); margin-top: 32px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .booking { grid-template-columns: 1fr; }
  .cal { max-width: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__brand span { display: none; }
  .hero__first { letter-spacing: .1em; }
  .about__media::before { inset: 14px -10px -14px 14px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
  .fields { grid-template-columns: 1fr; }
  .booking { padding: 24px 18px; margin: 0 calc(var(--gutter) * -0.25); }
}
