/* ============ Fuentes (autoalojadas: sin llamadas a Google) ============ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens (sacados de la maqueta) ============ */
:root {
  --rose: #dc9ca4;
  --rose-deep: #c27482;
  --rose-text: #94485a;   /* el rosa para texto: AA sobre los fondos claros */
  --blush: #faede9;
  --sand: #f1e1d5;
  --cream: #fcf3ee;
  --ink: #1f1612;
  --text: #4a3d38;
  --muted: #6f5f59;     /* AA también sobre el fondo arena */
  --line: #e2cfc6;
  --white: #fffaf7;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);
  --radius: 1.25rem;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose-text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 52rem; }
.muted { color: var(--muted); font-weight: 400; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--light { color: var(--white); }

.lead { font-size: 1.0625rem; color: var(--text); max-width: 38rem; margin-top: 1rem; }

/* ============ Botones y enlaces ============ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.75rem;
  border: 0; border-radius: 999px;
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -12px rgba(31, 22, 18, .45); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a2a23; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: currentColor;
  transition: color .2s;
}
.link:hover { color: var(--rose-text); }
.link--light { color: var(--white); }
.link--light:hover { color: var(--blush); }

/* ============ Portada ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 52rem);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 0% 40%, var(--rose-deep) 0%, rgba(194, 116, 130, 0) 60%),
    var(--rose);
  color: var(--white);
}
.hero__inner { position: relative; z-index: 1; padding-block: 6rem; }
.hero__title {
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  color: var(--white);
  margin-top: 1.25rem;
  letter-spacing: -.01em;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.3;
  max-width: 30rem;
  margin-top: 1.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.75rem; }

/* Pétalos que caen (decorativos; se generan en main.js) */
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute; top: -10%;
  width: var(--size, 14px); height: calc(var(--size, 14px) * .8);
  background: var(--petal, #fbe3e6);
  border-radius: 80% 0 80% 0;
  opacity: .85;
  animation: fall var(--dur, 16s) linear var(--delay, 0s) infinite;
}
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--drift, 40px), 55vh, 0) rotate(180deg); }
  100% { transform: translate3d(calc(var(--drift, 40px) * -0.5), 110vh, 0) rotate(360deg); }
}

/* ============ Secciones ============ */
.section { padding-block: var(--section-y); }
.section--blush { background: var(--blush); }
.section--sand  { background: var(--sand); }
.section--cream { background: var(--cream); }
.section h2 + .lead, .section .eyebrow + h2 { margin-top: 1rem; }

.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Tratamientos */
.treatments { display: grid; gap: 3rem clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .treatments { grid-template-columns: 1fr 1fr; } }
.treatments__col > .eyebrow { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.treatment { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.treatment__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.treatment__name { font-size: 1.75rem; }
.treatment__time { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.treatment__desc { margin-top: .5rem; color: var(--text); }
.treatment__book {
  display: inline-block; margin-top: .75rem;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  color: var(--rose-text); text-decoration: none;
  border: 0; background: none; padding: 0; cursor: pointer;
}
.treatment__book:hover { text-decoration: underline; text-underline-offset: .3em; }

/* Historia */
.story { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .story { grid-template-columns: 5fr 6fr; } }
.story__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(90, 50, 40, .35); }
.story__media img { width: 100%; }
.story__text h2 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); }
.story__text > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 34rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0 0; max-width: 32rem; }
.stats dt { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 2.75rem; line-height: 1; color: var(--ink); }
.stats dd { margin: .5rem 0 0; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* Chips (recomendador y reserva) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font: 400 .95rem/1.2 var(--sans);
  color: var(--ink);
  background: rgba(255, 250, 247, .55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.15rem;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--rose-deep); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip small { color: inherit; opacity: .7; margin-left: .35rem; }

#recomendador .chips { margin-top: 2.25rem; }
.advice {
  margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.advice h3 { font-size: 1.6rem; }
.advice p { margin-top: .5rem; }
.advice__list { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.advice__item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; }
.advice__item strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink); }
.advice__item .muted { display: block; font-size: .9rem; }

/* Reserva */
.booking { margin-top: 2.75rem; display: grid; gap: 2.25rem; }
.booking__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.booking__step legend {
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1rem; padding: 0;
}
.booking__step legend .muted { letter-spacing: .1em; }
.step-num {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; margin-right: .5rem;
  border-radius: 50%; background: var(--rose-text); color: var(--white);
  font-size: .75rem; letter-spacing: 0;
}
.booking__fields { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .booking__fields { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field__label { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.field__label .muted { letter-spacing: .1em; }
.field input {
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .6rem 0; border-radius: 0;
}
.field input::placeholder { color: #a39089; }
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.field input[aria-invalid="true"] { border-bottom-color: #b3261e; }

.booking__summary:empty { display: none; }
.booking__summary {
  padding: 1.1rem 1.4rem; border-radius: 1rem;
  background: rgba(255, 250, 247, .65); border: 1px solid var(--line);
  font-size: .98rem;
}
.booking__summary strong { color: var(--ink); font-weight: 500; }
.booking__error { color: #b3261e; font-size: .95rem; }
.booking .btn { justify-self: start; }
.booking__note { font-size: .88rem; color: var(--muted); margin-top: -1.25rem; }

/* Contacto */
.contact { display: grid; gap: 3rem clamp(2rem, 8vw, 6rem); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.contact__info { margin: 0; display: grid; gap: 1.75rem; align-content: start; }
.contact__info dd { margin: .5rem 0 0; color: var(--ink); font-size: 1.05rem; overflow-wrap: anywhere; }

/* Pie */
.footer { background: var(--ink); color: #cdbdb6; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer a { color: #f2e4dd; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Botón flotante de reserva (móvil) */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  background: var(--ink); color: var(--white);
  padding: .9rem 1.4rem; border-radius: 999px;
  font: 500 .95rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(31, 22, 18, .5);
}
@media (min-width: 52rem) { .float-cta { display: none; } }

/* Páginas legales */
.legal { padding-block: var(--section-y); }
.legal h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.legal h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: 1rem; max-width: 46rem; }
.legal .back { display: inline-block; margin-bottom: 2rem; }
.pending { background: #fde7c8; padding: 0 .3em; border-radius: 4px; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petal { animation: none; display: none; }
  .btn, .chip { transition: none; }
}
