/*
 * Opciones de la landing para todos los diseños (ver app/webroot/js/difundir/landing-opciones.js).
 * Los colores del botón fijo los toma el JS del botón principal de cada diseño; aquí solo
 * van la forma y la posición, con nombres lop- para no chocar con ninguna plantilla.
 */

/* ---------- Formulario en ventana ---------- */
.lop-dialogo {
	width: calc(100% - 24px);
	max-width: 640px;
	max-height: calc(100vh - 24px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	overflow: auto;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.lop-dialogo::backdrop { background: rgba(5, 6, 8, .7); }
.lop-dialogo > section { margin: 0 !important; min-height: 0 !important; }
.lop-dialogo__cerrar {
	position: sticky;
	top: 10px;
	float: right;
	z-index: 5;
	width: 40px;
	height: 40px;
	margin: 10px 10px -50px 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}
.lop-dialogo__aviso { display: none; margin: 14px 60px 0 16px; padding: 10px 14px; border-radius: 10px; font: 600 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.lop-dialogo__aviso.is-error { display: block; background: #fdecec; color: #b42318; }
.lop-dialogo__aviso.is-ok { display: block; background: #e7f6ec; color: #1f7a3d; }

/* ---------- Botón fijo en el celular ---------- */
.lop-fijo { display: none; }

@media (max-width: 767.98px) {
	.lop-fijo {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2147480000;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
		transform: translateY(110%);
		transition: transform .25s ease;
	}
	.lop-fijo.is-visible { transform: translateY(0); }
	.lop-fijo__boton {
		display: block;
		width: 100%;
		min-height: 50px;
		padding: 13px 18px;
		border: 0;
		border-radius: 12px;
		background-color: #1f2937;
		color: #fff;
		font: 700 16.5px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
	}
	.lop-fijo__boton--wa { background-color: #25D366 !important; color: #08311A !important; }
	body.lop-fijo-visible { padding-bottom: 76px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.lop-fijo { transition: none; }
}

/* ---------- Frase de confianza bajo el botón de enviar ---------- */
.lop-confianza {
	display: block;
	width: 100%;
	margin: 12px 0 0 !important;
	font-size: 13.5px !important;
	line-height: 1.45 !important;
	text-align: center;
	opacity: .78;
}
