/* ===================================
   ESTILOS BASE Y RESET
   =================================== */
html,
body,
#holder {
	min-height: 100%;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

/* ===================================
   ESTILOS SINGLE PAGE
   =================================== */
.page-section {
	padding: 40px 0;
	border-top: 1px solid #e5e7eb;
	margin-top: 20px;
}

.back-to-top-container {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 20px;
}

.btn-back-to-top {
	display: inline-block;
	padding: 8px 16px;
	background: #f1f5f9;
	color: #64748b;
	text-decoration: none;
	border-radius: 20px;
	font-size: 13px;
	transition: all 0.2s ease;
	border: 1px solid #e2e8f0;
}

.btn-back-to-top:hover {
	background: #e2e8f0;
	color: #334155;
	transform: translateY(-2px);
}

html>body,
html>body #holder {
	height: auto;
}

#holder {
	position: absolute;
	top: 0;
	left: 0;
	background: #f5f7fa;
}

/* ===================================
   HEADER - Mejorado y moderno
   =================================== */
#header {
	width: 100%;
	height: auto;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4682b4 100%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	position: relative;
	z-index: 100;
}

.header-top {
	background: #ffffff;
	padding: 0;
	border-bottom: 3px solid #f0c419;
}

.brand-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	flex-wrap: nowrap;
}

.brand-bar img {
	max-height: 66px;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.brand-bar img:hover {
	transform: scale(1.05);
}

.logo-unsl {
	border-radius: 0;
}

.link-unsl {
	text-decoration: none;
	margin-left: auto;
	background: #ffffff;
}

.header-title-bar {
	padding: 15px 10px;
	text-align: center;
	background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(70, 130, 180, 0.95) 100%);
	position: relative;
	clear: both;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-nav-bar {
	background: #f5f7fa;
	padding: 10px 20px;
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid #e5e7eb;
}

.btn-home {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #ffffff;
	color: #1e3c72;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 2px solid #1e3c72;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-home:visited {
	color: #1e3c72;
}

.btn-home:hover {
	background: #f0f0f0;
	border-color: #2a5298;
	color: #2a5298;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-home:active {
	transform: translateY(-50%) scale(0.98);
}

.btn-unsl {
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #ffffff;
	color: #1e3c72;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 2px solid #1e3c72;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-unsl:visited {
	color: #1e3c72;
}

.btn-unsl:hover {
	background: #f0f0f0;
	border-color: #2a5298;
	color: #2a5298;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-unsl:active {
	transform: translateY(-50%) scale(0.98);
}

.btn-section-link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	padding: 10px;
	background: transparent;
	color: #1e40af;
	text-decoration: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	transition: all 0.2s ease;
	margin-top: auto;
	text-align: left;
	text-align: left;
	box-shadow: none;
}

.btn-section-link:visited {
	color: #1e40af;
}

.btn-section-link:hover {
	background: transparent;
	color: #1d4ed8;
	text-decoration: underline;
	transform: none;
	box-shadow: none;
}

.site-title {
	font-size: 22px;
	color: #ffffff;
	margin: 0;
	padding: 0;
	border: none;
	font-weight: 700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.title-icon {
	display: none;
}

.site-subtitle {
	color: #e8f0fe;
	font-size: 14px;
	margin: 8px 0 0 0;
	font-weight: 300;
	letter-spacing: 1px;
}

/* ===================================
   CONTENIDO PRINCIPAL
   =================================== */
#contentWrap {
	height: auto;
	margin-bottom: 100px;
	padding: 0;
	margin-top: 0;
	margin-left: 10px;
	margin-right: 10px;
	background: transparent;
}

.content-inner {
	padding: 20px;
	background: white;
	border-radius: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===================================
   FOOTER - Mejorado
   =================================== */
#footer {
	clear: both;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-top: 3px solid #4682b4;
	position: absolute;
	padding: 8px 0;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-text {
	color: #ffffff;
	margin: 5px 0;
	font-size: 13px;
}

.footer-links {
	color: #b0b0b0;
	margin: 8px 0;
	font-size: 12px;
}

.footer-links a {
	color: #64b5f6;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #90caf9;
	text-decoration: underline;
}

.footer-links .separator {
	margin: 0 10px;
	color: #666;
}

.footer-year {
	color: #999;
}

/* ===================================
   RESET Y TIPOGRAFÍA BASE
   =================================== */

/* ===================================
   RESET Y TIPOGRAFÍA BASE
   =================================== */
form,
div,
ul,
li,
ol,
fieldset,
legend {
	padding: 0;
	margin: 0;
	border: 0;
}

body {
	font-size: 13px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
}

a,
a:visited {
	color: #2563eb;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ===================================
   HEADINGS - Mejorados
   =================================== */
h1 {
	font-size: 24px;
	border-bottom: 2px solid #e5e7eb;
	padding-top: 12px;
	padding-bottom: 12px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #1e40af;
	letter-spacing: -0.5px;
}

h2 {
	font-size: 20px;
	padding-top: 8px;
	padding-bottom: 12px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #d97706;
	border-left: 4px solid #fbbf24;
	padding-left: 12px;
}

h3 {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	margin: 10px 0;
}

h4 {
	font-size: 14px;
	padding: 8px;
	margin: 0;
	font-weight: 600;
	color: #4682b4;
}

h5 {
	font-size: 13px;
	font-weight: 600;
}

h6 {
	font-size: 12px;
	font-weight: 600;
}

/* ===================================
   MENÚ LATERAL - Rediseñado y moderno
   =================================== */
.barraIzquierdaTitulo {
	padding: 12px 15px;
	border: 1px solid #d1d5db;
	border-radius: 0;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #1e40af;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.barraIzquierdaTitulo:hover {
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.menu-category-icon {
	font-size: 18px;
	display: inline-block;
}

.barraIzquierdaContenido {
	padding: 8px 10px;
	border-left: 1px solid #d1d5db;
	border-right: 1px solid #d1d5db;
	border-bottom: 1px solid #d1d5db;
	border-radius: 0;
	margin-bottom: 15px;
	background: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.barraIzquierdaContenido ul {
	padding: 4px 4px 0px 8px;
	list-style: none;
	margin-bottom: 0;
}

.barraIzquierdaContenido ul li {
	margin-bottom: 4px;
}

.barraIzquierdaContenido ul li a,
.menu-link {
	display: block;
	padding: 10px 12px;
	color: #1e40af;
	border-radius: 0;
	font-size: 13px;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.barraIzquierdaContenido ul li a:visited,
.menu-link:visited {
	color: #1e40af;
}

.barraIzquierdaContenido ul li a:hover,
.menu-link:hover {
	background: linear-gradient(90deg, #dbeafe 0%, #e0f2fe 100%);
	text-decoration: none;
	border-left-color: #2563eb;
	padding-left: 16px;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.menu-group {
	margin-bottom: 15px;
}

/* ===================================
   BOTÓN TOGGLE DEL MENÚ
   =================================== */
.menu-toggle {
	display: none;
	background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
	color: white;
	border: none;
	border-radius: 0;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin: 10px;
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

.menu-toggle:active {
	transform: translateY(0);
}

.menu-icon {
	font-size: 18px;
	margin-right: 5px;
}

/* ===================================
   BURBUJAS DE CONTENIDO
   =================================== */


/* ===================================
   BURBUJAS DE CONTENIDO
   =================================== */
.burbujaTexto {
	padding: 5px;
	font-size: 13px;
	color: #333;
	line-height: 1.5;
}

.burbujaLink {
	color: #1e40af;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.burbujaLink:visited {
	color: #1e40af;
}

.burbujaLink:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ===================================
   NAVEGACIÓN Y CONTENIDO PRINCIPAL
   =================================== */
#nav {
	clear: both;
	width: 240px;
	float: left;
	padding-bottom: 3em;
	height: auto;
	margin-left: 10px;
}

#content {
	margin-left: 260px;
	margin-right: 10px;
	padding: 0;
	padding-bottom: 3em;
	height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: left;
	font-size: 13px;
	line-height: 1.7;
	overflow: hidden;
}

#content ul {
	padding: 2px 2px 0px 50px;
	list-style: circle;
	margin-bottom: 12px;
}

#content ol {
	padding: 2px 2px 0px 50px;
	margin-bottom: 12px;
}

#content p {
	margin: 8px 0;
	padding: 0 5px;
}

/* ===================================
   BORDES REDONDEADOS
   =================================== */
.bordeRedondo {
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin: 8px;
	background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bordeRedondo:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ===================================
   SIDEBAR Y RESPONSIVO
   =================================== */
.sidebar {
	background: transparent;
}

.sidebar a {
	color: #2563eb;
}

#sidebar-menu {
	display: block;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 900px) {
	.menu-toggle {
		display: block;
	}

	#nav {
		width: 100%;
		float: none;
		margin-left: 0;
		margin-bottom: 20px;
	}

	#content {
		margin-left: 10px;
		margin-right: 10px;
	}

	#sidebar-menu {
		display: none;
	}

	#sidebar-menu.show {
		display: block;
		animation: slideDown 0.3s ease;
	}

	.site-title {
		font-size: 22px;
	}

	.header-title-bar {
		padding: 15px 20px;
		flex-direction: column;
		height: auto;
		min-height: auto;
	}

	.btn-home {
		position: static;
		margin-bottom: 10px;
		font-size: 13px;
		padding: 6px 12px;
		transform: none;
	}

	.btn-unsl {
		position: static;
		margin-bottom: 10px;
		font-size: 13px;
		padding: 6px 12px;
		transform: none;
	}

	.brand-bar {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.site-title {
		font-size: 18px;
		flex-direction: column;
		gap: 5px;
	}

	.title-icon {
		font-size: 24px;
	}

	.brand-bar img {
		max-height: 50px;
	}

	#contentWrap {
		padding: 15px 5px;
		margin: 5px;
	}

	.content-inner {
		padding: 15px;
	}

	.footer-content {
		font-size: 11px;
	}

	.footer-links {
		flex-direction: column;
	}

	.footer-links .separator {
		display: none;
	}
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ===================================
   UTILIDADES
   =================================== */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.mt-1 {
	margin-top: 8px;
}

.mt-2 {
	margin-top: 16px;
}

.mt-3 {
	margin-top: 24px;
}

.mb-1 {
	margin-bottom: 8px;
}

.mb-2 {
	margin-bottom: 16px;
}

.mb-3 {
	margin-bottom: 24px;
}

.p-1 {
	padding: 8px;
}

.p-2 {
	padding: 16px;
}

.p-3 {
	padding: 24px;
}

/* ===================================
   MEJORAS DE ACCESIBILIDAD
   =================================== */
*:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

button:focus,
a:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* Skip to content link para accesibilidad */
.skip-to-content {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 10px;
	background: #1e40af;
	color: white;
	text-decoration: none;
}

.skip-to-content:focus {
	left: 10px;
	top: 10px;
}

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

/* Contenedor home */
.home-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* Grid de menú home - 2 columnas en desktop */
.home-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 20px 0;
	padding: 0;
}

.home-menu-card {
	background: white;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.section-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.section-grid {
		grid-template-columns: 1fr;
	}
}

.home-menu-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Eliminar margin-bottom del último elemento para evitar doble línea */
.home-menu-card .barraIzquierdaContenido {
	margin-bottom: 0;
	border: none;
	padding: 8px 10px;
	background: transparent;
	box-shadow: none;
}

.home-menu-card .barraIzquierdaContenido .bordeRedondo:last-child {
	margin-bottom: 0;
}

/* Responsive para home menu grid */
@media (max-width: 1024px) {
	.home-menu-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.home-menu-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.home-content {
		padding: 10px;
	}
}

@media (max-width: 600px) {
	.home-menu-grid {
		gap: 10px;
	}
}

/* Ajustes para las tarjetas home en móvil */
@media (max-width: 480px) {
	.home-menu-card {
		border-radius: 0;
	}

	.home-menu-card .barraIzquierdaTitulo {
		font-size: 14px;
		padding: 10px 12px;
	}

	.home-menu-card .barraIzquierdaContenido ul li a {
		font-size: 12px;
		padding: 8px 10px;
	}
}

/* ===================================
   BURBUJA COLAPSABLE
   =================================== */
.collapsible-bubble {
	margin: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
}

.collapsible-bubble:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.collapsible-header {
	padding: 15px 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #e5e7eb;
	transition: all 0.3s ease;
}

.collapsible-header:hover {
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.collapsible-title {
	font-size: 16px;
	font-weight: 700;
	color: #1e40af;
	display: flex;
	align-items: center;
	gap: 10px;
}

.collapsible-icon {
	font-size: 20px;
	transition: transform 0.3s ease;
	color: #2563eb;
}

.collapsible-header.active .collapsible-icon {
	transform: rotate(180deg);
}

.collapsible-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	padding: 0;
}

.collapsible-content.active {
	max-height: 5000px;
	padding: 15px 10px;
}

.collapsible-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.collapsible-grid .bordeRedondo {
	margin: 0;
}

.year-badge {
	display: inline-block;
	padding: 3px 8px;
	background: #dbeafe;
	color: #1e40af;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 8px;
}

@media (max-width: 768px) {
	.collapsible-grid {
		grid-template-columns: 1fr;
	}

	.collapsible-title {
		font-size: 14px;
	}

	.collapsible-header {
		padding: 12px 15px;
	}
}