/* ============================================================
   Portal del asistente (login y panel)
   Extiende el sistema visual de registro.css (mismos tokens).
   Usado por frm_ini.php y panel.php
   ============================================================ */

/* ---------- Contenedores ---------- */
.page-wrap--angosto {
	max-width: 480px;
}

.page-wrap--medio {
	max-width: 720px;
}

/* ---------- Encabezado de acceso ---------- */
.acceso-header {
	padding: clamp(22px, 5vw, 34px) clamp(20px, 5vw, 40px) 0;
	text-align: center;
}

.acceso-header__icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 14px;
	border-radius: 50%;
	font-size: 24px;
	color: #fff;
	background: linear-gradient(135deg, var(--verde-cota), var(--verde-cota-suave));
	box-shadow: 0 12px 26px -12px rgba(47, 143, 91, 0.75);
}

.acceso-header__titulo {
	font-family: var(--fuente-display);
	font-weight: 800;
	font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
	line-height: 1.2;
	margin: 0 0 8px;
	background: linear-gradient(90deg, var(--verde-cota), var(--violeta));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.acceso-header__texto {
	color: var(--texto-suave);
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.5;
}

/* ---------- Pista de ayuda ---------- */
.pista {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px clamp(20px, 5vw, 40px) 0;
	padding: 12px 14px;
	background: rgba(74, 144, 196, 0.07);
	border: 1px dashed rgba(74, 144, 196, 0.32);
	border-radius: var(--radio-chico);
	color: var(--texto-suave);
	font-size: 12.5px;
	line-height: 1.5;
}

.pista i {
	color: var(--azul-info);
	margin-top: 2px;
	flex-shrink: 0;
}

/* ---------- Campo de contrasena con ojo ---------- */
.campo-clave .form-control {
	padding-right: 46px;
}

.ojo {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--texto-suave);
	font-size: 15px;
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.ojo:hover {
	color: var(--verde-cota);
	background-color: rgba(76, 175, 125, 0.12);
}

/* ---------- Saludo del panel ---------- */
.saludo {
	padding: clamp(22px, 5vw, 34px) clamp(20px, 5vw, 40px) 0;
	text-align: center;
}

.saludo__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	margin-bottom: 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--verde-cota);
	background: rgba(76, 175, 125, 0.12);
}

.saludo__nombre {
	font-family: var(--fuente-display);
	font-weight: 800;
	font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.7rem);
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--texto);
}

.saludo__texto {
	color: var(--texto-suave);
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.5;
}

/* ---------- Tarjetas de accion ---------- */
.acciones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	padding: clamp(20px, 5vw, 34px) clamp(20px, 5vw, 40px) 8px;
}

.accion {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 24px 20px 20px;
	background: var(--surface-solid);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	color: var(--texto);
	text-decoration: none;
	box-shadow: var(--sombra-suave);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.accion::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--acento-a), var(--acento-b));
}

.accion:hover,
.accion:focus {
	transform: translateY(-4px);
	border-color: transparent;
	color: var(--texto);
	text-decoration: none;
	box-shadow: var(--sombra-media);
}

.accion__icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	font-size: 22px;
	color: #fff;
	background: linear-gradient(135deg, var(--acento-a), var(--acento-b));
	box-shadow: 0 10px 22px -12px var(--acento-b);
}

.accion__titulo {
	font-family: var(--fuente-display);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0;
}

.accion__texto {
	color: var(--texto-suave);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.accion__ir {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--acento-b);
}

.accion__ir i {
	transition: transform 0.2s ease;
}

.accion:hover .accion__ir i {
	transform: translateX(3px);
}

.accion--certificado {
	--acento-a: #4CAF7D;
	--acento-b: #2f8f5b;
}

.accion--memorias {
	--acento-a: #8b7cd8;
	--acento-b: #6a5cc0;
}

/* ---------- Pie del panel ---------- */
.panel-pie {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 18px clamp(20px, 5vw, 40px) clamp(24px, 5vw, 36px);
}

.btn-salir {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 26px;
	border: 1.5px solid rgba(255, 138, 115, 0.55);
	border-radius: 999px;
	background: transparent;
	color: #e2664c;
	font-family: var(--fuente-display);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-salir:hover {
	background-color: var(--coral);
	border-color: var(--coral);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.panel-nota {
	text-align: center;
	font-size: 12.5px;
	color: var(--texto-suave);
	font-style: italic;
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
	.acciones {
		grid-template-columns: 1fr;
		padding-left: 16px;
		padding-right: 16px;
	}

	.accion {
		padding: 20px 16px 16px;
	}

	.pista {
		margin-left: 16px;
		margin-right: 16px;
	}
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {

	.accion,
	.btn-salir,
	.accion__ir i {
		transition: none !important;
	}
}
