/* Cuenta de cada persona en la cabecera y página «Mi cuenta» (26-nov-2026).
   Colores de la web: verde #A3C032 (consumidor), naranja #F36A15 (comercio), oscuro #161C26 (gestión). */

.bct-cuenta {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
	font-family: Quicksand, "Helvetica Neue", Arial, sans-serif;
	z-index: 50;
}
.bct-cuenta[hidden] { display: none !important; }

/* Sin sesión: «Entrar». */
.bct-cuenta__entrar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid #dfe3e8;
	border-radius: 999px;
	color: #161C26 !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	background: #fff;
	transition: border-color .15s, background .15s;
}
.bct-cuenta__entrar:hover, .bct-cuenta__entrar:focus-visible { border-color: #161C26; background: #f7f8fa; }

/* Con sesión: botón con las iniciales y el nombre. */
.bct-cuenta__boton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 3px 10px 3px 3px;
	border: 1.5px solid #dfe3e8;
	border-radius: 999px;
	background: #fff;
	color: #161C26;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.bct-cuenta__boton:hover, .bct-cuenta__boton[aria-expanded="true"] { border-color: #161C26; background: #f7f8fa; }
.bct-cuenta__boton:focus-visible, .bct-cuenta__entrar:focus-visible, .bct-cuenta__item:focus-visible {
	outline: 2px solid #F36A15;
	outline-offset: 2px;
}
.bct-cuenta__nombre { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bct-cuenta__boton .bct-ico { width: 16px; height: 16px; transition: transform .15s; }
.bct-cuenta__boton[aria-expanded="true"] .bct-ico { transform: rotate(180deg); }

.bct-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	background: #e5e7eb;
	color: #161C26;
}
.bct-avatar--gestion { background: #161C26; color: #fff; }
.bct-avatar--comercio { background: #F36A15; color: #161C26; }
.bct-avatar--consumidor { background: #A3C032; color: #161C26; }
.bct-avatar--grande { width: 44px; height: 44px; font-size: 16px; }
.bct-avatar--xl { width: 64px; height: 64px; font-size: 22px; }

/* Desplegable. */
.bct-cuenta__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 320px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #dfe3e8;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);
	padding: 8px;
	text-align: left;
}
.bct-cuenta__menu[hidden] { display: none; }
.bct-cuenta__cab { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid #eef0f3; margin-bottom: 6px; }
.bct-cuenta__quien { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bct-cuenta__quien strong { font-size: 15px; color: #161C26; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bct-cuenta__quien > span:not(.bct-cuenta__etiquetas) { font-size: 13px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bct-cuenta__etiquetas { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.bct-cuenta__etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: #f1f3f5; color: #374151; }
.bct-cuenta__etiqueta--gestion { background: #161C26; color: #fff; }
.bct-cuenta__etiqueta--comercio { background: #fff1e8; color: #9a3d06; }
.bct-cuenta__etiqueta--consumidor { background: #f3f8e4; color: #4d5f12; }
.bct-cuenta__grupo { display: flex; flex-direction: column; padding: 4px 0; }
.bct-cuenta__grupo + .bct-cuenta__grupo { border-top: 1px solid #eef0f3; margin-top: 4px; padding-top: 8px; }
.bct-cuenta__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 10px;
	color: #161C26 !important;
	text-decoration: none !important;
	font-size: 15px;
	line-height: 1.25;
}
.bct-cuenta__item:hover { background: #f5f6f8; }
.bct-cuenta__item .bct-ico { flex: 0 0 auto; color: #6b7280; }
.bct-cuenta__texto { display: flex; flex-direction: column; min-width: 0; }
.bct-cuenta__titulo { font-weight: 700; }
.bct-cuenta__desc { font-size: 13px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bct-cuenta__item--salir .bct-cuenta__titulo { font-weight: 600; }

/* Móvil: solo las iniciales, y el menú como hoja a lo ancho bajo la cabecera. */
@media (max-width: 767px) {
	.bct-cuenta { margin-right: 6px; }
	.bct-cuenta__nombre, .bct-cuenta__boton > .bct-ico { display: none; }
	.bct-cuenta__boton { padding: 3px; }
	.bct-cuenta__entrar { padding: 0 12px; font-size: 14px; }
	.bct-cuenta__menu {
		position: fixed;
		top: var(--bct-cuenta-top, 80px);
		left: 12px;
		right: 12px;
		width: auto;
		max-height: calc(100vh - var(--bct-cuenta-top, 80px) - 12px);
	}
}
@media (max-width: 380px) {
	.bct-cuenta__entrar span { display: none; }
}

/* Página «Mi cuenta». */
.bct-mi-cuenta { max-width: 760px; margin: 0 auto; }
.bct-mi-cuenta__cab { display: flex; align-items: center; gap: 18px; }
.bct-mi-cuenta__cab h2 { margin: 0 0 2px; }
.bct-mi-cuenta__cab p { margin: 0; }
.bct-mi-cuenta__cab .bct-cuenta__etiquetas { margin-top: 8px; }
.bct-mi-cuenta__accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bct-mi-cuenta__acceso {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	color: #161C26 !important;
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.bct-mi-cuenta__acceso:hover { border-color: #161C26; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.bct-mi-cuenta__acceso strong { display: block; font-size: 16px; margin-bottom: 2px; }
.bct-mi-cuenta__acceso .bct-suave { display: block; font-size: 14px; }
.bct-mi-cuenta__icono { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #f1f3f5; flex: 0 0 auto; }
.bct-mi-cuenta__acceso--gestion .bct-mi-cuenta__icono { background: #161C26; color: #fff; }
.bct-mi-cuenta__acceso--mi_comercio .bct-mi-cuenta__icono, .bct-mi-cuenta__acceso--caja .bct-mi-cuenta__icono, .bct-mi-cuenta__acceso--alta_comercio .bct-mi-cuenta__icono { background: #fff1e8; color: #c9530c; }
.bct-mi-cuenta__acceso--mi_bono .bct-mi-cuenta__icono, .bct-mi-cuenta__acceso--registro .bct-mi-cuenta__icono { background: #f3f8e4; color: #5d7116; }
.bct-mi-cuenta__datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.bct-mi-cuenta__datos dt { color: #6b7280; font-weight: 600; }
.bct-mi-cuenta__datos dd { margin: 0; overflow-wrap: anywhere; }
.bct-mi-cuenta__salir .bct-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) {
	.bct-mi-cuenta__cab { gap: 14px; }
	.bct-avatar--xl { width: 52px; height: 52px; font-size: 18px; }
	.bct-mi-cuenta__datos { grid-template-columns: 1fr; gap: 2px; }
	.bct-mi-cuenta__datos dd { margin-bottom: 8px; }
}
