/* ==========================================================================
   BASE
   Colores, tipografía, botones, formularios y piezas que usan todas las
   secciones. Para un cliente nuevo, los colores se cambian SOLO en :root.
   Pensado primero para celular: los estilos sin media query son los del
   celu y se agregan cambios para pantallas más grandes (min-width).
   ========================================================================== */

:root {
  /* Fondos */
  --crema: #faf5f1;        /* fondo general */
  --nude: #f2e7df;         /* secciones alternadas */
  --blanco: #fffdfb;       /* tarjetas */
  --linea: #e8dad0;        /* bordes suaves */

  /* Acentos */
  --rosa: #b98890;         /* rosa viejo decorativo */
  --rosa-fuerte: #925f69;  /* botones y links (contraste AA con blanco) */
  --rosa-suave: #f4e4e4;
  --lila: #9c88bd;
  --lila-fuerte: #6f5a93;
  --lila-suave: #ede7f5;

  /* Texto */
  --tinta: #3b2930;
  --tinta-2: #6e5a62;      /* texto secundario */

  /* Estados (panel y reservas) */
  --ok: #4f7a5f;
  --ok-suave: #e5efe7;
  --alerta: #a65a4a;
  --alerta-suave: #f6e3de;

  /* Tipografía */
  --font-titulo: "Cormorant Garamond", "Times New Roman", serif;
  --font-texto: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --radio: 18px;
  --radio-chico: 12px;
  --ancho: 1160px;
  --gutter: 20px;
  --header-alto: 64px;
  --sombra: 0 1px 2px rgb(59 41 48 / 4%), 0 8px 28px rgb(59 41 48 / 7%);
  --sombra-alta: 0 2px 6px rgb(59 41 48 / 6%), 0 18px 48px rgb(59 41 48 / 14%);
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-alto) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--rosa-fuerte); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--lila-fuerte); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Contenedor y secciones ---------- */
.container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 72px 0; }
.section--alt { background: var(--nude); }

.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rosa-fuerte);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }

.section__title { font-size: clamp(34px, 8vw, 52px); }
.section__intro { margin-top: 14px; color: var(--tinta-2); font-size: 17px; }

.tag-ejemplo {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 4px 12px;
  border: 1px dashed var(--rosa); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--rosa-fuerte); background: var(--blanco);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--rosa-fuerte); color: #fff; box-shadow: 0 6px 18px rgb(146 95 105 / 28%); }
.btn--primary:hover { background: #7f505a; }
.btn--ghost { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--ghost:hover { background: var(--tinta); color: var(--crema); }
.btn--soft { background: var(--rosa-suave); color: var(--rosa-fuerte); }
.btn--soft:hover { background: #ecd3d4; }
.btn--whatsapp { background: #1f8f52; color: #fff; }
.btn--whatsapp:hover { background: #18773f; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  color: var(--rosa-fuerte); font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .opcional { font-weight: 400; color: var(--tinta-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--linea); border-radius: var(--radio-chico);
  background: var(--blanco);
  font-size: 16px; /* 16px evita el zoom automático en iPhone */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lila); box-shadow: 0 0 0 4px var(--lila-suave);
}
.field input[aria-invalid="true"] { border-color: var(--alerta); }
.field__error { font-size: 13px; color: var(--alerta); }
.field__hint { font-size: 13px; color: var(--tinta-2); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--rosa); color: var(--rosa-fuerte);
  font-family: var(--font-titulo); font-size: 18px; font-style: italic; font-weight: 600;
}
.logo__text { display: grid; line-height: 1.1; }
.logo__name { font-family: var(--font-titulo); font-size: 23px; font-weight: 600; }
.logo__tagline { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tinta-2); }

/* ---------- Redes ---------- */
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta);
  transition: background-color .2s, color .2s, border-color .2s;
}
.social:hover { background: var(--rosa-fuerte); color: #fff; border-color: var(--rosa-fuerte); }

/* Recuadro con iniciales cuando una foto no carga. */
.foto-respaldo {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(140deg, var(--rosa-suave), var(--lila-suave));
  color: var(--rosa-fuerte); font-family: var(--font-titulo); font-size: 44px; font-style: italic;
}

/* ---------- Aparición suave al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Aviso flotante (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px;
  background: var(--tinta); color: var(--crema); border-radius: 999px; box-shadow: var(--sombra-alta);
  font-size: 14px;
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .3s ease, opacity .3s, visibility .3s;
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast button {
  border: 0; background: rgb(255 255 255 / 14%); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-weight: 500;
}

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-alto: 76px; }
  .section { padding: 104px 0; }
  .section__head { margin-bottom: 52px; }
}

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