/* VSF Barra Boletín — réplica del aspecto que tenía la barra de MyThemeShop.
   Los valores salen de los estilos CALCULADOS de la barra anterior en el
   navegador, no de su configuración: el degradado no venía del plugin sino
   del CSS personalizado de Divi (regla `.mtsnb div`), y por eso se reproduce
   aquí, para que la barra sea autónoma y no dependa de aquel CSS. */

.vsf-barra {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #007b08;
	color: #fff;
	font-family: inherit;
	text-align: center;

	/* Entrada suave desde abajo; se activa al añadir --visible. */
	transform: translateY(100%);
	transition: transform .35s ease;
}

.vsf-barra[hidden] {
	display: none;
}

.vsf-barra--visible {
	transform: translateY(0);
}

.vsf-barra__interior {
	position: relative;
	padding: 10px 44px;
	background: rgb(255, 23, 25);
	background: linear-gradient(to right, rgb(255, 23, 25) 0%, rgb(247, 247, 0) 100%);
}

/* Contenido -------------------------------------------------------------- */

.vsf-barra__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.vsf-barra__texto {
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: #fff;
}

.vsf-barra input[type="text"],
.vsf-barra input[type="email"] {
	padding: 6px 10px;
	font-size: 18px;
	border-radius: 5px;
	color: #666;
	border: 0;
	font-family: inherit;
	min-width: 210px;
	max-width: 100%;
}

.vsf-barra input:focus {
	outline: 2px solid #000;
	outline-offset: 1px;
}

.vsf-barra__boton {
	padding: 6px 10px;
	width: 210px;
	max-width: 100%;
	border: 0;
	border-radius: 5px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	cursor: pointer;
}

.vsf-barra__boton:hover,
.vsf-barra__boton:focus {
	background: #333;
	color: #fff;
}

/* Privacidad: en la barra anterior la casilla estaba FUERA del formulario,
   así que no se enviaba ni se validaba. Aquí va dentro y es obligatoria. */
.vsf-barra__privacidad {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	cursor: pointer;
	flex-basis: 100%;
	justify-content: center;
}

.vsf-barra__privacidad input {
	flex: 0 0 auto;
	margin: 0;
}

.vsf-barra a {
	color: #fff;
	text-decoration: underline;
}

.vsf-barra a:hover,
.vsf-barra a:focus {
	color: #f8e100;
}

.vsf-barra__mensaje {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: #fff;
}

/* Cerrar ----------------------------------------------------------------- */

.vsf-barra__cerrar {
	position: absolute;
	top: 6px;
	right: 10px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #000;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.vsf-barra__cerrar:hover,
.vsf-barra__cerrar:focus {
	background: rgba(0, 0, 0, .12);
}

/* Accesibilidad: etiquetas presentes para lectores de pantalla, ocultas a la
   vista porque el diseño usa placeholders. */
.vsf-barra__oculto,
.vsf-barra__trampa {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 700px) {
	.vsf-barra__interior {
		padding: 10px 40px;
	}

	.vsf-barra__texto,
	.vsf-barra__mensaje {
		font-size: 16px;
		line-height: 22px;
	}

	.vsf-barra input[type="text"],
	.vsf-barra input[type="email"],
	.vsf-barra__boton {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}
}

/* Sin JavaScript la barra no llega a mostrarse (la decisión de enseñarla es
   del script, para que la página siga siendo cacheable). */
@media (prefers-reduced-motion: reduce) {
	.vsf-barra {
		transition: none;
	}
}
