/* Newsletter de Imprimakers: pop-up de la calculadora, formulario del pie y casilla del checkout.
 * Solo se encola con el interruptor imk_newsletter_activo encendido (o vista previa). */

/* utilidades */
.imk-nl-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.imk-nl-hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- pop-up (mismo aspecto que el viejo exit-popup) ---------- */
.imk-nl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.imk-nl-overlay.imk-nl-visible { display: flex; }
.imk-nl-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px 32px 28px;
  position: relative;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: imkNlIn .28s cubic-bezier(.19,1,.22,1);
}
@keyframes imkNlIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.imk-nl-cerrar {
  position: absolute;
  top: 8px; right: 12px;
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  color: #777; cursor: pointer;
  border-radius: 8px;
}
.imk-nl-cerrar:hover { color: #1a1a1a; }
.imk-nl-popup h2 {
  font-size: 1.35rem; font-weight: 700;
  margin: 0 0 10px; color: #1a1a1a;
}
.imk-nl-popup__texto {
  color: #555; font-size: .95rem; line-height: 1.5;
  margin: 0 0 18px;
}
.imk-nl-exito__texto {
  color: #1a1a1a; font-size: 1rem; font-weight: 600; line-height: 1.5;
  margin: 8px 0 18px;
}

/* ---------- formulario (pop-up y pie) ---------- */
.imk-nl-form { margin: 0; }
.imk-nl-form--popup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.imk-nl-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.imk-nl-input:focus { border-color: #f66249; }
.imk-nl-input[aria-invalid="true"] { border-color: #e53935; }
.imk-nl-btn {
  background: #f66249; color: #fff;
  border: none; border-radius: 8px;
  padding: 13px 20px;
  font-size: .95rem; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.imk-nl-btn:hover { background: #e04f38; }
.imk-nl-btn:disabled { opacity: .65; cursor: default; }
.imk-nl-btn--block { display: block; width: 100%; white-space: normal; }
.imk-nl-btn:focus-visible,
.imk-nl-cerrar:focus-visible,
.imk-nl-check input:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.imk-nl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  line-height: 1.45;
  color: #555;
  cursor: pointer;
}
.imk-nl-check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: #f66249;
}
.imk-nl-check a { color: inherit; text-decoration: underline; }
.imk-nl-check input[aria-invalid="true"] { outline: 2px solid #e53935; outline-offset: 1px; }
.imk-nl-msg { margin: 0; font-size: .85rem; line-height: 1.45; color: #555; }
.imk-nl-msg[hidden] { display: none; }
.imk-nl-msg--error { color: #e53935; }
.imk-nl-msg--ok { color: #2e9f6b; font-weight: 600; }

/* ---------- pie (fondo oscuro) ---------- */
.imk-nl-pie { margin-top: 8px; max-width: 100%; }
.foot-main .imk-nl-pie__titulo {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff !important;
  margin: 0 0 12px;
  font-weight: 600;
}
.foot-main .imk-nl-pie__texto {
  font-size: 14px;
  color: #c4c4c4 !important;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 16px;
}
.imk-nl-pie__fila { display: flex; gap: 8px; margin-bottom: 12px; }
.imk-nl-pie__fila .imk-nl-input {
  flex: 1 1 auto;
  min-width: 0;
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}
.imk-nl-pie__fila .imk-nl-input::placeholder { color: #8f8f8f; }
.imk-nl-pie__fila .imk-nl-input:focus { border-color: #f26a3e; }
.imk-nl-pie__fila .imk-nl-btn { flex: 0 0 auto; }
.foot-main .imk-nl-check { color: #a9a9a9; font-size: 12px; }
.foot-main .imk-nl-check a { color: #c4c4c4 !important; }
.foot-main .imk-nl-check a:hover { color: #f26a3e !important; }
.foot-main .imk-nl-msg { color: #c4c4c4; margin-top: 10px; }
.foot-main .imk-nl-msg--error { color: #ff8a80; }
.foot-main .imk-nl-msg--ok { color: #5fd3a0; }
@media (max-width: 575px) {
  .imk-nl-pie__fila { flex-direction: column; }
  .imk-nl-pie__fila .imk-nl-btn { width: 100%; }
  .imk-nl-popup { padding: 40px 20px 24px; }
}

/* ---------- casilla del checkout ---------- */
.imk-nl-optin { padding: 18px 24px; }
.imk-nl-optin__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ck-ink-2, #4d4d4d);
  cursor: pointer;
}
.imk-nl-optin__label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ck-coral, #f26a3e);
}
.imk-nl-optin__texto a { color: inherit; text-decoration: underline; }

/* ================= diseno v2 (solo con imk_nl_diseno_v2 o vista previa) ================= */

/* Pop-up y pie: botones en mayusculas como "COTIZACION ONLINE", radio 4 */
.imk-nl-v2 .imk-nl-btn {
  background: #f26a3e;
  border-radius: 4px;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.imk-nl-v2 .imk-nl-btn:hover { background: #d9532a; }
.imk-nl-v2 .imk-nl-input { border-radius: 8px; }
.imk-nl-v2 .imk-nl-input:focus { border-color: #f26a3e; }
.imk-nl-popup.imk-nl-v2 { border-radius: 14px; }
.imk-nl-eyebrow {
  margin: 0 0 8px;
  font-size: 11px; line-height: 1.4; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #f26a3e;
}
.imk-nl-acento { color: #f26a3e; }

/* Aviso de enlace caducado */
.imk-nl-aviso__x:focus-visible { outline: 2px solid #101010; outline-offset: 2px; }

/* Paginas de marca: confirmada, baja y revisa tu correo (composicion de la pagina de pedido recibido) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../fonts/jetbrains-mono-600-latin.woff2') format('woff2');
}
.imk-nlp {
  background: #f5f4f1;
  color: #101010;
  font-family: 'Poppins', -apple-system, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 64px 16px 72px;
}
.imk-nlp *, .imk-nlp *::before, .imk-nlp *::after { box-sizing: border-box; }
.imk-nlp__col { max-width: 620px; margin: 0 auto; }
.imk-nlp__hero { text-align: center; margin-bottom: 28px; }
.imk-nlp__icono {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.imk-nlp__icono svg { width: 30px; height: 30px; }
.imk-nlp__icono--ok { background: #e8f6f4; color: #2fb8a8; }
.imk-nlp__icono--tinta { background: #ececec; color: #101010; }
.imk-nlp__eyebrow {
  margin: 0 0 10px;
  font-size: 11px; line-height: 1.4; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #949494;
}
.imk-nlp h1 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 28px; line-height: 1.2; font-weight: 700;
  letter-spacing: -.02em;
  color: #101010;
}
.imk-nlp__sub { margin: 0; font-size: 15px; line-height: 1.6; color: #4d4d4d; }
.imk-nlp__card {
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 14px;
  padding: 36px;
}
.imk-nlp__ctitulo {
  margin: 0 0 12px;
  font-size: 11px; line-height: 1.4; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #949494;
}
.imk-nlp__codigo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f5f4f1;
  border: 1.5px solid #ececec;
  border-radius: 12px;
  padding: 14px 16px 14px 22px;
  margin-bottom: 18px;
}
.imk-nlp__codigo code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-weight: 600; font-size: 34px; line-height: 1.2;
  letter-spacing: .04em;
  color: #101010;
  background: none; padding: 0;
  user-select: all;
}
.imk-nlp__copiar {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1.5px solid #ececec; border-radius: 8px;
  background: #fff; color: #101010;
  font: 600 12px/1 'Poppins', Helvetica, Arial, sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
}
.imk-nlp__copiar:hover { border-color: #101010; }
.imk-nlp__copiar.is-ok { border-color: #2fb8a8; background: #e8f6f4; color: #1e8a7c; }
.imk-nlp__copiar:focus-visible, .imk-nlp__btn:focus-visible { outline: 2px solid #101010; outline-offset: 2px; }
.imk-nlp__conds { list-style: none; margin: 0; padding: 0; }
.imk-nlp__conds li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid #f4f4f4;
  font-size: 14px; line-height: 1.5; color: #4d4d4d;
}
.imk-nlp__ck { flex: 0 0 auto; font-weight: 700; color: #2fb8a8; }
.imk-nlp__correo { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #4d4d4d; overflow-wrap: anywhere; }
.imk-nlp__texto { margin: 0 0 4px; font-size: 15px; line-height: 1.6; color: #4d4d4d; }
.imk-nlp__acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.imk-nlp__correo + .imk-nlp__acciones { margin-top: 0; }
.imk-nlp__acciones--centro { justify-content: center; margin-top: 4px; }
.imk-nlp .imk-nlp__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border: 1.5px solid transparent; border-radius: 12px;
  font: 600 14px/1.2 'Poppins', Helvetica, Arial, sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
}
.imk-nlp .imk-nlp__btn--coral { background: #f26a3e; color: #fff !important; box-shadow: 0 8px 20px -6px rgba(242,106,62,.45); }
.imk-nlp .imk-nlp__btn--coral:hover { background: #d9532a; }
.imk-nlp .imk-nlp__btn--blanco { background: #fff; color: #101010 !important; border-color: #ececec; }
.imk-nlp .imk-nlp__btn--blanco:hover { border-color: #101010; }
.imk-nlp .imk-nlp__btn--tinta { background: #101010; color: #fff !important; }
.imk-nlp .imk-nlp__btn--tinta:hover { background: #25262B; }
.imk-nlp__garantias {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.imk-nlp__garantias li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; line-height: 1.35; color: #4d4d4d; }
.imk-nlp__gic svg { width: 26px; height: 26px; color: #4d4d4d; display: block; }
@media (max-width: 560px) {
  .imk-nlp { padding: 40px 16px 56px; }
  .imk-nlp h1 { font-size: 24px; }
  .imk-nlp__card { padding: 24px 20px; }
  .imk-nlp__codigo { padding: 12px 12px 12px 16px; }
  .imk-nlp__codigo code { font-size: 26px; }
  .imk-nlp__acciones { flex-direction: column; }
  .imk-nlp .imk-nlp__btn { width: 100%; }
  .imk-nlp__garantias { grid-template-columns: repeat(2, 1fr); }
}
