/* ==========================================================================
   Banner de bienvenida · Newsletter
   Variables (las sobrescribe el plugin con los ajustes):
   --bnd-color (etiqueta y botón) · --bnd-title (color títulos) · --bnd-font (títulos)
   --bnd-ui-font / --bnd-ui-weight (etiqueta, botones) · --bnd-body-font (textos)
   ========================================================================== */
#bnd-banner{
	--bnd-color:#1f1f1f;--bnd-title:#3d3d3d;--bnd-accent:#7d947d;
	--bnd-font:'Jost','Helvetica Neue',Arial,sans-serif;--bnd-title-weight:500;
	--bnd-ui-font:'Jost','Helvetica Neue',Arial,sans-serif;--bnd-ui-weight:500;
	--bnd-body-font:'Jost','Helvetica Neue',Arial,sans-serif;
	position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px
}
#bnd-banner[hidden]{display:none}
#bnd-banner .bnd-overlay{position:absolute;inset:0;background:rgba(20,20,20,.55);opacity:0;transition:opacity .3s ease}
#bnd-banner .bnd-dialog{position:relative;width:100%;max-width:460px;background:#fff;color:#555;font-family:var(--bnd-body-font);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.25);text-align:center;opacity:0;transform:translateY(18px) scale(.98);transition:opacity .3s ease,transform .3s ease;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto}
#bnd-banner.bnd-open .bnd-overlay{opacity:1}
#bnd-banner.bnd-open .bnd-dialog{opacity:1;transform:none}
#bnd-banner .bnd-close{position:absolute;top:10px;right:10px;z-index:3;width:36px;height:36px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(0,0,0,.15);font-size:24px;line-height:1;color:#333;cursor:pointer}
#bnd-banner .bnd-close:hover,#bnd-banner .bnd-close:focus-visible{background:#fff;color:#000}

/* Aviso de modo prueba (solo lo ven los administradores) */
#bnd-banner .bnd-test-flag{position:absolute;top:10px;left:10px;z-index:3;max-width:calc(100% - 70px);background:#facc15;color:#422006;font:600 11px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:5px 10px;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.2);text-align:left}

/* ---------- Pasos (formulario / gracias) ---------- */
#bnd-banner .bnd-step{padding:30px 32px 22px;transition:opacity .2s ease}
#bnd-banner .bnd-step[hidden]{display:none}
#bnd-banner .bnd-fade .bnd-step{opacity:0}
#bnd-banner .bnd-step-form{display:flex;flex-direction:column;align-items:center}
#bnd-banner .bnd-step-form>*{width:100%}
#bnd-banner .bnd-step-form>.bnd-badge,#bnd-banner .bnd-step-form>.bnd-decline{width:auto}

/* ---------- Imagen: arriba (móvil/tablet), se ve cara y vestido ---------- */
#bnd-banner .bnd-img picture,#bnd-banner .bnd-img img{display:block;width:100%}
#bnd-banner .bnd-img img{height:clamp(220px,40vh,340px);object-fit:cover;object-position:50% 64%;border-radius:16px 16px 0 0}
#bnd-banner .bnd-has-img .bnd-step-form{padding-top:0}
#bnd-banner .bnd-has-img .bnd-step-form .bnd-badge{margin-top:-17px;position:relative;box-shadow:0 0 0 4px #fff}

/* ---------- Tipografía ---------- */
#bnd-banner .bnd-badge{display:inline-block;background:var(--bnd-color);color:#fff;font-family:var(--bnd-ui-font);font-weight:var(--bnd-ui-weight);font-size:12px;letter-spacing:.18em;text-transform:uppercase;padding:9px 20px;border-radius:999px;margin-bottom:14px}
#bnd-banner .bnd-title{margin:0 0 10px;font-family:var(--bnd-font);font-weight:var(--bnd-title-weight);color:var(--bnd-title);line-height:1.1;text-transform:uppercase}
#bnd-banner .bnd-pre{display:block;font-size:14px;font-weight:400;letter-spacing:.32em;margin-bottom:6px}
#bnd-banner .bnd-main{display:block;font-size:clamp(30px,7.5vw,38px);letter-spacing:.08em}
#bnd-banner .bnd-main-sm{font-size:clamp(24px,6vw,30px);letter-spacing:.01em;text-transform:none}
#bnd-banner .bnd-text{margin:0 0 16px;font-size:15px;font-weight:400;line-height:1.5;color:#666}

/* ---------- Formulario ---------- */
#bnd-banner .bnd-row{display:flex;flex-direction:column;gap:10px}
#bnd-banner input[type=email]{width:100%;box-sizing:border-box;padding:13px 16px;border:1px solid #d6d6d6;border-radius:999px;font-family:var(--bnd-body-font);font-size:16px;text-align:center;background:#fafafa;color:#222}
#bnd-banner input[type=email]:focus{outline:2px solid var(--bnd-color);outline-offset:1px;background:#fff}
#bnd-banner .bnd-submit{width:100%;padding:14px 16px;border:0;border-radius:999px;background:var(--bnd-color);color:#fff;font-family:var(--bnd-ui-font);font-weight:var(--bnd-ui-weight);font-size:13px;letter-spacing:.16em;text-transform:uppercase;cursor:pointer}
#bnd-banner .bnd-submit:hover{filter:brightness(1.3)}
#bnd-banner .bnd-submit:disabled{opacity:.6;cursor:wait}
#bnd-banner .bnd-check{display:flex;gap:8px;align-items:flex-start;text-align:left;margin:12px 0 0;font-size:12.5px;line-height:1.4;color:#666;cursor:pointer}
#bnd-banner .bnd-check input{margin-top:2px;flex-shrink:0;accent-color:var(--bnd-color)}
#bnd-banner .bnd-check a{color:inherit;text-decoration:underline}
#bnd-banner .bnd-msg{min-height:1em;margin:8px 0 0;font-size:14px}
#bnd-banner .bnd-msg:empty{margin:0}
#bnd-banner .bnd-msg.is-error{color:#b42318}
#bnd-banner .bnd-validez{margin:12px 0 0;font-size:14px;font-style:italic;color:var(--bnd-accent)}
#bnd-banner .bnd-decline{display:inline-block;margin:14px 0 0;padding:4px;border:0;background:none;color:#777;font-family:var(--bnd-ui-font);font-size:13px;letter-spacing:.06em;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#bnd-banner .bnd-decline:hover{color:#222}
#bnd-banner .bnd-legal{margin:12px 0 0;font-size:10.5px;line-height:1.4;color:#a0a0a0;text-align:left}
#bnd-banner .bnd-hp,#bnd-banner .bnd-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Ventana de agradecimiento ---------- */
#bnd-banner .bnd-step-thanks{padding-top:34px}
#bnd-banner .bnd-thanks-icon{display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;border-radius:50%;background:#f4f1ee;color:var(--bnd-color);margin-bottom:16px}
#bnd-banner .bnd-title:focus{outline:none}
#bnd-banner .bnd-thanks-text{margin:6px 0 22px;font-size:15.5px;line-height:1.6;color:#555}
#bnd-banner .bnd-thanks-text p{margin:0 0 10px}
#bnd-banner .bnd-thanks-text p:last-child{font-style:italic;color:var(--bnd-accent);margin-bottom:0}
#bnd-banner .bnd-thanks-btn{max-width:280px}

/* ---------- Escritorio: foto a la izquierda, figura completa ---------- */
@media (min-width:721px){
	#bnd-banner .bnd-dialog.bnd-has-img{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);max-width:860px}
	#bnd-banner .bnd-has-img .bnd-img{grid-column:1;grid-row:1;position:relative;min-height:100%}
	#bnd-banner .bnd-has-img .bnd-img picture{position:absolute;inset:0}
	#bnd-banner .bnd-has-img .bnd-img img{height:100%;object-position:50% 70%;border-radius:16px 0 0 16px}
	#bnd-banner .bnd-has-img .bnd-step{grid-column:2;grid-row:1;align-self:center;padding:44px 40px 24px}
	#bnd-banner .bnd-has-img .bnd-step-form .bnd-badge{margin-top:0;box-shadow:none}
	#bnd-banner .bnd-has-img .bnd-img > img{position:absolute;inset:0}
}

/* ---------- Móvil ---------- */
@media (max-width:520px){
	#bnd-banner{padding:12px}
	#bnd-banner .bnd-dialog{max-width:400px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
	#bnd-banner .bnd-step{padding:24px 20px 14px}
	#bnd-banner .bnd-step-thanks{padding-top:34px}
	#bnd-banner .bnd-has-img .bnd-step-form{padding-top:0}
	#bnd-banner .bnd-text{display:none}
	#bnd-banner .bnd-pre{font-size:12.5px}
	#bnd-banner .bnd-main{font-size:clamp(27px,8.4vw,32px)}
	#bnd-banner .bnd-title{margin-bottom:14px}
	#bnd-banner input[type=email]{padding:12px 14px} /* 16px de letra: evita el zoom automático del iPhone */
	#bnd-banner .bnd-submit{padding:13px 14px}
	#bnd-banner .bnd-check{font-size:12px;margin-top:10px}
	#bnd-banner .bnd-validez{margin-top:10px;font-size:13.5px}
	#bnd-banner .bnd-decline{margin-top:8px}
	#bnd-banner .bnd-legal{margin-top:8px;font-size:10px}
	#bnd-banner .bnd-thanks-icon{width:76px;height:76px}
}
@media (max-width:520px) and (max-height:700px){
	#bnd-banner .bnd-img img{height:clamp(170px,30vh,220px);object-position:50% 50%}
}
@media (prefers-reduced-motion:reduce){
	#bnd-banner .bnd-overlay,#bnd-banner .bnd-dialog,#bnd-banner .bnd-step{transition:none}
}
