/* ============================================================================
   Mumentus · estilos compartidos (reserva y gracias)
   La landing (index.html) mantiene su CSS embebido por ahora; migrará aquí
   en la fase 2. Los tokens son los mismos en ambos sitios.
   ========================================================================== */

:root {
  --kraft:       #C8A97E;
  --kraft-soft:  #E3D2BA;
  --kraft-dark:  #A98A63;
  --cream:       #F6EFE4;
  --offwhite:    #FCFAF6;
  --ink:         #3A322A;
  --ink-soft:    #6E6355;
  --granate:     #7A2A34;
  --granate-dk:  #64212A;
  --gold:        #B8912F;
  --gold-soft:   #D6B96A;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  /* deja hueco para la cabecera fija cuando el navegador desplaza a un campo */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(200,169,126,.10), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(184,145,47,.07), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; margin-top: 0; }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--granate); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--granate); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 246, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 169, 126, .35);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 74px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo__star { color: var(--gold); flex: none; }
.logo:hover { color: var(--granate); }

.header-link {
  font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.header-link:hover, .header-link:focus { color: var(--granate); border-color: var(--gold); }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 34px;
  background: var(--granate); color: #FBF6F0;
  text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--granate); border-radius: var(--radius);
  transition: background .3s ease, color .3s ease, gap .3s ease;
}
.btn:hover, .btn:focus { background: var(--granate-dk); gap: 18px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--ghost { background: transparent; color: var(--granate); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--granate); color: #FBF6F0; }
.btn--full { width: 100%; }

/* --------------------------------------------------------------- layout */
.pagina { padding: 64px 0 96px; }

.pagina__head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.pagina__head h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}
.pagina__head p { margin: 0; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--granate);
  margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-soft);
}

.tarjeta {
  background: var(--offwhite);
  border: 1px solid rgba(200,169,126,.55);
  border-radius: var(--radius);
  box-shadow: 0 22px 45px rgba(58, 50, 42, .08);
  padding: 44px 40px;
}

/* ------------------------------------------------------------ formulario */
fieldset {
  margin: 0 0 30px; padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  font-family: var(--serif);
  font-size: 1.45rem;
  padding: 0 0 4px;
  margin-bottom: 6px;
  color: var(--ink);
}
.seccion-nota { margin: 0 0 22px; font-size: .88rem; color: var(--ink-soft); }

.campo {
  margin-bottom: 22px;
  scroll-margin-top: 96px;
}

.campo > label,
.campo > .etiqueta {
  display: block;
  margin-bottom: 7px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo textarea,
.campo select {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(200,169,126,.75);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo textarea { resize: vertical; min-height: 88px; }
.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  outline: none;
  border-color: var(--granate);
  box-shadow: 0 0 0 3px rgba(122, 42, 52, .10);
}
.campo input:invalid:not(:placeholder-shown):not(:focus),
.campo textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #B4474F;
}

.ayuda { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-soft); }

/* grupos de opciones (radio / checkbox) */
.opciones { display: flex; flex-wrap: wrap; gap: 12px; }
.opcion {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(200,169,126,.75);
  border-radius: var(--radius);
  background: #fff;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.opcion:hover { border-color: var(--kraft); }
.opcion input { accent-color: var(--granate); margin: 0; }
.opcion:has(input:checked) { border-color: var(--granate); background: rgba(122,42,52,.04); }

.legal { display: grid; gap: 14px; }
.legal .opcion { align-items: flex-start; }
.legal .opcion input { margin-top: 4px; }

.campo--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo--inline > .campo { margin-bottom: 0; }

/* aviso y errores */
.aviso {
  margin: 0 0 26px;
  padding: 14px 18px;
  background: rgba(184,145,47,.10);
  border-left: 2px solid var(--gold);
  font-size: .88rem;
  color: var(--ink-soft);
}
.error-resumen {
  margin: 0 0 26px;
  padding: 14px 18px;
  background: rgba(180,71,79,.08);
  border-left: 2px solid #B4474F;
  font-size: .9rem;
  display: none;
}
.error-resumen[data-visible="true"] { display: block; }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: #2E271F;
  color: #D9CDBD;
  padding: 46px 0 30px;
  font-size: .86rem;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 18px 40px;
}
.site-footer a { color: #D9CDBD; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--gold-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__legal { margin-top: 22px; font-size: .76rem; color: #8E8272; }

/* --------------------------------------------------------- responsive */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .pagina { padding: 40px 0 64px; }
  .tarjeta { padding: 30px 20px; }
  .campo--inline { grid-template-columns: 1fr; gap: 0; }
  .campo--inline > .campo {
  margin-bottom: 22px;
  scroll-margin-top: 96px;
}
  .site-header__inner { height: 64px; }
  .logo { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------- páginas de texto legal */
.prosa { max-width: 760px; margin: 0 auto; }
.prosa h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 300; margin-bottom: 10px; }
.prosa .fecha { font-size: .8rem; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 34px; }
.prosa h2 {
  font-size: 1.45rem; font-weight: 500;
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200,169,126,.45);
}
.prosa h3 { font-size: 1.1rem; font-weight: 500; margin: 26px 0 10px; }
.prosa p, .prosa li { font-size: .95rem; color: var(--ink-soft); }
.prosa p { margin: 0 0 14px; }
.prosa ul, .prosa ol { margin: 0 0 18px; padding-left: 22px; }
.prosa li { margin-bottom: 7px; }
.prosa strong { color: var(--ink); font-weight: 500; }
.prosa a { color: var(--granate); text-decoration: underline; text-decoration-color: var(--gold-soft); }
.prosa table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .9rem; }
.prosa th, .prosa td { padding: 10px 12px; border-bottom: 1px solid rgba(200,169,126,.35); text-align: left; vertical-align: top; }
.prosa th { font-weight: 500; color: var(--ink); }

.borrador {
  margin: 0 0 30px;
  padding: 14px 18px;
  border: 1px dashed #B4474F;
  background: rgba(180,71,79,.06);
  color: #8E2E36;
  font-size: .86rem;
  border-radius: var(--radius);
}

/* Palabra destacada dentro de la etiqueta de un campo (p. ej. «NO quieres recibir») */
.campo > label strong,
.campo > .etiqueta strong {
  color: var(--granate);
  font-weight: 500;
  letter-spacing: .04em;
}
