/* ==========================================================================
   JS Beauty Girl · base compartida (sitio, reservas)
   Dirección: "Portada del mes". Bodoni Moda (el Didone del monograma JS) + Jost.
   Ciruela domina, porcelana para leer, mauve del logo como tono de marca,
   rosa solo como acento sobre fondos oscuros.
   ========================================================================== */

:root {
  --plum-950: #1b0916;
  --plum-900: #2a1024;
  --plum-800: #3a1733;
  --plum-700: #52254a;
  --plum-600: #7a3e6e;
  --mauve-500: #8b5a86;
  --mauve-300: #c6a2bf;
  --mauve-200: #dcc3d6;
  --mauve-100: #efe4ec;
  --porcelain: #f8f2ef;
  --porcelain-2: #f0e6e2;
  --ink: #241020;
  --ink-soft: #5e4658;
  --rose: #f2a7c3;
  --rose-hover: #f7c1d5;
  --rose-ink: #9c3f6b;
  --danger: #a3223b;
  --ok: #2f6b4f;

  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", "Libre Bodoni", Georgia, serif;
  --font-body: "Jost", Futura, "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  /* Bodoni Moda tiene eje de tamaño óptico (6–96) y el navegador lo iguala al tamaño del texto.
     Sobre ~48 px sus trazos finos quedan bajo 1 px y se pierden en pantallas comunes, así que
     los titulares que se leen usan este corte fijo. Los gigantes decorativos no lo usan. */
  --opsz-display: 36;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.18s;
  --dur-2: 0.35s;
  --dur-3: 0.9s;

  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 72px;
  --radius: 2px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
p, li, dd { text-wrap: pretty; }

::selection { background: var(--mauve-300); color: var(--plum-950); }

:focus-visible {
  outline: 2px solid var(--plum-600);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (max-width: 600px) { .hide-sm { display: none; } }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--rose);
  color: var(--plum-950);
  padding: 10px 16px;
  text-decoration: none;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" var(--opsz-display);
  font-size: clamp(2.4rem, 5.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.price small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-right: 0.15em;
}
.price--ask {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: normal;
  text-align: right;
}

/* ---------- Marca ---------- */
.wordmark {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}
.wordmark__js {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}
.wordmark__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.8em 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--lg { min-height: 58px; padding: 1em 2em; font-size: 1.05rem; }

.btn--rose { --btn-bg: var(--rose); --btn-fg: var(--plum-950); }
.btn--rose:hover { --btn-bg: var(--rose-hover); }
.btn--rose:focus-visible { outline-color: var(--rose); }

.btn--plum { --btn-bg: var(--plum-900); --btn-fg: var(--porcelain); }
.btn--plum:hover { --btn-bg: var(--plum-700); }

.btn--line { --btn-fg: var(--porcelain); --btn-bd: rgba(248, 242, 239, 0.42); }
.btn--line:hover { --btn-bg: rgba(248, 242, 239, 0.08); --btn-bd: var(--porcelain); }
.btn--line:focus-visible { outline-color: var(--rose); }

.btn--line-dark { --btn-fg: var(--ink); --btn-bd: rgba(36, 16, 32, 0.35); }
.btn--line-dark:hover { --btn-bd: var(--ink); --btn-bg: rgba(36, 16, 32, 0.04); }

.link-quiet {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--dur-2);
}
.link-quiet:hover { text-decoration-color: currentColor; }

.img-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--plum-700), transparent 60%),
    var(--plum-800);
}

/* ---------- Formularios (reservas) ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 0.9rem; font-weight: 500; }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); }
.input, .textarea, .select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 16, 32, 0.28);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .textarea:hover { border-color: rgba(36, 16, 32, 0.5); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--plum-600);
  box-shadow: 0 0 0 3px rgba(139, 90, 134, 0.22);
}
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 0.85rem; min-height: 0; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--plum-700);
}

.notice {
  padding: 14px 16px;
  border-left: 0;
  background: var(--mauve-100);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.notice--error { background: #f6dde2; color: #6f1227; }
.notice--ok { background: #dcebe2; color: #1f4a36; }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
