/*
 * Accesibilidad: foco visible, contraste, objetivos táctiles y movimiento reducido.
 * Se carga después de style.bundle.css y custom.css.
 */

/* Foco visible al navegar con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #a42429;
	outline-offset: 2px;
}
#kt_aside a:focus-visible,
#kt_aside [role="button"]:focus-visible,
#kt_aside button:focus-visible,
#kt_header a:focus-visible,
#kt_header [role="button"]:focus-visible,
.bg-dark a:focus-visible,
.bg-dark button:focus-visible {
	outline-color: #ffc700;
}

/* Enlace "Saltar al contenido": aparece al pulsar Tab */
.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 3000;
	padding: 0.75rem 1rem;
	background: #ffffff;
	color: #a42429;
	font-weight: 700;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Contraste: grises más oscuros sobre fondo blanco... */
.text-muted,
.text-gray-400,
.text-gray-500,
.text-gray-600 {
	color: #5e6278 !important;
}
.card-body .text-gray-400,
.table thead th.text-gray-400 {
	color: #5e6278 !important;
}
/* ...y más claros sobre la cabecera y el menú oscuros */
#kt_header .text-muted,
#kt_header .text-gray-600,
#kt_header small,
#kt_header .breadcrumb-item,
#kt_header .breadcrumb-item a {
	color: #c7c9d9 !important;
}
#kt_header .breadcrumb .breadcrumb-item::before {
	background-color: #c7c9d9;
}
/* Texto blanco sobre el verde claro de las tarjetas: se pasa a texto oscuro */
.card.bg-success .card-body,
.card.bg-success .card-body * {
	color: #14213d !important;
}

/* Botones de solo icono con área táctil mínima de 44 px en pantallas táctiles */
@media (pointer: coarse) {
	#kt_aside_toggle,
	.btn-icon,
	.menu-link[role="button"] {
		min-width: 44px;
		min-height: 44px;
	}
	.table .form-check-input {
		width: 1.5rem;
		height: 1.5rem;
	}
}

/* Respeta a quien pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Botón "ver contraseña" de las pantallas de acceso */
[data-kt-password-meter-control="visibility"] {
	cursor: pointer;
}
[data-kt-password-meter-control="visibility"]:focus-visible {
	outline: 3px solid #a42429;
	outline-offset: 0;
}
input[type="password"]::-ms-reveal {
	display: none;
}

/* Pie de las pantallas de acceso: enlaces legibles sobre la foto de fondo */
.footer-legal a,
.footer-legal {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Avisos (toastr): sin transparencia para que el texto se lea bien */
#toastr-container > div,
#toastr-container > div:hover {
	opacity: 1 !important;
}
#primeravez {
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

/* Etiquetas y botones claros de las tablas: texto con contraste suficiente */
.badge-light,
.btn-light,
.btn.btn-light {
	color: #5e6278 !important;
}
.badge-light-danger {
	color: #c4143f !important;
}
.badge-light-success {
	color: #0b7a47 !important;
}
.badge-light-warning {
	color: #8a6200 !important;
}
.badge-light-primary,
.badge-light-info {
	color: #0a5fb4 !important;
}

/* Paginación de las tablas: el botón desactivado también debe leerse */
.page-item.disabled .page-link {
	color: #6b6f82;
}

/* Calendario: botones de vista y de "hoy" con contraste suficiente */
.fc .fc-button,
.fc .fc-button-primary:not(:disabled):not(.fc-button-active) {
	color: #3f4254 !important;
}
.fc .fc-button:disabled {
	color: #6b6f82 !important;
	opacity: 1 !important;
}

/* Calendario: números de día y cabeceras legibles, también los de otros meses */
.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
	color: #3f4254;
}
.fc .fc-day-other .fc-daygrid-day-top {
	opacity: 1 !important;
}
.fc .fc-day-other .fc-daygrid-day-number {
	color: #6b6f82;
}

/* Botón verde: fondo algo más oscuro para que el texto blanco se lea */
.btn-success,
.btn.btn-success {
	background-color: #17874f !important;
	border-color: #17874f !important;
	color: #ffffff !important;
}
.btn-success:hover,
.btn.btn-success:hover,
.btn-success:focus,
.btn.btn-success:focus {
	background-color: #11693d !important;
	border-color: #11693d !important;
}
