/* Atelier Numen · captacion y consentimiento
 * ---------------------------------------------------------------------------
 * Hoja compartida por todas las paginas. Cubre tres cosas que antes solo
 * existian, a medias, dentro del <style> de la home:
 *   1. .an-form-note   — la respuesta visible de un alta de email (ok / error)
 *   2. .an-capture     — el bloque de captacion que se repite en ficha, catalogo
 *                        y en los puntos donde una pieza no se puede comprar
 *   3. .an-consent     — la barra de consentimiento de analitica
 * Estilo deliberadamente sobrio: hereda tipografia y color de cada pagina y no
 * introduce ningun color de marca nuevo.
 * --------------------------------------------------------------------------- */

.an-form-note {
  margin: .6rem 0 0;
  font-size: .74rem;
  line-height: 1.5;
  letter-spacing: .01em;
}
.an-form-note[data-kind="ok"] { color: var(--ink, #171715); }
.an-form-note[data-kind="error"] { color: #8b3a2c; }

.an-consent-note {
  margin: .55rem 0 0;
  color: var(--muted, #6b6963);
  font-size: .66rem;
  line-height: 1.5;
}
.an-consent-note a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------- .an-capture */
.an-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad, 1.5rem);
  border-top: 1px solid var(--line, #d8d7d1);
  background: var(--soft, #f4f3ef);
}
.an-capture .eyebrow {
  margin: 0 0 .7rem;
  color: var(--muted, #6b6963);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.an-capture h2,
.an-capture .an-capture-title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.an-capture p {
  margin: 0;
  color: var(--muted, #6b6963);
  font-size: .9rem;
  line-height: 1.55;
}
.an-capture form {
  display: flex;
  margin-top: 1.1rem;
  border-bottom: 1px solid var(--ink, #171715);
}
.an-capture input {
  flex: 1;
  min-width: 0;
  padding: .7rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink, #171715);
  font: inherit;
  font-size: .9rem;
}
.an-capture input::placeholder { color: var(--muted, #6b6963); }
.an-capture button[type="submit"] {
  padding: .7rem 0 .7rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink, #171715);
  cursor: pointer;
  font: 500 .68rem var(--sans, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.an-capture button[type="submit"]:disabled { opacity: .5; cursor: default; }
.an-capture-done { margin-top: 1.1rem; font-size: .88rem; line-height: 1.55; }

@media (max-width: 900px) {
  .an-capture { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
}

/* Variante fina, para colocarla dentro de una tarjeta o junto a una pieza que no
   se puede comprar (agotada, no exportable a EEUU). */
.an-capture.is-inline {
  display: block;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--line, #d8d7d1);
  border-top: 2px solid var(--gold, #a9895c);
  background: var(--paper, #fcfcfa);
}
.an-capture.is-inline .an-capture-title { font-size: 1.35rem; max-width: none; }
.an-capture.is-inline p { font-size: .8rem; }
.an-capture.is-inline form { margin-top: .85rem; }

/* --------------------------------------------------------------- .an-consent */
.an-consent {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 2rem;
  padding: .95rem clamp(1.25rem, 4.6vw, 3rem);
  background: #1b1b19;
  color: #eceae4;
  font-size: .78rem;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.an-consent[data-open="true"] { transform: translateY(0); }
body:has(.an-consent[data-open="true"]) { padding-bottom: 6.5rem; }
@supports not selector(:has(*)) { body { padding-bottom: 0; } }
/* El aviso flotante de The Arrivals y esta barra comparten esquina inferior. */
/* Y la barra tampoco debe comerse el unico CTA de un hero a pantalla completa. */
body:has(.an-consent[data-open="true"]) .hero { min-height: calc(100vh - 96px - 5.5rem); }
body:has(.an-consent[data-open="true"]) .float-sub { bottom: 7.5rem; }
@media (max-width: 760px) { body:has(.an-consent[data-open="true"]) .float-sub { bottom: 9.5rem; } }
.an-consent p { margin: 0; max-width: 46rem; }
.an-consent a { color: #eceae4; text-decoration: underline; text-underline-offset: 2px; }
.an-consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.an-consent button {
  padding: .55rem 1.1rem;
  border: 1px solid rgba(236,234,228,.45);
  background: transparent;
  color: #eceae4;
  cursor: pointer;
  font: 500 .66rem var(--sans, sans-serif);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.an-consent button[data-consent="granted"] { background: #eceae4; border-color: #eceae4; color: #1b1b19; }
@media (prefers-reduced-motion: reduce) { .an-consent { transition: none; } }
