/* ==========================================================================
   Popup "Free GHK-Cu" (src/js/uu-offer.js). Carga en las dos familias de
   paginas (espejadas y propias), asi que no depende de variables del tema.
   Referencia visual: popup "Limited offer" que paso el cliente el 2026-09-15.
   ========================================================================== */
dialog.uuoffer {
  box-sizing: border-box;
  width: min(410px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fbfaf7;
  color: #10003e;
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: center;
  overflow: hidden auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(16, 0, 62, 0.28);
}
dialog.uuoffer:not([open]) { display: none; }
dialog.uuoffer::backdrop { background: rgba(16, 0, 62, 0.55); }
dialog.uuoffer:focus { outline: none; }
.uuoffer__panel { position: relative; }
.uuoffer__x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.92); color: #10003e;
  font-size: 22px; line-height: 32px; padding: 0; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
/* La foto de la ficha (ghk-cu-1-wide, 5:3, fondo beige claro): entera, sin
   recortar el vial, y con un degrade al color de la tarjeta para que no corte. */
.uuoffer__media { position: relative; background: #f3f1ec; aspect-ratio: 5 / 3; overflow: hidden; }
.uuoffer__media--short { aspect-ratio: 5 / 2; }
.uuoffer__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.uuoffer__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34px; background: linear-gradient(to bottom, rgba(251,250,247,0), #fbfaf7); }
.uuoffer__content { padding: 10px 26px 26px; margin: 0; }
.uuoffer__eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #b08d57;
}
.uuoffer__title {
  margin: 0; font-size: 38px; line-height: 1.02; font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase; color: #10003e;
}
.uuoffer__title--sm { font-size: 28px; text-transform: none; letter-spacing: 0; }
.uuoffer__sub { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: #5f5b73; }
.uuoffer__count { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 20px 0 22px; }
.uuoffer__cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.uuoffer__num {
  display: block; min-width: 60px; padding: 10px 6px; border: 1px solid #e3ddd0; border-radius: 10px;
  background: #fff; box-shadow: 0 2px 10px rgba(16, 0, 62, 0.06);
  font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; color: #10003e;
}
.uuoffer__lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #7c7a86; }
.uuoffer__colon { font-size: 24px; font-weight: 700; line-height: 46px; color: #b08d57; }
.uuoffer__btn {
  display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 15px 18px;
  border: 0; border-radius: 999px; background: #10003e; color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.uuoffer__btn:hover, .uuoffer__btn:focus-visible { background: #0535a8; }
.uuoffer__btn[disabled] { opacity: 0.6; cursor: wait; }
.uuoffer__field { display: block; margin: 16px 0 8px; }
.uuoffer__field input {
  box-sizing: border-box; width: 100%; padding: 13px 16px; border: 1px solid #d9d3c6; border-radius: 999px;
  background: #fff; color: #10003e; font: inherit; font-size: 16px;
}
.uuoffer__field input:focus { outline: 2px solid #10003e; outline-offset: 1px; }
.uuoffer__error { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: #b3261e; }
/* Garantia de 30 dias: bajo el boton en los dos estados del popup. El check es
   CSS para que la traduccion sea solo texto. */
.uuoffer__guarantee {
  margin: 12px 0 0; text-align: center; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.02em; color: #10003e;
}
.uuoffer__guarantee::before { content: "\2713"; margin-right: 6px; color: #b08d57; }
.uuoffer__fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: #7c7a86; }
.uuoffer .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 420px) {
  .uuoffer__title { font-size: 34px; }
  .uuoffer__num { min-width: 52px; font-size: 24px; }
  .uuoffer__content { padding: 18px 16px 20px; }
}
