/* PALETA DE COLORES
#F7B335  rgba(247,179,53,1)
#3FAB6D  rgba(63,171,109,1)
#0898D7  rgba(8,152,215,1)
#FADDA8  rgba(250, 221, 168, 1)
#A2D1B8  rgba(162, 209, 184, 1)
#88C9E7  rgba(136, 201, 231, 1)
#D98A0D  rgba(217, 138, 13, 1)
#277A4B  rgba(39, 122, 75, 1)
#056B9A  rgba(5, 107, 154, 1)
#F4F5F7  rgba(244, 245, 247, 1)
#a2acb9  rgba(162,172,185,1)
#E64C4C  rgba(230, 76, 76, 1)
*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/********************************
ESTILOS GENERALES DE LA PAGINA
********************************/
.mont {
	font-family: "Montserrat", sans-serif;
}

.roboto {
	font-family: "Roboto", sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	color: #333;
	font-family: "Roboto", sans-serif;
}

html,
body {
	width: 100%;
}

body {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

/**************************
ESTILOS DEL LOGIN
**************************/
.login {
	width: 100%;
	height: 100vh;
	display: flex;
}

.logo {
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1.2rem;
}

.logo img {
	width: 90%;
}

.form {
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.form form {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	padding: 0.5rem;
	border-radius: 0.31rem;
}

.form form label {
	font-size: 1.4rem;
	font-weight: bolder;
	text-align: center;
}

.form form input {
	padding: 0.31rem;
	font-size: 1.2rem;
	text-align: center;
	background-color: rgba(136, 201, 231, 0.2);
	border-radius: 0.31rem;
	border: 1px solid #333;
}

.form form button {
	padding: 0.31rem;
	font-size: 1.2rem;
	font-weight: bolder;
	border-radius: 0.31rem;
	border: 1px solid #333;
	margin-top: 0.625rem;
	background: linear-gradient(120deg, rgba(247, 179, 53, 1) 0%, rgba(63, 171, 109, 1) 17%, rgba(8, 152, 215, 1) 56%);
	color: white;
}

/**************************
ESTILOS DE LA CABECERA
**************************/
header {
	width: 100%;
	display: flex;
	background-color: rgba(8, 152, 215, 1);
}

.cabeceraLogo {
	width: 15%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1%;
}

.cabeceraLogo img {
	width: 60%;
	border-radius: 100%;
}

.cabeceraNombre {
	width: 65%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cabeceraNombre h2 {
	font-size: 3rem;
}

.cabeceraUsuario {
	width: 20%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	gap: 10px;
	padding: 5px;
}

.cabeceraUsuario h4 {
	font-size: 1.5rem;
	text-align: center;
}

.btn-cerrar {
	background-color: #D98A0D;
	border: 0;
	border-radius: 5px;
	padding: 10px;
	font-size: 1.4rem;
	font-weight: bolder;
}

/**********************************
ESTILOS DEL RESTO DE LA PÁGINA
**********************************/
.contenido-bajo-header {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
	min-height: 0;
	overflow: hidden;
}

.fondo {
	background-image: url(../img/logo1.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	position: fixed;
	z-index: -1;
	width: 100%;
	height: 100%;
	opacity: 0.05;
}

/**********************************
ESTILOS DEL MENU NAVEGACIÓN (Base Escritorio)
**********************************/
nav {
	width: 100%;
}

/* El botón hamburguesa está oculto por defecto en PC */
#menuHamburguesa {
	display: none;
}

ul {
	display: flex;
	justify-content: space-around;
	align-items: center;
	list-style: none;
	background-color: #88C9E7;
	box-shadow: 0 0 10px #333;
}

li {
	width: 100%;
	font-size: 1.3rem;
	font-weight: bolder;
	text-align: center;
	text-transform: uppercase;
}

li a {
	display: block;
	width: 100%;
	padding: 15px;
	text-decoration: none;
	color: inherit;
}

li:hover,
.activo {
	background-color: #056B9A;
	color: white;
}

/**************************
ESTILOS DEL MAIN Y TABLAS
**************************/
.principal {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-height: 0;
	overflow-y: auto;
}

main {
	width: 100%;
	flex-grow: 1;
}

main section {
	width: 100%;
	padding: 15px;
}

main .titulo {
	width: 100%;
	height: 10%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 3%;
}

main .titulo h2 {
	font-size: 2.6em;
	border-bottom: 2px solid black;
}

.secciones-error {
	width: 60%;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: center;
	padding: 30px;
	margin: 30px;
	border: 2px dotted red;
}

.tituloError {
	font-size: 3em;
}

.textoError {
	font-size: 2em;
	text-align: center;
}

/* SECCIONES MAIN */
.secciones-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 15%;
}

.acciones {
	width: 100%;
	height: 10%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	gap: 10px;
	margin-bottom: 1%;
}

.filtros-tabla {
	width: 85%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.ancho100 {
	width: 100% !important;
}

.filtros-tabla label {
	font-size: 1.4em;
	font-weight: bolder;
	text-align: center;
}

.filtros-tabla select,
.filtros-tabla input {
	padding: 0.31rem;
	font-size: 1rem;
	background-color: rgba(136, 201, 231, 0.2);
	border-radius: 0.31rem;
	border: 1px solid #333;
}

.acciones button {
	width: 15%;
	margin-bottom: 5px;
	font-size: 1.1em;
	font-weight: bolder;
	background-color: #3FAB6D;
	border: 1px solid white;
	color: white;
	padding: 10px;
	border-radius: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.acciones button i {
	color: white;
	margin-right: 10px;
}

/* TABLA */
.tabla {
	width: 100%;
	overflow: auto;
}

.tabla table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 18px;
	text-align: center;
	text-transform: uppercase;
}

.tabla table thead {
	background-color: #183459;
	color: white;
}

.tabla table thead th {
	padding: 10px;
	color: white;
	border: 1px solid #a2acb9;
}

.tabla table tbody td {
	padding: 5px;
	border: 1px solid #a2acb9;
}

.tabla table tbody tr:nth-child(odd) {
	background-color: white;
}

.tabla table tbody tr:nth-child(even) {
	background-color: rgba(5, 107, 154, 0.5);
}

.tabla table tbody tr:hover {
	background-color: rgba(5, 107, 154, 0.9);
}

.tabla table tbody .botones-tabla {
	display: flex;
	justify-content: space-around;
}

.tabla table tbody .botones-tabla .btn-editar {
	background-color: #277A4B;
	padding: 5px;
	color: white;
	border-radius: 5px;
	border: none;
	cursor: pointer;
}

.tabla table tbody .botones-tabla .btn-borrar {
	background-color: #E64C4C;
	padding: 5px;
	color: white;
	border-radius: 5px;
	border: none;
	cursor: pointer;
}

.tabla table tbody .botones-tabla .btn-datos {
	background-color: #D98A0D;
	padding: 5px;
	color: white;
	border-radius: 5px;
	border: none;
	cursor: pointer;
}

.tabla table tbody .botones-tabla i {
	color: white;
}

.thAcciones {
	width: 20%;
}

.separacion {
	width: 100%;
	border-bottom: 2px dotted #056B9A;
	margin-bottom: 20px;
	margin-top: 20px;
}

/* Checkbox un poco más grande para la tabla de asistencia */
.check-grande {
	transform: scale(1.5);
	margin-left: 5px;
	cursor: pointer;
}

/**************************
ESTILOS MODALES
**************************/
.modal-fondo {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
}

.modal-contenido {
	width: 60%;
	height: 70%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2%;
	background-color: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	overflow-y: scroll;
}

.modal-contenido h3 {
	font-size: 2em;
	margin: 10px;
}

.modal-contenido form {
	display: flex;
	flex-direction: column;
	width: 70%;
	justify-content: center;
	align-items: center;
	gap: 15px;
	padding: 3%;
}

.modal-contenido fieldset {
	width: 100%;
	border: none;
	gap: 15px;
}

.modal-contenido fieldset legend {
	font-size: 1.5em;
	border-top: 2px dotted #056B9A;
	border-bottom: 2px dotted #056B9A;
	text-align: center;
	color: #0898D7;
}

.campo {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.modal-botones {
	display: flex;
	justify-content: space-around;
}

.modal-contenido form label {
	font-size: 1.4em;
	font-weight: bolder;
	text-align: center;
}

.modal-contenido form input,
.modal-contenido form select {
	padding: 0.31rem;
	font-size: 1rem;
	background-color: rgba(136, 201, 231, 0.2);
	border-radius: 0.31rem;
	border: 1px solid #333;
}

.btn-guardar {
	width: 40%;
	padding: 5px;
	margin: 10px 0;
	border-radius: 5px;
	border: 1px solid #333;
	background-color: #277A4B;
	color: white;
	font-weight: bolder;
}

.btn-cancelar {
	width: 40%;
	padding: 5px;
	margin: 10px 0;
	border-radius: 5px;
	border: 1px solid #333;
	background-color: #e64c4c;
	color: white;
	font-weight: bolder;
}

/**************************
ESTILOS FICHA ALUMNO
**************************/
.tituloFicha {
	display: flex;
	align-items: center;
	text-transform: capitalize;
	width: 100%;
}

.boton-alumno {
	margin-right: 20px;
}

.boton-alumno .btn-volver {
	background-color: #a2acb9;
	padding: 10px 15px;
	border-radius: 5px;
	font-size: 1.2rem;
	text-decoration: none;
	display: block;
}

.boton-alumno .btn-volver:hover {
	background-color: #333;
}

.boton-alumno .btn-volver i {
	color: white;
}

.tituloAlumno {
	flex-grow: 1;
	text-align: left;
	font-size: 2.6em;
	border-bottom: 2px solid black;
}

.fichas-alumnos {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 25px;
	margin-top: 20px;
}

.bloque {
	display: flex;
	gap: 25px;
}

.bloque>div {
	flex: 1 1 45%;
	min-width: 300px;
	background-color: #fff;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bloque-notas {
	width: 100%;
	background-color: #fff;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fichas-alumnos h4 {
	font-family: "Montserrat", sans-serif;
	font-size: 1.5rem;
	color: #056B9A;
	border-bottom: 2px solid #88C9E7;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.fichas-alumnos p {
	display: flex;
	justify-content: space-between;
	font-size: 1.1rem;
	padding: 10px 5px;
	border-bottom: 1px dashed #a2acb9;
}

.fichas-alumnos p:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.fichas-alumnos p span:first-child {
	font-weight: bold;
	color: #333;
	margin-right: 15px;
}

.fichas-alumnos p span[id] {
	color: #056B9A;
	font-weight: 500;
	text-align: right;
}

.bloque-notas p {
	border-bottom: none;
	display: block;
}

.bloque-notas p span[id] {
	text-align: left;
	color: #333;
	font-weight: normal;
	font-style: italic;
}

/**************************
ESTILOS MODULO INICIO
**************************/
.secciones-inicio {
	display: flex;
	flex-direction: column;
}
.bloque{
	width: 100%;
	display: flex;
	align-items: center;
	margin-top: 20px;
}
.bloque-inicio {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;

}

#grafico-polar-alumnos,
#grafico-radial-entrenos {
	width: 100%;
	display: flex;
	justify-content: center;
}

/**************************
ESTILOS DEL FOOTER
**************************/
footer {
	width: 100%;
	padding: 10px;
}

footer p {
	font-size: 1.2em;
	font-weight: bolder;
	text-align: center;
}

/******************************************
   MEDIA QUERIES (RESPONSIVE)
******************************************/

/* 1. TABLET / LAPTOP PEQUEÑA (max-width: 1024px) */
@media (max-width: 1024px) {
	.form form {
		width: 90%;
	}

	.modal-contenido {
		width: 80%;
	}

	.cabeceraNombre h2 {
		font-size: 2rem;
	}

	.bloque>div {
		min-width: 250px;
		padding: 15px;
	}
	.secciones-inicio {
		flex-direction: column;
	}

	.bloque-inicio {
		width: 100%;

	}
}

/* 2. MÓVIL Y TABLET VERTICAL (max-width: 768px) */
@media (max-width: 768px) {

	/* Login */
	.login {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}

	.logo,
	.form {
		width: 100%;
		height: 50vh;
	}

	/* Header */
	header {
		flex-direction: column;
		align-items: center;
		padding-bottom: 10px;
	}

	.cabeceraLogo,
	.cabeceraNombre,
	.cabeceraUsuario {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.cabeceraLogo img {
		width: 80px;
	}

	.cabeceraUsuario {
		flex-direction: row;
		gap: 20px;
	}

	/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
	nav {
		display: flex;
		flex-direction: column;
		/* Apilar botón y lista */
		padding: 0;
		background-color: transparent;
	}

	#menuHamburguesa {
		display: block;
		/* Visible */
		width: 100%;
		/* Ancho completo */
		background-color: #88C9E7;
		color: #333;
		border: none;
		padding: 15px;
		font-size: 1.8rem;
		cursor: pointer;
	}

	#menuHamburguesa:hover {
		background-color: #056B9A;
		color: white;
	}

	/* Lista oculta por defecto */
	#menuLista {
		display: none;
		width: 100%;
		flex-direction: column;
		background-color: #88C9E7;
		margin-top: 0;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}

	#menuLista.mostrar {
		display: flex;
		animation: desplegarSuave 0.3s ease-out;
	}

	#menuLista li {
		width: 100%;
		text-align: center;
		border-top: 1px solid rgba(255, 255, 255, 0.4);
	}

	#menuLista li a {
		display: block;
		width: 100%;
		padding: 15px;
		color: #333;
	}

	#menuLista li:hover {
		background-color: #056B9A;
		color: white;
	}

	#menuLista li:hover a {
		color: white;
	}

	/* FICHA ALUMNO: Apilado vertical */
	.bloque {
		flex-direction: column;
	}

	.bloque>div {
		width: 100%;
	}

	/* MODALES: Casi pantalla completa */
	.modal-contenido {
		width: 90%;
		height: 80%;
	}

	/* FILTROS Y ACCIONES */
	.acciones {
		flex-direction: column;
		height: auto;
	}

	.acciones button {
		width: 100%;
	}

	.filtros-tabla {
		width: 100%;
		flex-direction: column;
		gap: 5px;
	}

	.filtros-tabla select {
		width: 100%;
	}
	.secciones-inicio {
		flex-direction: column;
	}

	.bloque-inicio {
		width: 100%;

	}
}

/* 3. MÓVIL PEQUEÑO (max-width: 480px) */
@media (max-width: 480px) {
	.cabeceraNombre h2 {
		font-size: 1.5rem;
	}

	.cabeceraUsuario h4 {
		font-size: 1rem;
	}

	.form form label,
	.modal-contenido form label {
		font-size: 1.1rem;
	}

	.form form input,
	.modal-contenido form input {
		font-size: 1rem;
	}

	.tabla {
		margin-top: 10px;
		border: 1px solid #ccc;
	}

	.tabla table {
		font-size: 0.9rem;
	}

	.tabla table tbody td,
	.tabla table thead th {
		padding: 5px 2px;
	}

	.tabla table tbody .botones-tabla {
		flex-direction: column;
		gap: 5px;
	}

	.tabla table tbody .botones-tabla button {
		padding: 8px;
	}

	.secciones-inicio {
		flex-direction: column;
	}

	.bloque-inicio {
		width: 100%;

	}
}

/* 4. CORRECCIÓN GIRO PANTALLA (min-width: 769px) */
/* Fuerza el menú horizontal si la pantalla es grande */
@media (min-width: 769px) {
	#menuHamburguesa {
		display: none !important;
	}

	#menuLista {
		display: flex !important;
		flex-direction: row !important;
		background-color: #88C9E7;
		box-shadow: 0 0 10px #333;
		margin-top: 0 !important;
	}

	#menuLista li {
		width: auto !important;
		border: none !important;
	}
}

/* ANIMACIÓN */
@keyframes desplegarSuave {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}