/* Estilos del núcleo que se usan en todas las páginas del portal (también sin beneficios):
   el aviso para instalar la app y sus botones. Los colores salen de la marca (--b-primario, --b-acento). */

.b-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 14px;
	background: var(--b-primario);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.b-btn:hover {
	filter: brightness(0.9);
}

.b-enlace-boton {
	border: 0;
	background: none;
	padding: 4px 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--b-primario);
	text-decoration: underline;
	cursor: pointer;
}

.b-btn:focus-visible,
.b-enlace-boton:focus-visible {
	outline: 3px solid var(--b-acento);
	outline-offset: 2px;
}

/* Aviso para instalar la app en el celular */
.b-instalar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom));
	z-index: 1050;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff;
	color: var(--b-texto, #111827);
	border-left: 5px solid var(--b-acento);
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.25);
	animation: b-subir 0.25s ease-out;
}

.b-instalar p {
	margin: 0 0 10px;
	line-height: 1.45;
}

.b-instalar strong {
	color: var(--b-primario);
}

.b-instalar .b-instalar__titulo {
	margin: 0 0 2px;
	font-weight: 800;
	font-size: 1.0625rem;
	color: var(--b-primario);
}

.b-instalar .b-instalar__texto {
	margin: 0 0 12px;
	color: var(--b-gris-700, #374151);
}

.b-instalar__pasos {
	margin: 8px 0 14px;
	padding: 0;
	list-style: none;
	counter-reset: paso;
}

.b-instalar__pasos li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 36px;
	line-height: 1.4;
	counter-increment: paso;
}

.b-instalar__pasos li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: -1px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--b-primario);
	color: #fff;
	font-weight: 800;
	font-size: 0.875rem;
	line-height: 26px;
	text-align: center;
}

.b-instalar__simbolo {
	display: inline-block;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--b-gris-50, #f9fafb);
	border: 1px solid var(--b-gris-200, #e5e7eb);
}

.b-instalar__acciones {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.b-instalar__acciones .b-instalar__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 100%;
	width: auto;
	min-height: 48px;
	padding: 0 22px;
	font-size: 1rem;
}

@keyframes b-subir {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.b-instalar {
		animation: none;
	}
}
