/**
 * style.css – Estilos globales para la Landing Page Administrativa EBV 2026
 * Autor: Equipo de Medios
 * Descripción: Hoja de estilos principal, responsiva y lista para producción.
 * Nota: Todos los inputs de texto tienen text-transform: uppercase por requerimiento.
 */

/* Para la tabla de transferencias con scroll */
#tbody-transferencias td {
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}

#tbody-transferencias tr:hover {
	background: #f5f5f5;
}
/* ========== 1. RESET Y BASE ========== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f0f2f5;
	color: #1e2a3a;
	line-height: 1.6;
	padding: 0;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ========== 2. CONTENEDOR PRINCIPAL ========== */
#app {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 20px 10px;
	flex: 1;
	width: 100%;
}

/* ========== 3. HEADER Y NAVEGACIÓN ========== */
header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
	padding: 15px 25px;
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	margin-bottom: 25px;
}

	header .logo h1 {
		font-size: 28px;
		font-weight: 800;
		letter-spacing: 1px;
		margin: 0;
		color: #f1c40f;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	}

	header .logo span {
		font-size: 14px;
		opacity: 0.9;
		display: block;
		font-weight: 300;
		letter-spacing: 1.5px;
	}

/* Navegación */
nav ul {
	display: flex;
	list-style: none;
	gap: 5px;
	flex-wrap: wrap;
	margin: 0;
}

	nav ul li {
		padding: 10px 20px;
		cursor: pointer;
		border-radius: 8px;
		font-weight: 600;
		font-size: 15px;
		transition: all 0.3s ease;
		color: rgba(255, 255, 255, 0.8);
		letter-spacing: 0.5px;
	}

		nav ul li:hover {
			background: rgba(255, 255, 255, 0.15);
			color: #fff;
			transform: translateY(-2px);
		}

		nav ul li.active {
			background: #f1c40f;
			color: #1a2a3a;
			box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
		}

/* ========== 4. MAIN CONTENT ========== */
#main-content {
	background: #ffffff;
	border-radius: 16px;
	padding: 25px 30px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
	min-height: 500px;
	transition: all 0.3s;
}

/* ========== 5. FOOTER ========== */
footer {
	text-align: center;
	padding: 20px 10px 10px;
	color: #7f8c8d;
	font-size: 13px;
	border-top: 1px solid #e0e4e8;
	margin-top: 30px;
	background: transparent;
}

	footer p {
		margin: 0;
	}

/* ========== 6. MODULOS (se muestran/ocultan con JS) ========== */
.module {
	display: none;
	animation: fadeIn 0.4s ease;
}

	.module.active {
		display: block;
	}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== 7. FORMULARIOS ========== */
/* Aplicar mayúsculas a todos los inputs de texto (requerimiento) */
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select:not([multiple]) {
	text-transform: uppercase;
}

/* Estilos generales de formulario */
fieldset {
	border: 1px solid #e0e4e8;
	border-radius: 10px;
	padding: 20px 25px;
	margin-bottom: 25px;
	background: #fafbfc;
}

legend {
	font-weight: 700;
	font-size: 18px;
	color: #2c3e50;
	padding: 0 12px;
	background: #fafbfc;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 15px;
}

.form-group {
	flex: 1 1 200px;
	min-width: 180px;
}

	.form-group label {
		display: block;
		font-weight: 600;
		font-size: 13px;
		color: #2c3e50;
		margin-bottom: 4px;
		letter-spacing: 0.3px;
	}

	.form-group input,
	.form-group select,
	.form-group textarea {
		width: 100%;
		padding: 10px 12px;
		border: 1px solid #d0d7dd;
		border-radius: 8px;
		font-size: 14px;
		transition: border 0.2s, box-shadow 0.2s;
		background: #fff;
		font-family: inherit;
	}

		.form-group input:focus,
		.form-group select:focus,
		.form-group textarea:focus {
			border-color: #3498db;
			box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
			outline: none;
		}

	.form-group textarea {
		resize: vertical;
		min-height: 70px;
	}

	.form-group input[type="checkbox"] {
		width: auto;
		margin-top: 8px;
		transform: scale(1.2);
		margin-right: 8px;
	}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 20px;
	justify-content: flex-start;
	align-items: center;
}

/* ========== 8. BOTONES ========== */
.btn {
	display: inline-block;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	letter-spacing: 0.5px;
	background: #e0e4e8;
	color: #1e2a3a;
	text-transform: uppercase;
}

	.btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	}

	.btn:active {
		transform: translateY(0);
	}

.btn-sm {
	padding: 6px 14px;
	font-size: 12px;
	border-radius: 6px;
}

.btn-primary {
	background: #3498db;
	color: #fff;
}

	.btn-primary:hover {
		background: #2980b9;
	}

.btn-success {
	background: #2ecc71;
	color: #fff;
}

	.btn-success:hover {
		background: #27ae60;
	}

.btn-danger {
	background: #e74c3c;
	color: #fff;
}

	.btn-danger:hover {
		background: #c0392b;
	}

.btn-warning {
	background: #f39c12;
	color: #fff;
}

	.btn-warning:hover {
		background: #d68910;
	}

.btn-info {
	background: #1abc9c;
	color: #fff;
}

	.btn-info:hover {
		background: #16a085;
	}

.btn-dark {
	background: #2c3e50;
	color: #fff;
}

	.btn-dark:hover {
		background: #1a252f;
	}

/* ========== 9. TABLAS ========== */
.table-responsive {
	overflow-x: auto;
	margin: 15px 0;
	border-radius: 10px;
	border: 1px solid #e8ecf0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	min-width: 700px;
}

	table thead {
		background: #f8f9fa;
		border-bottom: 2px solid #dee2e6;
	}

	table th {
		padding: 12px 15px;
		text-align: left;
		font-weight: 700;
		color: #2c3e50;
		white-space: nowrap;
		position: sticky;
		top: 0;
		background: #f8f9fa;
		z-index: 5;
	}

	table td {
		padding: 10px 15px;
		border-bottom: 1px solid #eef2f6;
		vertical-align: middle;
	}

	table tbody tr:hover {
		background: #f8faff;
	}

	table .estado-completo {
		color: #27ae60;
		font-weight: 600;
	}

	table .estado-pendiente {
		color: #e67e22;
		font-weight: 600;
	}

	/* Botones dentro de tablas */
	table .btn {
		padding: 4px 10px;
		font-size: 11px;
		margin: 0 3px;
	}

/* ========== 10. TOOLBAR (buscador, filtros, etc.) ========== */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	background: #f8f9fa;
	padding: 12px 18px;
	border-radius: 10px;
	border: 1px solid #e0e4e8;
}

	.toolbar input[type="text"],
	.toolbar input[type="search"] {
		flex: 1 1 250px;
		padding: 9px 14px;
		border: 1px solid #d0d7dd;
		border-radius: 8px;
		font-size: 14px;
		background: #fff;
		text-transform: uppercase;
	}

	.toolbar input:focus {
		border-color: #3498db;
		box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
		outline: none;
	}

	.toolbar .filtros-rapidos {
		display: flex;
		gap: 6px;
		flex-wrap: wrap;
	}

		.toolbar .filtros-rapidos .btn {
			background: #e9ecef;
			color: #2c3e50;
			padding: 6px 16px;
			font-size: 13px;
		}

			.toolbar .filtros-rapidos .btn.active {
				background: #2c3e50;
				color: #fff;
			}

	.toolbar .btn {
		padding: 8px 18px;
	}

/* Dropdown de columnas */
.dropdown-columnas {
	position: relative;
	display: inline-block;
}

	.dropdown-columnas .dropdown-content {
		display: none;
		position: absolute;
		background: #fff;
		min-width: 180px;
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
		border-radius: 10px;
		padding: 12px 16px;
		z-index: 10;
		border: 1px solid #e0e4e8;
		top: 110%;
		left: 0;
	}

	.dropdown-columnas:hover .dropdown-content {
		display: block;
	}

	.dropdown-columnas .dropdown-content label {
		display: block;
		padding: 4px 0;
		font-size: 14px;
		cursor: pointer;
	}

		.dropdown-columnas .dropdown-content label input {
			margin-right: 8px;
		}

/* ========== 11. TARJETAS (Estadísticas) ========== */
.tarjetas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
	margin-bottom: 30px;
}

.tarjeta {
	background: #ffffff;
	border-radius: 14px;
	padding: 20px 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	border: 1px solid #eef2f6;
	transition: 0.3s;
	text-align: center;
}

	.tarjeta:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	}

	.tarjeta .label {
		font-size: 13px;
		font-weight: 600;
		color: #7f8c8d;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		display: block;
	}

	.tarjeta .valor {
		font-size: 36px;
		font-weight: 800;
		color: #2c3e50;
		display: block;
		margin: 6px 0;
		line-height: 1.2;
	}

	.tarjeta .detalle {
		font-size: 12px;
		color: #95a5a6;
		display: block;
	}

	/* Colores específicos para tarjetas (opcional) */
	.tarjeta:nth-child(1) .valor {
		color: #3498db;
	}

	.tarjeta:nth-child(2) .valor {
		color: #2ecc71;
	}

	.tarjeta:nth-child(3) .valor {
		color: #e67e22;
	}

	.tarjeta:nth-child(4) .valor {
		color: #1abc9c;
	}

	.tarjeta:nth-child(5) .valor {
		color: #e74c3c;
	}

/* ========== 12. GRAFICOS ========== */
.graficos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin: 25px 0;
}

.grafico {
	background: #ffffff;
	border-radius: 14px;
	padding: 20px;
	border: 1px solid #eef2f6;
}

	.grafico h3 {
		font-size: 18px;
		color: #2c3e50;
		margin-bottom: 15px;
		text-align: center;
	}

	.grafico canvas {
		max-width: 100%;
		height: auto !important;
		max-height: 250px;
	}

/* ========== 13. GAFETES (grid) ========== */
.grid-gafetes {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: flex-start;
	margin-top: 20px;
}

.gafete {
    background-image: url('../img/gafete.jpg');
    background-size: cover;
    background-position: center;
	width: 105mm;
	height: 70mm;
	background: #ffffff;
	border: 2px solid #2c3e50;
	border-radius: 10px;
	padding: 12px 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	transition: 0.2s;
	page-break-inside: avoid;
	box-sizing: border-box;
}

	.gafete .nombre {
		font-size: 28pt;
		font-weight: 800;
		color: #1a2a3a;
		text-align: center;
		line-height: 1.2;
		word-break: break-word;
		max-width: 90%;
	}

	.gafete .grupo {
		position: absolute;
		bottom: 12px;
		left: 16px;
		font-size: 16pt;
		font-weight: 600;
		color: #2c3e50;
		background: rgba(241, 196, 15, 0.2);
		padding: 2px 12px;
		border-radius: 20px;
		letter-spacing: 1px;
	}

	.gafete .img-grupo {
		position: absolute;
		top: 8px;
		right: 10px;
		width: 30px;
		height: 30px;
		object-fit: contain;
		opacity: 0.6;
	}

/* ========== 14. MODALES ========== */
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
	animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.modal-content {
	background: #ffffff;
	padding: 30px 35px;
	border-radius: 20px;
	max-width: 600px;
	width: 92%;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	text-align: center;
	position: relative;
}

	.modal-content h3 {
		margin-top: 0;
		color: #2c3e50;
		font-size: 22px;
	}

	.modal-content p {
		font-size: 16px;
		margin: 15px 0;
		color: #2c3e50;
	}

	.modal-content .btn {
		margin: 8px 6px;
		min-width: 100px;
	}

	.modal-content .form-actions {
		justify-content: center;
	}

/* Modal de éxito (un solo botón) */
#modal-exito .modal-content {
	border-top: 6px solid #2ecc71;
}

#modal-alerta .modal-content {
	border-top: 6px solid #f39c12;
}

/* ========== 15. UTILIDADES ========== */
.text-center {
	text-align: center;
}

.text-uppercase {
	text-transform: uppercase;
}

.mt-20 {
	margin-top: 20px;
}

.mb-20 {
	margin-bottom: 20px;
}

.d-flex {
	display: flex;
}

.flex-wrap {
	flex-wrap: wrap;
}

.gap-10 {
	gap: 10px;
}

.align-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

/* Loader */
.loader {
	text-align: center;
	padding: 40px;
	font-size: 18px;
	color: #7f8c8d;
}

	.loader::after {
		content: '⏳';
		display: inline-block;
		animation: spin 1s linear infinite;
		margin-left: 10px;
	}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* ========== 16. RESPONSIVE ========== */
/* Tablets y pantallas medianas */
@media (max-width: 992px) {
	header {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 15px;
	}

		header .logo {
			text-align: center;
		}

	nav ul {
		justify-content: center;
	}

		nav ul li {
			padding: 8px 14px;
			font-size: 14px;
		}

	#main-content {
		padding: 18px;
	}

	.graficos {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.tarjetas {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}
}

/* Móviles */
@media (max-width: 600px) {
	#app {
		padding: 10px;
	}

	header .logo h1 {
		font-size: 22px;
	}

	nav ul li {
		padding: 6px 12px;
		font-size: 12px;
		border-radius: 6px;
	}

	.toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px;
	}

		.toolbar input[type="text"],
		.toolbar input[type="search"] {
			flex: 1 1 auto;
		}

		.toolbar .filtros-rapidos {
			justify-content: center;
		}

	.dropdown-columnas .dropdown-content {
		left: auto;
		right: 0;
	}

	.form-row {
		flex-direction: column;
		gap: 10px;
	}

	.form-group {
		flex: 1 1 auto;
		min-width: 100%;
	}

	.tarjetas {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.tarjeta .valor {
		font-size: 28px;
	}

	.gafete {
		width: 80mm;
		height: 55mm;
		padding: 8px;
	}

		.gafete .nombre {
			font-size: 20pt;
		}

		.gafete .grupo {
			font-size: 12pt;
			bottom: 8px;
			left: 10px;
		}

	.modal-content {
		padding: 20px;
		max-width: 95%;
	}

		.modal-content .btn {
			min-width: 70px;
			padding: 8px 14px;
		}

	table {
		font-size: 12px;
		min-width: 500px;
	}

		table th, table td {
			padding: 6px 10px;
		}

	.btn {
		padding: 8px 16px;
		font-size: 13px;
	}
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
	.tarjetas {
		grid-template-columns: 1fr;
	}

	nav ul li {
		padding: 4px 10px;
		font-size: 11px;
	}
}

/* ========== 17. ESTILOS PARA IMPRESIÓN ========== */
@media print {
	body {
		background: #fff;
		padding: 0;
		margin: 0;
	}

	#app {
		max-width: 100%;
		padding: 0;
		margin: 0;
	}

	header, nav, footer, .toolbar, .btn, .no-print {
		display: none !important;
	}

	#main-content {
		box-shadow: none;
		border-radius: 0;
		padding: 10px;
		background: #fff;
	}

	.module {
		display: block !important;
	}

	.gafete {
		border: 1px solid #000;
		box-shadow: none;
		page-break-inside: avoid;
		width: 105mm;
		height: 70mm;
		margin: 0 auto;
	}

	.grid-gafetes {
		gap: 8px;
		justify-content: center;
	}

	table {
		border: 1px solid #ccc;
		font-size: 11px;
	}

		table th {
			background: #f0f0f0 !important;
		}

	.graficos canvas {
		max-height: 150px;
	}
}

/* ============================================
   ESTILOS PARA EL MÓDULO HOME
   ============================================ */
.home-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	text-align: center;
	padding: 20px 0;
}

.home-logo img {
	max-width: 80%;
	height: auto;
	margin-bottom: 30px;
}

.home-countdown h2 {
	font-size: 28px;
	color: #2c3e50;
	margin-bottom: 20px;
	font-weight: 700;
	letter-spacing: 2px;
}

#countdown {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	padding: 15px 25px;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	min-width: 80px;
	backdrop-filter: blur(2px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

	.countdown-item span:first-child {
		font-size: 48px;
		font-weight: 800;
		color: #1a2a3a;
		line-height: 1.2;
	}

	.countdown-item .label {
		font-size: 14px;
		color: #7f8c8d;
		margin-top: 5px;
		font-weight: 600;
		letter-spacing: 1.5px;
	}

.home-stats {
	margin-top: 40px;
	font-size: 20px;
	background: rgba(255, 255, 255, 0.85);
	padding: 25px 40px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

	.home-stats .total-inscritos {
		font-weight: 700;
		color: #2c3e50;
		display: block;
		font-size: 18px;
		letter-spacing: 1px;
	}

	.home-stats #total-inscritos-home {
		font-size: 56px;
		font-weight: 800;
		color: #3498db;
		display: block;
		margin: 8px 0;
	}

	.home-stats .porcentaje {
		color: #2ecc71;
		font-weight: 600;
		font-size: 18px;
	}

/* ============================================
   HEADER CON LOGOS (izquierda, centro, derecha)
   ============================================ */
header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 10px 20px;
	background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	margin-bottom: 25px;
}

.logo-left img,
.logo-right img {
	height: 50px;
	width: auto;
	vertical-align: middle;
}

.logo-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.church-location {
	font-weight: 700;
	color: #f1c40f;
	font-size: 16px;
	letter-spacing: 1px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

	#main-nav ul {
		display: flex;
		list-style: none;
		gap: 5px;
		margin: 0;
		padding: 0;
	}

		#main-nav ul li {
			padding: 10px 18px;
			cursor: pointer;
			border-radius: 8px;
			font-weight: 600;
			font-size: 15px;
			transition: all 0.3s ease;
			color: rgba(255, 255, 255, 0.8);
			letter-spacing: 0.5px;
			white-space: nowrap;
		}

			#main-nav ul li:hover {
				background: rgba(255, 255, 255, 0.15);
				color: #fff;
				transform: translateY(-2px);
			}

			#main-nav ul li.active {
				background: #f1c40f;
				color: #1a2a3a;
				box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
			}

/* ============================================
   RESPONSIVE PARA MÓVIL
   ============================================ */
@media (max-width: 768px) {
	header {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px;
	}

	.logo-left, .logo-right {
		display: flex;
		justify-content: center;
		margin: 5px 0;
	}

	.logo-right {
		flex-direction: row-reverse;
		gap: 8px;
	}

	.church-location {
		font-size: 14px;
	}

	#main-nav ul {
		flex-wrap: wrap;
		justify-content: center;
	}

		#main-nav ul li {
			padding: 6px 12px;
			font-size: 13px;
		}

	.home-logo img {
		max-width: 90%;
	}

	#countdown {
		gap: 12px;
	}

	.countdown-item {
		padding: 10px 12px;
		min-width: 60px;
	}

		.countdown-item span:first-child {
			font-size: 28px;
		}

	.home-stats {
		padding: 15px 20px;
	}

		.home-stats #total-inscritos-home {
			font-size: 36px;
		}
}