/* ==========================================================================
   Banda de newsletter antes del pie — 2026-10-23 (todas las páginas)
   Plantilla: templates/_partials/footer-prestashop-masterled.tpl (.mlnews), con el widget real de
   ps_emailsubscription (modules/ps_emailsubscription/.../ps_emailsubscription.tpl): aquí solo se adapta su
   maquetación (Bootstrap) a la banda. Escala del sitio: título 22–26/300, textos 13–14 px.
   ========================================================================== */
.mlnews { background: #1b2140; color: #fff; }
.mlnews__wrap {
  max-width: var(--ml-max, 1860px); margin-inline: auto; padding: 40px var(--ml-gutter, 16px);
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: center;
}
@media (max-width: 900px) { .mlnews__wrap { grid-template-columns: 1fr; padding-block: 32px; } }
.mlnews .mlnews__h { margin: 0; color: #fff; font-size: clamp(22px, 1.8vw, 26px); font-weight: 300 !important; line-height: 1.2; }
.mlnews__p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; max-width: 56ch; }

/* --- widget del módulo --- */
.mlnews .block_newsletter { width: 100%; max-width: none; flex: none; padding: 0; margin: 0; float: none; }
.mlnews .block_newsletter > .row,
.mlnews .block_newsletter form > .row { display: block; margin: 0; }
.mlnews .block_newsletter [class*="col-"] { width: 100%; max-width: none; flex: none; padding: 0; }
/* la etiqueta del módulo se mantiene para el lector de pantalla (el campo la referencia), pero no se ve */
.mlnews #block-newsletter-label {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mlnews .block_newsletter form .col-12:first-child {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px; align-items: stretch;
}
.mlnews .block_newsletter .input-wrapper { order: 1 !important; flex: 1 1 auto !important; min-width: 0; width: auto !important; }
.mlnews .block_newsletter .clearfix { display: none; }
/* custom.css fuerza estilos de todos los input con !important: aquí se reafirman solo dentro de la banda */
.mlnews .block_newsletter input[type="email"] {
  width: 100% !important; height: 48px !important; margin: 0 !important; padding: 0 18px !important; border: 0 !important;
  border-radius: 999px !important; background: #fff !important; color: #1b2140 !important;
  font: inherit; font-size: 14px !important; box-shadow: none !important;
}
.mlnews .block_newsletter input[type="email"]::placeholder { color: #565d6b; }
/* El módulo trae dos botones (uno oculto siempre y otro oculto en móvil): se muestra uno en todos los tamaños */
.mlnews .block_newsletter input[name="submitNewsletter"] { display: none !important; }
.mlnews .block_newsletter input[name="submitNewsletter"].d-sm-block {
  display: block !important; order: 2 !important; flex: none !important; float: none !important; width: auto !important; min-width: 0 !important;
  height: 48px !important; margin: 0 !important; padding: 0 24px !important; border: 0 !important; border-radius: 999px !important;
  background: #ffd400 !important; color: #1b2140 !important; font: inherit; font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer;
}
.mlnews .block_newsletter input[name="submitNewsletter"].d-sm-block:hover { background: #ffe14d !important; }
.mlnews .block_newsletter input:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.mlnews .block_newsletter form .col-12 + .col-12 { margin-top: 10px; }
.mlnews .block_newsletter p,
.mlnews .block_newsletter label,
.mlnews .block_newsletter .custom-checkbox { color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.45; }
.mlnews .block_newsletter a { color: #fff; text-decoration: underline; }
.mlnews .block_newsletter .alert { margin: 8px 0 0; padding: 8px 12px; border: 0; border-radius: 8px; font-size: 13px; }
.mlnews .block_newsletter .alert-success { background: rgba(31, 138, 76, .25); color: #fff; }
.mlnews .block_newsletter .alert-danger { background: rgba(200, 60, 40, .3); color: #fff; }

/* El pie pierde su 5.ª columna (el boletín): las 4 restantes ocupan el ancho */
@media (min-width: 1181px) {
  footer.mlft .mlft__inner { grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(120px, 1fr)); }
}

/* 18/11/2026 (Álvaro): barra de correo más contenida (máx. 560 px, a la derecha) y 44 px de alto;
   debajo, el consentimiento RGPD (psgdpr) con casilla nativa. Si hay consentimiento, se oculta el aviso de baja
   del módulo (como en PROD). */
.mlnews__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
@media (max-width: 900px) { .mlnews__wrap { grid-template-columns: 1fr; } }
.mlnews .block_newsletter input[type="email"],
.mlnews .block_newsletter input[name="submitNewsletter"].d-sm-block { height: 44px !important; }
.mlnews .block_newsletter .col-12:has(> :is(#gdpr_consent, .gdpr_consent)) > p:not(.alert) { display: none; }
.mlnews :is(#gdpr_consent, .gdpr_consent) { margin: 0; }
.mlnews :is(#gdpr_consent, .gdpr_consent) .custom-checkbox { display: block; padding: 0; background: transparent; border-radius: 0; margin: 0; } /* 04/12: en el checkout, onepage.css da fondo claro a todas las .custom-checkbox */
.mlnews :is(#gdpr_consent, .gdpr_consent) label.psgdpr_consent_message { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; cursor: pointer; font-size: 13px; }
.mlnews :is(#gdpr_consent, .gdpr_consent) input[type="checkbox"] {
  display: inline-block !important; position: static !important; opacity: 1 !important; appearance: auto !important; -webkit-appearance: checkbox !important;
  width: 16px !important; height: 16px !important; margin: 0 !important; flex: none; accent-color: #ffd400; cursor: pointer;
}
.mlnews :is(#gdpr_consent, .gdpr_consent) input[type="checkbox"] + span { display: none !important; } /* casilla falsa del tema */

/* 19/11/2026 (Álvaro): texto y barra juntos en el centro, sin el hueco del medio en pantallas anchas */
@media (min-width: 901px) { .mlnews__wrap { grid-template-columns: minmax(0, 560px) minmax(0, 560px); justify-content: center; column-gap: 80px; } }
