﻿:root {
	--bs-secondary-color: rgb(145 145 145 / 75%);
	--brand-teal: #00FFCC;
	--brand-blue: #2563EB;
	--bg-main: #0a0a0a;
	--bg-card: #151515;
	--border-soft: rgba(255, 255, 255, 0.08);
	--text-muted: #6c757d;
	--bs-body-bg: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

/* 1. CONFIGURACIÓN GLOBAL */
body {
	background-color: var(--bg-main);
	color: #ffffff;
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* 2. NAVBAR Y NAVEGACIÓN */
.navbar-escenario {
	background-color: rgba(10, 10, 10, 0.95) !important;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-soft);
}

.brand-text {
	letter-spacing: 2px;
	font-weight: 800;
	color: var(--brand-teal) !important;
}

/* 3. COMPONENTES DE CABECERA (DASHBOARD) */
.cabecera-setlist {
	background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	padding: 1.5rem;
}

/* 4. TARJETAS Y CONTENEDORES */
.card-escenario {
	background-color: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	overflow: hidden;
}

/* 5. TABLAS MODERNAS */
.tabla-moderna {
	margin-bottom: 0;
}

	.tabla-moderna th {
		font-size: 0.7rem;
		text-transform: uppercase;
		letter-spacing: 1.5px;
		color: var(--text-muted);
		border-bottom: 2px solid #2d2d2d;
		padding: 1.2rem 1rem !important;
	}

	.tabla-moderna td {
		padding: 1.2rem 1rem !important;
		vertical-align: middle;
		border-bottom: 1px solid rgba(255,255,255,0.03);
	}

	.tabla-moderna tbody tr:hover {
		background-color: rgba(255, 255, 255, 0.02) !important;
	}

/* 6. MODALES PREMIUM */
.modal-content-premium {
	background-color: #121212 !important;
	border: 1px solid #333 !important;
	border-radius: 16px !important;
	box-shadow: 0 25px 50px rgba(0,0,0,1);
}

.modal-header-premium {
	border-bottom: 1px solid var(--border-soft);
	padding: 1.5rem;
}

/* 7. REPRODUCTOR DE VIDEO MODERNO (Refactorizado) */
.video-moderno-container {
	position: relative;
	background-color: #000;
	border-radius: 12px;
	overflow: hidden;
}

.controles-personalizados {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(15, 15, 15, 0.85);
	backdrop-filter: blur(8px);
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.3s;
}

.video-moderno-container:hover .controles-personalizados {
	opacity: 1;
}

/* Barra de progreso */
.progreso-video {
	height: 4px;
	background: rgba(255,255,255,0.1);
	border-radius: 2px;
	cursor: pointer;
	margin-bottom: 0.8rem;
}

.progreso-video-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue));
	width: 0%;
}

/* 8. UTILIDADES DE BOTONES */
.btn-premium {
	border-radius: 8px;
	padding: 0.6rem 1.2rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

	.btn-premium:active {
		transform: scale(0.96);
	}

.text-secondary {
	--bs-text-opacity: 1;
	color: var(--bs-secondary-color);
}


/* Contenedor principal con esquinas redondeadas y sombra profunda */
.video-moderno-container {
	position: relative;
	background-color: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.8);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

#reproductorLocal {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Capa superior de controles con efecto Esmerilado (Glassmorphism) */
.controles-personalizados {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: backdrop-filter: blur(12px) saturate(180%);
	-webkit-backdrop-filter: blur(12px) saturate(180%);
	background-color: rgba(15, 15, 15, 0.75);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 15px 20px;
	opacity: 0; /* Ocultos por defecto */
	transition: opacity 0.3s ease-in-out;
	z-index: 10;
}

/* Los controles aparecen suavemente al pasar el mouse o tocar la pantalla */
.video-moderno-container:hover .controles-personalizados,
.video-moderno-container:focus-within .controles-personalizados {
	opacity: 1;
}

/* Barra de progreso / Buffer estilizada y delgada */
.progreso-wrapper {
	position: relative;
	width: 100%;
	height: 6px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	cursor: pointer;
	margin-bottom: 12px;
	transition: height 0.1s ease;
}

	.progreso-wrapper:hover {
		height: 8px;
	}

.barra-buffer {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.25);
	border-radius: 3px;
	width: 0%;
	transition: width 0.2s ease;
}

.barra-tiempo-actual {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(90deg, #00FFCC, #00BCFF);
	border-radius: 3px;
	width: 0%;
	z-index: 2;
}

/* Botones minimalistas de control */
.btn-control-video {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	padding: 5px 10px;
	transition: color 0.2s, transform 0.1s;
	cursor: pointer;
}

	.btn-control-video:hover {
		color: #00FFCC;
		transform: scale(1.1);
	}

.time-display {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

/* =========================================================
   CONTENEDOR DE CANCIONES (SORTABLE ESPECÍFICO)
   ========================================================= */
.cancion-item {
	background-color: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 10px;
	padding: 1rem 1.2rem;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: transform 0.2s, box-shadow 0.2s;
}

	.cancion-item:hover {
		border-color: rgba(255, 255, 255, 0.15);
		box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	}

/* Manejador táctil para arrastrar temas */
.indicador-orden {
	color: var(--text-muted);
	font-size: 1.2rem;
	cursor: grab;
	padding-right: 1.2rem;
	display: flex;
	align-items: center;
}

	.indicador-orden:active {
		cursor: grabbing;
	}

/* Buscador gigante Premium */
.buscador-modal-premium {
	background-color: #000 !important;
	border: 1px solid var(--border-soft) !important;
	color: #fff !important;
	padding: 1.2rem 1rem !important;
	border-radius: 8px !important;
	font-size: 1.1rem !important;
}

	.buscador-modal-premium:focus {
		border-color: var(--brand-teal) !important;
		box-shadow: 0 0 0 0.25rem rgba(0, 255, 204, 0.15) !important;
	}

/* =========================================================
   VISTA: CATÁLOGO GLOBAL DE CANCIONES
   ========================================================= */

/* Caja del buscador principal */
.buscador-grande {
	background-color: rgba(0, 0, 0, 0.4) !important;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	padding: 1.1rem 1.2rem !important;
	border-radius: 10px !important;
	font-size: 1.1rem !important;
	transition: all 0.2s ease;
}

	.buscador-grande:focus {
		border-color: #06B6D4 !important; /* Tono cian del botón agregar */
		box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.15) !important;
		background-color: rgba(0, 0, 0, 0.6) !important;
	}

/* Filas del catálogo general */
.fila-cancion-global {
	background: rgba(30, 30, 30, 0.5) !important;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	border-radius: 12px;
	padding: 1rem 1.5rem;
	margin-bottom: 0.75rem;
	transition: all 0.2s ease;
}

	.fila-cancion-global:hover {
		background: rgba(45, 45, 45, 0.7) !important;
		border-color: rgba(6, 182, 212, 0.3) !important; /* Destello sutil al pasar el mouse */
		transform: translateX(3px); /* Efecto de desplazamiento elegante */
	}

/* Altura máxima optimizada para scroll del catálogo */
.scroll-catalogo {
	max-height: 70vh;
	overflow-y: auto;
	padding-right: 5px;
}

/* =========================================================
   VISTA: VISOR DE ESCENARIO Y LETRAS
   ========================================================= */

/* Cabecera del Visor */
.cabecera-visor {
	background: rgba(20, 20, 20, 0.7) !important;
	backdrop-filter: blur(10px);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* El contenedor principal de la letra */
.letra-container {
	background: rgba(10, 10, 10, 0.5) !important;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	padding: 2.5rem 1.5rem;
	color: #f8f9fa;
	font-size: 1.6rem; /* Tamaño ideal para lectura a distancia */
	line-height: 1.8;
	white-space: pre-line; /* Mantiene saltos de línea de base de datos */
	word-break: break-word;
}

/* Alertas de recordatorio táctiles */
.recordatorio-escenario {
	background-color: #ffc107 !important;
	color: #000 !important;
	border: none !important;
	border-radius: 8px;
	font-size: 1.2rem;
	box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

/* Unificación de botones de acción rápida en escenario */
.btn-escenario-accion {
	padding: 0.75rem 1rem;
	font-weight: bold;
	font-size: 1rem;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

/* Estilos de controles personalizados para contenedor de video */
.video-moderno-container {
	position: relative;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
}

	.video-moderno-container video {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

/* =========================================================
   MODAL LETRA FULLSCREEN (MODO EN VIVO)
   ========================================================= */

/* Fuerza al modal a ser un panel de pantalla completa total */
.modal-fullscreen-escenario {
	max-width: 100vw !important;
	width: 100vw !important;
	height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
}

	.modal-fullscreen-escenario .modal-content {
		height: 100vh !important;
		border-radius: 0 !important;
		border: none !important;
		background: #0a0a0a !important; /* Fondo ultra oscuro para resaltar el texto */
		display: flex;
		flex-direction: column;
	}

/* Barra de control superior fija */
.barra-control-scroll {
	background: rgba(20, 20, 20, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 1.5rem;
	z-index: 10;
}

/* Zona de lectura con scroll independiente */
.cuerpo-letra-fullscreen {
	flex-grow: 1;
	overflow-y: auto;
	padding: 3rem 2rem 6rem 2rem; /* Margen extra abajo para no tapar los últimos versos */
}

/* Letra en tamaño gigante para lectura a distancia */
.letra-gigante {
	font-size: 2.2rem; /* Incrementado para máxima visibilidad en atriles */
	line-height: 1.8;
	color: #f8f9fa;
	white-space: pre-line;
	word-break: break-word;
}

/* Ajuste sutil para pantallas pequeñas/móviles */
@media (max-width: 768px) {
	.letra-gigante {
		font-size: 1.6rem;
		line-height: 1.6;
	}
}

/* =========================================================
   MODAL VIDEO FULLSCREEN (MODO PREPARACIÓN)
   ========================================================= */

/* Contenedor negro absoluto para el reproductor de video */
.cuerpo-video-fullscreen {
	flex-grow: 1;
	background: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	position: relative;
}

	/* Fuerza al contenedor del reproductor a expandirse sin romper la relación de aspecto */
	.cuerpo-video-fullscreen .video-moderno-container {
		width: 100%;
		max-width: 1200px; /* Tamaño máximo óptimo para no perder resolución */
		height: 100%;
		max-height: calc(100vh - 120px); /* Resta el espacio de la barra superior e inferior */
		border: 1px solid rgba(255, 255, 255, 0.05);
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
	}

/* =========================================================
   VISTA: FORMULARIOS Y EDICIÓN DE CANCIONES
   ========================================================= */

/* Contenedor principal del formulario */
.tarjeta-formulario {
	background: rgba(20, 20, 20, 0.6) !important;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 16px;
}

/* Inputs con look de consola o software de audio moderno */
.form-control-escenario-dark {
	background-color: rgba(0, 0, 0, 0.4) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	transition: all 0.2s ease;
}

	.form-control-escenario-dark:focus {
		border-color: #06B6D4 !important; /* Cian de enfoque */
		box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.15) !important;
		background-color: rgba(0, 0, 0, 0.6) !important;
	}

/* Área de edición de letra */
.textarea-letra-premium {
	font-family: 'Fira Code', 'Courier New', Courier, monospace; /* Fuente mono para alinear acordes con la letra */
	font-size: 1.1rem;
	line-height: 1.6;
	background-color: rgba(10, 10, 10, 0.6) !important;
	resize: vertical;
}

/* Estilo para las etiquetas */
.label-premium {
	color: #a3a3a3;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* =========================================================
   VISTA: CREACIÓN DE LISTAS / SETLISTS
   ========================================================= */

/* Selector de color nativo adaptado al diseño oscuro */
.input-color-escenario {
	width: 70px !important;
	height: 48px !important;
	padding: 2px !important;
	background-color: rgba(0, 0, 0, 0.4) !important;
	border: 2px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

	.input-color-escenario:hover {
		transform: scale(1.05);
		border-color: #06B6D4 !important;
	}

/* Tipografía de ayuda sutil */
.texto-ayuda-formulario {
	font-size: 0.9rem;
	color: #8a8a8a;
	line-height: 1.4;
}