/* ===== ESTILOS ESPECÍFICOS PARA AJEDREZ ===== */

.ajedrez-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== SECCIÓN DE INTRODUCCIÓN ===== */
.intro-section {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	color: white;
	border-radius: 20px;
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.intro-content {
	display: flex;
	align-items: center;
	gap: 40px;
}

.intro-text {
	flex: 1;
}

.intro-text h3 {
	font-size: 2.2em;
	margin-bottom: 20px;
	color: #f1c40f;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-description {
	font-size: 1.2em;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.intro-icon {
	flex: 0 0 200px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.chess-pieces {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	backdrop-filter: blur(10px);
}

.piece {
	font-size: 2.5em;
	text-align: center;
	transition: transform 0.3s ease;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.piece:hover {
	transform: scale(1.2) rotate(10deg);
}

.piece.king {
	color: #f1c40f;
}

.piece.queen {
	color: #e74c3c;
}

.piece.rook {
	color: #3498db;
}

.piece.bishop {
	color: #9b59b6;
}

.piece.knight {
	color: #e67e22;
}

.piece.pawn {
	color: #95a5a6;
}

/* ===== FILTRO DE BÚSQUEDA ===== */
.filter-section {
	margin-bottom: 30px;
}

.search-box {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}

.search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2em;
	color: #7f8c8d;
	z-index: 2;
}

#filtroJugadores {
	width: 100%;
	padding: 15px 15px 15px 50px;
	border: 2px solid #bdc3c7;
	border-radius: 30px;
	font-size: 1.1em;
	background: white;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	outline: none;
}

#filtroJugadores:focus {
	border-color: #2c3e50;
	box-shadow: 0 5px 20px rgba(44, 62, 80, 0.2);
	transform: translateY(-2px);
}

/* ===== SECCIÓN DE JUGADORES ===== */
.jugadores-section {
	margin-bottom: 50px;
}

.section-title {
	text-align: center;
	font-size: 2em;
	color: #2c3e50;
	margin-bottom: 30px;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 3px;
	background: linear-gradient(90deg, #f1c40f 0%, #e67e22 100%);
	border-radius: 2px;
}

/* ===== LOADING ===== */
.loading-chess {
	text-align: center;
	padding: 60px 20px;
}

.chess-loader {
	font-size: 4em;
	animation: chessFloat 2s ease-in-out infinite;
	margin-bottom: 20px;
}

@keyframes chessFloat {

	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}

	25% {
		transform: translateY(-10px) rotate(5deg);
	}

	50% {
		transform: translateY(-15px) rotate(0deg);
	}

	75% {
		transform: translateY(-5px) rotate(-5deg);
	}
}

/* ===== GRID DE JUGADORES ===== */
.jugadores-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.colegio-card {
	background: white;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(30px);
	border-left: 5px solid #2c3e50;
}

.colegio-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.colegio-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.colegio-header {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	color: white;
	padding: 20px;
	position: relative;
}

.colegio-nombre {
	font-size: 1.3em;
	font-weight: 700;
	margin-bottom: 5px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jugadores-count {
	font-size: 0.9em;
	opacity: 0.9;
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
}

.jugadores-lista {
	padding: 20px;
	max-height: 400px;
	overflow-y: auto;
}

.jugador-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #ecf0f1;
	opacity: 0;
	transform: translateX(-20px);
	animation: slideIn 0.5s ease forwards;
}

.jugador-item:last-child {
	border-bottom: none;
}

@keyframes slideIn {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.jugador-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jugador-nombre {
	font-weight: 600;
	color: #2c3e50;
	font-size: 1em;
}

.jugador-grado {
	font-size: 0.85em;
	color: #7f8c8d;
	font-weight: 500;
	background: #ecf0f1;
	padding: 2px 8px;
	border-radius: 10px;
	display: inline-block;
	width: fit-content;
}

.jugador-icon {
	font-size: 1.5em;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.jugador-item:hover .jugador-icon {
	opacity: 1;
	transform: scale(1.2);
}

/* ===== ESTADÍSTICAS ===== */
.estadisticas-ajedrez {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin: 40px 0;
	padding: 30px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 20px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
	text-align: center;
	padding: 20px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	min-width: 120px;
}

.stat-item:hover {
	transform: translateY(-5px);
}

.stat-icon {
	font-size: 2.5em;
	margin-bottom: 10px;
	display: block;
}

.stat-number {
	display: block;
	font-size: 2.2em;
	font-weight: 900;
	color: #2c3e50;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 0.9em;
	color: #7f8c8d;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== INFORMACIÓN ADICIONAL ===== */
.info-adicional {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.info-card {
	background: white;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	gap: 20px;
	align-items: center;
	transition: transform 0.3s ease;
}

.info-card:hover {
	transform: translateY(-3px);
}

.info-icon {
	font-size: 3em;
	flex-shrink: 0;
}

.info-content h4 {
	color: #2c3e50;
	margin-bottom: 10px;
	font-size: 1.2em;
}

.info-content p {
	color: #7f8c8d;
	line-height: 1.5;
	font-size: 0.95em;
}

/* ===== ACCIONES ===== */
.section-actions {
	text-align: center;
	margin: 40px 0;
}

.home-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	color: white;
	text-decoration: none;
	padding: 15px 30px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 1.1em;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.home-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
	background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.home-link-icon {
	font-size: 1.2em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.ajedrez-container {
		padding: 0 15px;
	}

	.intro-content {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.intro-text h3 {
		font-size: 1.8em;
	}

	.intro-description {
		font-size: 1.1em;
	}

	.intro-icon {
		flex: none;
	}

	.chess-pieces {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 15px;
	}

	.piece {
		font-size: 2em;
	}

	.jugadores-grid {
		grid-template-columns: 1fr;
	}

	.estadisticas-ajedrez {
		flex-direction: column;
		gap: 20px;
	}

	.stat-item {
		min-width: auto;
	}

	.info-adicional {
		grid-template-columns: 1fr;
	}

	.info-card {
		flex-direction: column;
		text-align: center;
	}

	.section-title {
		font-size: 1.8em;
	}

	.page-title {
		font-size: 2em;
	}
}

@media (max-width: 480px) {
	.intro-section {
		padding: 25px 20px;
	}

	.intro-text h3 {
		font-size: 1.6em;
	}

	.section-title {
		font-size: 1.6em;
	}

	.colegio-header {
		padding: 15px;
	}

	.colegio-nombre {
		font-size: 1.1em;
	}

	.jugadores-lista {
		padding: 15px;
	}

	.jugador-nombre {
		font-size: 0.95em;
	}

	.jugador-grado {
		font-size: 0.8em;
	}

	.home-link {
		padding: 12px 25px;
		font-size: 1em;
	}
}

/* ===== ANIMACIONES ESPECÍFICAS ===== */
@keyframes chessPieceFloat {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

.chess-pieces .piece:nth-child(1) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 0s;
}

.chess-pieces .piece:nth-child(2) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 0.5s;
}

.chess-pieces .piece:nth-child(3) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 1s;
}

.chess-pieces .piece:nth-child(4) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 1.5s;
}

.chess-pieces .piece:nth-child(5) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 2s;
}

.chess-pieces .piece:nth-child(6) {
	animation: chessPieceFloat 3s ease-in-out infinite;
	animation-delay: 2.5s;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
.jugadores-lista::-webkit-scrollbar {
	width: 6px;
}

.jugadores-lista::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.jugadores-lista::-webkit-scrollbar-thumb {
	background: #bdc3c7;
	border-radius: 10px;
}

.jugadores-lista::-webkit-scrollbar-thumb:hover {
	background: #95a5a6;
}