/* HUUN · estilos compartidos */
:root {
  --naranja: #e8501c;
  --naranja-osc: #c9410f;
  --lila: #ead8f3;
  --lila-osc: #d9bfe8;
  --cacao: #2a1b15;
  --crema: #f7eedf;
  --papel: #fffdf9;
  --roble: #c79f74;
  --linea: rgba(42, 27, 21, 0.14);
  --texto-suave: rgba(42, 27, 21, 0.68);
  --ok: #2f7d4f;

  --f-titulo: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --radio: 18px;
  --sombra: 0 18px 40px -18px rgba(42, 27, 21, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--estrecho { width: min(620px, 100% - 32px); margin-inline: auto; }

/* Etiquetas tipo "· EDICIÓN NAVIDAD ·" */
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.etiqueta::before, .etiqueta::after { content: ' · '; }

.titulo {
  font-family: var(--f-titulo);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}
.titulo em, .serif-it {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.naranja { color: var(--naranja); }

/* ---------- Cabecera ---------- */
.aviso {
  background: var(--naranja);
  color: var(--papel);
  text-align: center;
  padding: 9px 16px;
  font-size: 11px;
}
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.logo {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--naranja);
  text-decoration: none;
  line-height: 1;
}
.logo small {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--cacao);
  margin-top: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  background: var(--naranja);
  color: var(--papel);
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--naranja-osc); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--oscuro { background: var(--cacao); }
.btn--oscuro:hover { background: #000; }
.btn--borde { background: transparent; color: var(--cacao); box-shadow: inset 0 0 0 1.5px var(--cacao); }
.btn--borde:hover { background: var(--cacao); color: var(--papel); }
.btn--peq { padding: 10px 18px; font-size: 14px; }
.btn--ancho { width: 100%; }
.enlace {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: var(--cacao);
}

/* ---------- Lámina (mockup del formato HUUN 30 × 30) ---------- */
.pared {
  background: radial-gradient(120% 90% at 30% 20%, #fbf5ec 0%, var(--lila) 100%);
  border-radius: var(--radio);
  padding: clamp(28px, 8%, 64px);
  display: grid;
  place-items: center;
}
.marco {
  width: 100%;
  max-width: 460px;
  padding: 4.2%;
  background: linear-gradient(135deg, #d9b892, var(--roble) 45%, #b48a5f);
  box-shadow: var(--sombra), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: padding 0.25s, background 0.25s, box-shadow 0.25s;
}
.marco--sin {
  padding: 0;
  background: transparent;
  box-shadow: 0 22px 40px -22px rgba(42, 27, 21, 0.45);
}
.lamina {
  container-type: inline-size;
  aspect-ratio: 1;
  background: #fff;
  padding: 16.67% 16.67% 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.lamina__arte {
  aspect-ratio: 1;
  width: 100%;
  background: var(--crema);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.lamina__arte img, .lamina__arte svg { width: 100%; height: 100%; object-fit: cover; }
.lamina__pie {
  height: 16.67cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  text-align: center;
}
.lamina__nombres {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 3.9cqw;
  line-height: 1.1;
  min-height: 1.1em;
}
.lamina__linea2 {
  font-family: var(--f-mono);
  font-size: 1.45cqw;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--naranja);
  min-height: 1.2em;
}
.lamina__firma {
  position: absolute;
  bottom: 2.4cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: 1.15cqw;
  letter-spacing: 0.3em;
  opacity: 0.5;
}

/* ---------- Tarjetas de opción ---------- */
.opciones { display: grid; gap: 12px; }
.opcion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
}
.opcion:hover { box-shadow: inset 0 0 0 1.5px var(--cacao); }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--naranja); background: #fff; }
.opcion:has(input:focus-visible) { outline: 3px solid var(--naranja); outline-offset: 3px; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion__icono {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lila);
  display: grid;
  place-items: center;
  color: var(--naranja);
}
.opcion__texto { flex: 1; min-width: 0; }
.opcion__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.opcion__desc { font-size: 14px; color: var(--texto-suave); line-height: 1.35; }
.opcion__precio { font-family: var(--f-titulo); font-weight: 800; font-size: 20px; white-space: nowrap; }

/* ---------- Formularios ---------- */
.campo { display: grid; gap: 6px; }
.campo label, .campo .mono { font-size: 11px; }
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--linea);
  background: var(--papel);
  font-family: var(--f-serif);
  font-size: 17px;
}
.input:focus { outline: none; border-color: var(--naranja); }
textarea.input { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.check input { margin-top: 3px; accent-color: var(--naranja); width: 18px; height: 18px; flex: none; }

.error {
  background: #fde6dc;
  color: #8a2a07;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.nota { font-size: 14px; color: var(--texto-suave); }

/* ---------- Pie ---------- */
.pie {
  background: var(--cacao);
  color: var(--crema);
  padding-block: 48px 36px;
  margin-top: 0;
}
.pie a { color: var(--crema); }
.pie__fila { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }

/* ---------- Utilidades ---------- */
.oculto { display: none !important; }
.pila > * + * { margin-top: var(--hueco, 16px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

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