/* =========================================================
   PÁGINA "MI CUENTA" (plantilla page-cuenta.php)
   Estilo provisorio con los colores del tema.
   ========================================================= */

.mc-cuenta-pagina.main-dashboard {
	grid-template-columns: 1fr;
	max-width: 520px;
}

.mc-cuenta {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.mc-cuenta-cabecera {
	text-align: center;
}

.mc-cuenta-titulo {
	margin: 0;
	font-size: clamp(1.4rem, 4vw, 1.9rem);
	overflow-wrap: anywhere;
}

.mc-cuenta-intro {
	margin-top: 8px;
	color: #a5a5ab;
	line-height: 1.6;
}

.mc-cuenta-intro p {
	margin: 0 0 0.6em;
}

/* ---------- Pestañas Ingresar / Crear cuenta ---------- */
.mc-cuenta-pestanas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
}

.mc-cuenta-pestana {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	color: #a5a5ab;
	text-decoration: none;
}

.mc-cuenta-pestana.is-activa {
	color: #000;
	background: var(--accent, #ff9e00);
}

/* ---------- Avisos ---------- */
.mc-cuenta-aviso {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
}

.mc-cuenta-aviso.is-error {
	color: #ffb4b4;
	background: rgba(214, 69, 69, 0.15);
	border: 1px solid rgba(214, 69, 69, 0.5);
}

.mc-cuenta-aviso.is-ok {
	margin-top: 10px;
	color: #a8e6b8;
	background: rgba(46, 157, 79, 0.15);
	border: 1px solid rgba(46, 157, 79, 0.5);
}

/* ---------- Formularios ---------- */
.mc-cuenta-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mc-cuenta-campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mc-cuenta-campo label {
	font-weight: 700;
	font-size: 0.9rem;
}

.mc-cuenta-campo small {
	color: #8a8a90;
	font-size: 0.8rem;
}

.mc-cuenta-form input[type="text"],
.mc-cuenta-form input[type="email"],
.mc-cuenta-form input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px; /* 16px evita que el iPhone haga zoom al tocar el campo */
	color: var(--text-white, #fff);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid #2c2c32;
	border-radius: 10px;
	box-sizing: border-box;
}

.mc-cuenta-form input:focus {
	outline: none;
	border-color: var(--accent, #ff9e00);
	box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.25);
}

.mc-cuenta-clave {
	position: relative;
}

.mc-cuenta-clave input {
	padding-right: 90px !important;
}

.mc-cuenta-ver-clave {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	min-height: 34px;
	padding: 0 12px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent, #ff9e00);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.mc-cuenta-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	line-height: 1.4;
	cursor: pointer;
}

.mc-cuenta-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--accent, #ff9e00);
}

.mc-cuenta-check a,
.mc-cuenta-olvide {
	color: var(--accent, #ff9e00);
}

.mc-cuenta-olvide {
	align-self: center;
	font-size: 0.85rem;
}

/* Campo trampa para robots: fuera de la vista, pero no display:none
   (algunos robots se saltean los campos con display:none). */
.mc-cuenta-trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Botones ---------- */
.mc-cuenta-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	color: var(--accent, #ff9e00);
	background: transparent;
	border: 1px solid var(--accent, #ff9e00);
	border-radius: 999px;
	cursor: pointer;
}

.mc-cuenta-boton.is-principal {
	color: #000;
	background: var(--accent, #ff9e00);
}

.mc-cuenta-acciones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* ---------- Puntos (con sesión iniciada) ---------- */
.mc-cuenta-puntos {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	border-radius: 12px;
	background: rgba(255, 158, 0, 0.08);
	border: 1px solid rgba(255, 158, 0, 0.3);
}

.mc-cuenta-puntos-total {
	font-size: clamp(2.2rem, 8vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--accent, #ff9e00);
}

.mc-cuenta-puntos-texto {
	color: #a5a5ab;
}

.mc-cuenta-juegos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mc-cuenta-juego {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid #1f1f23;
}

.mc-cuenta-juego-icono {
	color: var(--accent, #ff9e00);
	width: 20px;
	text-align: center;
}

.mc-cuenta-juego-nombre {
	flex: 1;
}

.mc-cuenta-juego-puntos {
	font-weight: 800;
}

/* ---------- Perfil (con sesión iniciada) ---------- */
.mc-cuenta-pagina.is-perfil.main-dashboard {
	max-width: 720px;
}

.mc-perfil {
	margin: -22px -22px 0; /* la portada ocupa todo el ancho de la caja */
}

.mc-perfil-portada {
	height: clamp(120px, 26vw, 220px);
	border-radius: 12px 12px 0 0;
	background-color: #2a2a2f;
	background-size: cover;
	background-position: center;
}

.mc-perfil-identidad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0 22px;
	margin-top: -56px; /* la foto se monta sobre la portada */
	text-align: center;
}

.mc-avatar-grande {
	font-size: 2.6rem;
	width: 112px;
	height: 112px;
	border: 4px solid #121214;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mc-perfil-nombre {
	margin: 8px 0 0;
	font-size: clamp(1.4rem, 4vw, 1.9rem);
	overflow-wrap: anywhere;
}

.mc-perfil-bio {
	margin: 2px 0 0;
	max-width: 32rem;
	color: #c9c9ce;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.mc-perfil-desde {
	margin: 2px 0 0;
	font-size: 0.8rem;
	color: #8a8a90;
}

.mc-cuenta-subtitulo {
	margin: 0;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.mc-cuenta-juego-nombre small {
	display: block;
	font-size: 0.75rem;
	color: #8a8a90;
}

.mc-cuenta-vacio {
	margin: 0;
	text-align: center;
	color: #a5a5ab;
}

.mc-cuenta-boton i {
	margin-right: 8px;
}

.mc-cuenta-boton.is-discreto {
	color: #a5a5ab;
	border-color: #2c2c32;
}

/* ---------- Editar perfil ---------- */
.mc-perfil-form .mc-perfil {
	margin-bottom: -6px;
}

.mc-perfil-form textarea {
	width: 100%;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--text-white, #fff);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid #2c2c32;
	border-radius: 10px;
	box-sizing: border-box;
	resize: vertical;
}

.mc-perfil-form textarea:focus {
	outline: none;
	border-color: var(--accent, #ff9e00);
	box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.25);
}

.mc-opcional {
	font-weight: 400;
	color: #8a8a90;
}

.mc-perfil-opciones {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.mc-perfil-opciones legend {
	padding: 0;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 0.9rem;
}

.mc-perfil-grilla {
	display: grid;
	gap: 10px;
}

.mc-perfil-grilla-avatares {
	grid-template-columns: repeat(3, minmax(0, 1fr)); /* 6 tucanes: 3 × 2 */
}

.mc-perfil-grilla-portadas {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.mc-perfil-opcion {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border-radius: 12px;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
}

/* El radio queda invisible pero se puede usar con teclado */
.mc-perfil-opcion input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mc-perfil-opcion:has(input:checked) {
	border-color: var(--accent, #ff9e00);
	background: rgba(255, 158, 0, 0.08);
}

.mc-perfil-opcion:has(input:focus-visible) {
	outline: 3px solid var(--accent, #ff9e00);
	outline-offset: 2px;
}

.mc-perfil-opcion .mc-avatar {
	font-size: 1.4rem;
	width: min(88px, 100%);
	height: auto;
	aspect-ratio: 1;
}

.mc-portada-muestra {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 1;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}

.mc-perfil-opcion-nombre {
	font-size: 0.75rem;
	color: #c9c9ce;
	line-height: 1.2;
}

/* Las fotos de perfil van sin nombre a la vista (lo siguen leyendo los lectores de pantalla) */
.mc-perfil-grilla-avatares .mc-perfil-opcion-nombre {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mc-perfil-subir {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

.mc-perfil-subir small {
	color: #8a8a90;
	font-size: 0.8rem;
}

.mc-perfil-subir .mc-cuenta-boton {
	min-height: 42px;
	padding: 0 18px;
	font-size: 0.9rem;
}

.mc-perfil-archivo {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.mc-perfil-archivo:focus-visible + label {
	outline: 3px solid var(--accent, #ff9e00);
	outline-offset: 2px;
}

@media (max-width: 768px) {
	.mc-cuenta-acciones .mc-cuenta-boton {
		flex: 1 1 100%;
	}

	.mc-perfil {
		margin: -16px -16px 0; /* .panel-box usa 16px de relleno en celulares */
	}

	.mc-avatar-grande {
		width: 96px;
		height: 96px;
		font-size: 2.2rem;
	}

	.mc-perfil-identidad {
		margin-top: -48px;
	}
}
