/* ==========================================================================
   nudge — piezas de todo el sitio (inc/global.php): banner de cookies,
   popup del newsletter y el formulario del newsletter (también en /suscribite/).
   No depende de Salient ni de home-nudge.css: colores y medidas propias.
   ========================================================================== */

.ng-ck, .ng-news, .nh-news__form, .nh-news__ok {
	--ng-negro: #0A0A0A;
	--ng-sup: #151514;
	--ng-sup-2: #1C1C1A;
	--ng-borde: #3A3832;
	--ng-texto: #F5F4F0;
	--ng-texto-2: #A9A59A;
	--ng-texto-3: #C9C5BA;
	--ng-texto-4: #8C877B;
	--ng-oro: #D4A843;
	--ng-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
	--ng-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Banner de cookies ---------- */

.ng-ck {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2147483000;
	max-width: 1080px; margin: 0 auto; box-sizing: border-box;
	background: var(--ng-sup); color: var(--ng-texto-3); border: 1px solid var(--ng-borde); border-radius: 18px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); font: 400 14px/1.5 var(--ng-sans);
}
.ng-ck[hidden] { display: none; }
.ng-ck *, .ng-news *, .nh-news__form * { box-sizing: border-box; }
.ng-ck__in { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.ng-ck__txt { margin: 0; color: var(--ng-texto-3); font-size: 14px; line-height: 1.5; }
.ng-ck__txt strong { color: var(--ng-texto); font-weight: 700; }
.ng-ck__txt a { color: var(--ng-texto); text-decoration: underline; text-underline-offset: 3px; }
.ng-ck__prefs { display: grid; gap: 10px; }
.ng-ck__prefs[hidden] { display: none; }
.ng-ck__op { display: flex; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--ng-texto-2); }
.ng-ck__op input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ng-oro); }
.ng-ck__op b { display: block; color: var(--ng-texto); font-weight: 700; }
.ng-ck__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ng-ck__btn {
	min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ng-borde); background: transparent;
	color: var(--ng-texto); font: 600 14px/1 var(--ng-sans); cursor: pointer; letter-spacing: 0; text-transform: none;
}
.ng-ck__btn:hover { border-color: var(--ng-texto-4); }
.ng-ck__btn--oro { background: var(--ng-oro); border-color: var(--ng-oro); color: var(--ng-negro); }
.ng-ck__btn--oro:hover { background: #E0B752; border-color: #E0B752; }
.ng-ck__btn:focus-visible, .ng-news__cerrar:focus-visible, .nh-news__enviar:focus-visible { outline: 2px solid var(--ng-oro); outline-offset: 2px; }
@media (min-width: 768px) {
	.ng-ck { left: 24px; right: 24px; bottom: 24px; }
	.ng-ck__in { flex-direction: row; align-items: center; gap: 24px; padding: 18px 20px; flex-wrap: wrap; }
	.ng-ck__txt { flex: 1 1 380px; }
	.ng-ck__prefs { flex: 1 1 100%; order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ng-ck__btns { display: flex; flex: none; }
	.ng-ck__btn { min-height: 42px; }
}

/* ---------- Popup del newsletter ---------- */

.ng-news {
	width: min(100% - 32px, 480px); max-height: calc(100% - 32px); margin: auto; padding: 0; overflow: auto;
	background: var(--ng-sup); color: var(--ng-texto); border: 1px solid var(--ng-borde); border-radius: 24px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); font: 400 15px/1.5 var(--ng-sans);
}
.ng-news::backdrop { background: rgba(10, 10, 10, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ng-news__in { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 22px 22px; }
.ng-news__cerrar {
	position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; padding: 0;
	display: flex; align-items: center; justify-content: center; border: 1px solid var(--ng-borde); background: transparent; color: var(--ng-texto); cursor: pointer;
}
.ng-news__eyebrow { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ng-oro); }
.ng-news__tit { margin: 0; padding-right: 40px; font: 500 28px/1.12 var(--ng-serif); letter-spacing: -0.015em; color: var(--ng-texto); }
.ng-news__txt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ng-texto-2); }
.ng-news__panel { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ng-texto-3); }
.ng-news .nh-news__caja { margin-top: 6px; }
.ng-news .nh-news__campos { grid-template-columns: 1fr !important; }
@media (min-width: 768px) {
	.ng-news__in { padding: 36px 32px 28px; }
	.ng-news__tit { font-size: 32px; }
}

/* ---------- Formulario del newsletter (popup y /suscribite/) ---------- */

.nh-news__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.nh-news__form[hidden] { display: none; }
.nh-news__campos { display: flex; flex-direction: column; gap: 10px; }
.nh-news__campo { display: flex; min-width: 0; margin: 0; }
.nh-news__campo input {
	width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border-radius: 14px; border: 1px solid var(--ng-borde); background: var(--ng-negro);
	color: var(--ng-texto); font: 500 16px/1.2 var(--ng-sans); box-shadow: none;
}
.nh-news__campo input::placeholder { color: var(--ng-texto-4); opacity: 1; }
.nh-news__campo input:focus { outline: 2px solid var(--ng-oro); outline-offset: 1px; border-color: var(--ng-oro); }
.nh-news__campo input[aria-invalid="true"] { border-color: #E07B6A; }
.nh-news__acepto { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 0; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--ng-texto-3); }
.nh-news__acepto input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ng-oro); }
.nh-news__acepto input[aria-invalid="true"] { outline: 2px solid #E07B6A; outline-offset: 2px; }
.nh-news__enviar {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--ng-oro); color: var(--ng-negro); font: 700 16px/1 var(--ng-sans); cursor: pointer; letter-spacing: 0; text-transform: none;
}
.nh-news__enviar:hover { background: #E0B752; }
.nh-news__enviar[disabled] { opacity: .7; cursor: progress; }
.nh-news__error { margin: 0; font-size: 14px; color: #F0A090; }
.nh-news__error[hidden] { display: none; }
.nh-news__legal { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ng-texto-4); }
.nh-news__legal a { color: var(--ng-texto-3); text-decoration: underline; }
.nh-news__ok { margin: 0; font: 400 15.5px/1.5 var(--ng-sans); color: var(--ng-texto); background: var(--ng-sup-2); border: 1px solid var(--ng-borde); border-radius: 16px; padding: 16px 18px; outline: none; }
.nh-news__ok[hidden] { display: none; }
.nh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) {
	/* En /suscribite/: nombre y email arriba, WhatsApp abajo a lo ancho. */
	.nh-news__campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nh-news__campo--ancho { grid-column: 1 / -1; }
}

/* reCAPTCHA v3: el sello se oculta y el aviso va en el texto legal de cada formulario (lo permite Google). */
.grecaptcha-badge { visibility: hidden !important; }
