/* Suscriptores del Directorio — formulario, barra y popup de captación. */

.dlsg-susc-form-wrap,
.dlsg-susc-form-wrap *,
.dlsg-susc-form,
.dlsg-susc-form *,
.dlsg-susc-barra,
.dlsg-susc-barra *,
.dlsg-susc-popup,
.dlsg-susc-popup * {
	box-sizing: border-box;
}

/* ---- Formulario ---- */
.dlsg-susc-form-wrap {
	max-width: 100%;
}
.dlsg-susc-form {
	max-width: 100%;
}
.dlsg-susc-campo {
	margin-bottom: 12px;
}
.dlsg-susc-campo label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}
.dlsg-susc-campo--check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-height: 44px;
	font-size: 13px;
	line-height: 1.4;
}
.dlsg-susc-campo--check input {
	width: 24px;
	height: 24px;
	margin-top: 3px;
	flex: 0 0 auto;
}
.dlsg-susc-form input[type="email"],
.dlsg-susc-form input[type="tel"],
.dlsg-susc-form input[type="text"],
.dlsg-susc-form select {
	width: 100%;
	min-height: 44px;
	border-radius: 9999px;
	border: 1px solid #ccc;
	padding: 0 16px;
	font-size: 16px;
	max-width: 100%;
}
.dlsg-susc-form input:focus,
.dlsg-susc-form select:focus,
.dlsg-susc-btn:focus {
	outline: 3px solid #0363b6;
	outline-offset: 2px;
}
.dlsg-susc-btn {
	width: 100%;
	min-height: 44px;
	border-radius: 9999px;
	border: none;
	background: #0363b6;
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
}
.dlsg-susc-hp {
	position: absolute;
	left: -9999px;
}
.dlsg-susc-msg {
	margin: 8px 0 0;
	font-size: 14px;
	min-height: 1em;
}
.dlsg-susc-msg.dlsg-susc-msg--ok {
	color: #1a7f37;
}
.dlsg-susc-msg.dlsg-susc-msg--error {
	color: #c0242d;
}

/* ---- Barra ---- */
.dlsg-susc-barra {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	max-width: 100%;
	min-height: 56px;
	gap: 12px;
	padding: 10px 16px;
	background: #0363b6;
	color: #fff;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}
.dlsg-susc-barra:not([hidden]) {
	display: flex;
	align-items: center;
}
.dlsg-susc-barra.dlsg-susc-visible {
	transform: translateY(0);
}
.dlsg-susc-barra-texto {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dlsg-susc-barra-btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 9999px;
	border: none;
	background: #fff;
	color: #0363b6;
	font-weight: bold;
	cursor: pointer;
}
.dlsg-susc-barra-cerrar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
body.dlsg-barra-visible {
	padding-bottom: 64px;
}
@media (max-width: 600px) {
	.dlsg-susc-barra {
		min-height: 56px;
	}
	.dlsg-susc-barra-texto {
		font-size: 14px;
	}
	body.dlsg-barra-visible {
		padding-bottom: 56px;
	}
}
@media (min-width: 601px) {
	.dlsg-susc-barra {
		min-height: 64px;
	}
}

/* ---- Popup ---- */
.dlsg-susc-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9995;
	background: rgba(0, 0, 0, 0.55);
}
.dlsg-susc-popup {
	position: fixed;
	inset: 0;
	z-index: 9996;
	max-width: 100%;
	padding: 16px;
}
.dlsg-susc-popup:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
}
.dlsg-susc-popup-card {
	position: relative;
	max-width: 520px;
	width: calc(100% - 32px);
	max-height: 85vh;
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	padding: 28px;
}
.dlsg-susc-popup-cerrar {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.dlsg-susc-popup-card h2 {
	margin: 0 32px 12px 0;
	font-size: 20px;
}

.dlsg-susc-opcional {
	font-weight: normal;
	opacity: 0.7;
}
.dlsg-susc-ayuda {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.75;
}

/* El shortcode puede caer en un contenedor a ancho completo: se acota solo. */
.dlsg-susc-form-wrap,
.dlsg-susc-sc-cheque {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
.dlsg-susc-sc-cheque .dlsg-cheque {
	max-width: 320px;
	margin: 0 auto 18px;
}

/* ---- Cheque del sorteo ---- */
.dlsg-cheque {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0 0 18px;
	padding: 16px 18px 14px;
	border-radius: 14px;
	overflow: hidden;
	text-align: center;
	color: #fff;
	background: linear-gradient(135deg, #0b4c8c 0%, #0363b6 55%, #1780d8 100%);
	box-shadow: 0 10px 24px rgba(3, 99, 182, 0.28);
}
/* Brillo diagonal: da sensación de tarjeta impresa sin cargar ninguna imagen. */
.dlsg-cheque::after {
	content: "";
	position: absolute;
	top: -60%;
	left: -20%;
	width: 60%;
	height: 220%;
	transform: rotate(18deg);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}
.dlsg-cheque-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	background: #ffc83d;
	color: #3d2c00;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.dlsg-cheque-importe {
	display: block;
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.dlsg-cheque-euro {
	font-size: 30px;
	font-weight: 700;
	vertical-align: super;
	margin-left: 2px;
}
.dlsg-cheque-pie {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.95;
}
@media (min-width: 480px) {
	.dlsg-cheque-importe { font-size: 64px; }
}

/* ---- Páginas de confirmación, baja y error ---- */
.dlsg-susc-pagina {
	max-width: 560px;
	margin: 0 auto;
}
.dlsg-susc-pagina .dlsg-cheque {
	max-width: 320px;
	margin: 22px auto;
}
.dlsg-susc-lead {
	font-size: 17px;
	line-height: 1.6;
}
.dlsg-susc-btn-enlace {
	display: inline-block;
	margin-top: 8px;
	padding: 12px 26px;
	border-radius: 9999px;
	background: #0363b6;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}
.dlsg-susc-btn-enlace:hover,
.dlsg-susc-btn-enlace:focus {
	background: #024b8c;
	color: #fff;
}

/*
 * Regla fija de la casa: el móvil no "baila". `clip` además de `hidden` y en los
 * dos selectores — con `hidden` a secas el body se convierte en contenedor de
 * scroll y la rueda del ratón deja de encadenar al documento.
 */
html,
body {
	overflow-x: hidden;
	overflow-x: clip;
}
