/* B&B Portal de Clientes · ícono de usuario en el header (va antes de "Contactanos") */

.byb-header-contacto.e-con.byb-pc-has-user {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 12px !important;
	width: auto !important;
	overflow: visible !important;
}

.byb-pc-user {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	font-family: "DM Sans", sans-serif;
}

/* Botón redondo dorado (anula los estilos de botón del tema Hello). */
.byb-pc-user .byb-pc-user__btn,
.byb-pc-user button.byb-pc-user__btn {
	box-sizing: border-box !important;
	position: relative !important;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1.5px solid #A88B52 !important;
	background: #A88B52 !important;
	color: #061D3D !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none !important;
	font: 700 14px/1 "DM Sans", sans-serif !important;
	letter-spacing: 0.5px;
	box-shadow: 0 0 0 0 rgba(203, 169, 106, 0.55);
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Numerito rojo: hay algo para revisar (documentos nuevos, vencimientos próximos, avisos). */
.byb-pc-user__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: #D64545;
	border: 1.5px solid #FFFFFF;
	color: #FFFFFF;
	font: 700 10px/1 "DM Sans", sans-serif;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.byb-pc-user .byb-pc-user__btn:hover,
.byb-pc-user .byb-pc-user__btn:focus-visible,
.byb-pc-user .byb-pc-user__btn[aria-expanded="true"] {
	background: #CBA96A !important;
	border-color: #CBA96A !important;
	color: #061D3D !important;
	text-decoration: none !important;
}

/* Al pasar el mouse se agranda un poco y late. */
.byb-pc-user .byb-pc-user__btn:hover {
	animation: byb-pc-latido 1.1s ease-in-out infinite;
}

@keyframes byb-pc-latido {
	0% {
		transform: scale(1.08);
		box-shadow: 0 0 0 0 rgba(203, 169, 106, 0.55);
	}
	30% {
		transform: scale(1.16);
	}
	60% {
		transform: scale(1.08);
		box-shadow: 0 0 0 9px rgba(203, 169, 106, 0);
	}
	100% {
		transform: scale(1.08);
		box-shadow: 0 0 0 0 rgba(203, 169, 106, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.byb-pc-user .byb-pc-user__btn:hover {
		animation: none;
		transform: scale(1.06);
	}
}

.byb-pc-user .byb-pc-user__btn:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.byb-pc-user__btn svg {
	display: block;
}

.byb-pc-user__menu {
	position: absolute;
	top: calc(100% + 12px);
	right: auto;
	left: 0;
	z-index: 10000000;
	min-width: 220px;
	padding: 8px;
	background: #FFFFFF;
	border-radius: 12px;
	box-shadow: 0 16px 38px rgba(6, 29, 61, 0.28);
}

.byb-pc-user__menu[hidden] {
	display: none;
}

.byb-pc-user__hello {
	padding: 10px 12px 8px;
	font-size: 13px;
	color: #5B6472;
	border-bottom: 1px solid #EEF0F4;
	margin-bottom: 4px;
}

.byb-pc-user__item {
	display: block;
	padding: 12px;
	border-radius: 8px;
	color: #082650 !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
}

.byb-pc-user__item:hover,
.byb-pc-user__item:focus-visible {
	background: #F3F4F7;
}

.byb-pc-user__item--salir {
	color: #8A3B12 !important;
}

/* Tablet y celular: mismo tamaño que el botón redondo de contacto */
@media screen and (max-width: 1024px) {
	.byb-header-contacto.e-con.byb-pc-has-user {
		width: auto !important;
		height: 48px !important;
		gap: 8px !important;
		justify-content: flex-end !important;
	}

	.byb-pc-user .byb-pc-user__btn,
	.byb-pc-user button.byb-pc-user__btn {
		width: 48px !important;
		height: 48px !important;
		font-size: 15px !important;
	}

	.byb-pc-user__btn svg {
		width: 22px;
		height: 22px;
	}

	.byb-pc-user__menu {
		position: fixed;
		top: calc(var(--byb-header-height, 92px) + 8px);
		right: 16px;
		left: auto;
		width: min(280px, calc(100vw - 32px));
	}
}
