/* Barra angosta de "instalar como app" (11/11/2026). Fija abajo, chica,
   esquivable, no tapa nada. Mismo archivo para los dos sitios (ver
   empleos-miperfil/assets/css/pwa-instalar.css), solo cambia la URL del
   ícono que arma el JS. */

.mp-instalar-barra {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
	padding: 10px 12px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
	font-family: inherit;
	animation: mp-instalar-barra-in 0.25s ease-out;
}

@keyframes mp-instalar-barra-in {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.mp-instalar-barra__icono {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
}

.mp-instalar-barra__texto {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.mp-instalar-barra__texto strong {
	font-size: 13.5px;
	color: #1f2937;
}

.mp-instalar-barra__texto span {
	font-size: 12px;
	color: #6b7280;
}

.mp-instalar-barra__btn {
	background: #29446b;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	flex-shrink: 0;
}

.mp-instalar-barra__cerrar {
	background: none;
	border: none;
	color: #9ca3af;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	flex-shrink: 0;
}

@media (min-width: 821px) {
	.mp-instalar-barra { display: none !important; }
}

/* Guía de 3 pasos para iPhone (11/11/2026) — carrusel con scroll-snap,
   sin librería. Reusada por el wizard (window.MPGuiaInstalar.mostrar()),
   no solo por la barra. */

.mp-guia-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	animation: mp-guia-fade-in 0.2s ease-out;
}

@keyframes mp-guia-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.mp-guia-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 20px 20px 0 0;
	padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
	font-family: inherit;
}

@media (min-width: 480px) {
	.mp-guia-modal {
		border-radius: 20px;
		margin-bottom: 24px;
	}
}

.mp-guia-cerrar {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	color: #6b7280;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
	z-index: 1;
}

.mp-guia-slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.mp-guia-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 20px 0;
	text-align: center;
}

.mp-guia-slide img {
	max-width: 100%;
	max-height: 62vh;
	border-radius: 12px;
}

.mp-guia-puntos {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.mp-guia-punto {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d1d5db;
}

.mp-guia-punto--activo {
	background: #29446b;
}

.mp-guia-chrome {
	margin: 14px 20px 0;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}
