:root {
    --cfm: #FFFFFF; /* Color de fondo del main */
    --cfsb: #666; /* Color de fondo del sidebar */
    --cff: #000000; /* Color de fondo del footer */
    --ctf: #FFFFFF; /* Color de texto del footer */    
    --cfth4: #0092CF; /* Color de fondo del th de todas las tablas */ 
    --cfb1: #6366f1; /* Color de fondo del boton1 */
    --chb1: #4f46e5; /* Color hover del boton1 */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Sombra boton1 */
}
@font-face {
	font-family: Dosis;
	src: url("/css/Dosis-Regular.ttf") format("truetype");
}
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
}
body {
    overflow-x: hidden; 
	font-family: Dosis, Helvetica, Arial, sans-serif;
	font-size: 1.1rem; 
	background: #FFFFFF;
    color: #222222;
    line-height: 1.5;
	/*color: #363636;*/
}
h1 {
	/* Título de la página en la sección lateral izquierda */
	font-size: 1.5rem;
	margin: 0 0 0.5rem 0;
	padding: 0.5rem 0 0.5rem 0;
	/*border-bottom: 0.1rem dashed #5791DD;*/
	font-weight: normal;
}
h2 {
	/* Título de la página en la sección main */
	font-size: 1.5rem;
	/*padding: 0.5rem 0 0 0;*/
	margin: 0;
	font-weight: normal;
}
h3 { 
	font-size: 1.1rem;
	padding: 0;
	margin: 0;
	font-weight: normal;
}
h4 { 
	font-size: 1.3rem;
	font-weight: normal;
	padding: 0;
	margin: 0;
	width: 100%;
}
h5 { 
	font-size: 1rem;
	padding: 0;
	margin: 0;
	font-weight: normal;
}
h7 { 
	font-size: 1.5rem;
	padding: 0;
	margin: 0;
	font-weight: normal;
}
a:link {
	color: #4040a0; text-decoration: none
}
a:visited {
	color: #404030; text-decoration: none
}
a:hover {
	text-decoration: none; color:#990000;
}
a:active { 
	color: #404030;
}
a:focus { }
img {
	height: auto;
	max-width: 100%;
}
input[type="date"] {
	font-family: Arial;
	font-size: 1.1rem;
}
form {
    margin: 1rem 0 0 0;
}
td {
    /*vertical-align: top;*/
}
/*----------------------------*/
header {
    height: 100px;
    background: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#header-left { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
header.shrink {
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#logo-img { height: 80px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#title-img { height: 40px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.shrink #logo-img { height: 60px; }
.shrink #title-img { height: 40px; }

#btn-menu { display: none; }

.hamburger-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    background-color: #888;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.hamburger-icon::before { transform: translateY(-8px); }
.hamburger-icon::after { transform: translateY(8px); }

#btn-menu:checked ~ header .hamburger-icon { background-color: transparent; }
#btn-menu:checked ~ header .hamburger-icon::before { transform: rotate(45deg); }
#btn-menu:checked ~ header .hamburger-icon::after { transform: rotate(-45deg); }

.user-avatar { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid #eee; }
.user-menu { position: relative; }
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #FFF;
    min-width: 150px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}
.user-dropdown a { display: block; padding: 12px; text-decoration: none; color: #333; }
.user-dropdown a:hover { background: #f8fafc; color: var(--accent-color); }
.user-menu:hover .user-dropdown { display: block; }

#container {
    display: flex;
    min-height: calc(100vh - 150px);
}
.sidebar {
    width: 240px;
    background: var(--cfsb);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Importante para ocultar el texto al encoger */
    white-space: nowrap; /* Evita que el texto salte de línea al encoger */
}
.nav-links { list-style: none; padding: 10px 0 ; }
.nav-links a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 20px; /* Alineación para que el icono quede centrado en mini */
    transition: background 0.2s;
}
.nav-links .icon2 {
    width: 24px;
    margin-right: 20px;
    text-align: center;
}
.nav-links a:hover { background: #334155; color: white; }
#main {
    flex: 1;
    padding: 5px;
    background: var(--cfm);
    min-width: 0;
    justify-content: center;
}
/*---------------------*/
#sidebar {
	float: left;
	/*width: 13%;*/
	padding: 1%;
	margin: 2%;
	background: #F6F7F9 fixed;
	border-radius: 5px;
	-moz-border-radius: 5px; /*Firefox*/
	-webkit-border-radius: 5px; /*Safari-Chrome*/
	/*
    border: 0.1rem solid #CCCCCC;
	box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75)
	-webkit-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
	-moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    */
}
footer { 
	width: 100%;
	float: left;
	height: 9rem;
    bottom: 0;
	background-color: var(--cff);
	margin: 0;
}
#lema2 {
	color: #FFFF99;
	font-size: 1.3rem;
	font-style: italic;
}
#footertext {
	color: var(--ctf); 
	margin: 1rem;
	font-size: 1.2rem;
} 
.icon {
	float: left;
	text-align: center;
	padding: 0.5rem;
	width: 88px;
	height: 104px;
    font-size: 0.9rem;
    overflow: visible;
}
.icon img {
	width: 48px;
	height: 48px;
}
.menu1 {
	width: 100px;
	margin: 0;
	height: 32px;
	padding:0;
	/* background:url(backmenu3.png) no-repeat; */
}
.menu2 {
	margin: 0;
	padding: 0;
	text-align: left;
}
.dropline2 {
	padding: 0;
	list-style: none;
	text-align:left;
	margin: 0;
}
.dropline2 li {
	width: 100%;
	/*display: inline;*/
	margin: 0;
	padding: 1px;
	text-align: left;
}
.tabla1 {
	border: 0;
	background: auto;
	height: auto;
	color: auto;
}
.tabla2 {
	/*Se usa en lateral*/
	width: 100%;
}
.tabla2 td {
	/*padding: 0.1rem 0.1rem 0.1rem 0.3rem;*/
}
.tabla3 {
	/* Tabla para mostrartitulocartelera*/
	/* border-bottom: 1px dashed #5791DD; none, dashed, dotted, solid*/
	/*margin: 0px 0px 15px 0px;*/
    margin: 1rem;
}
.tabla3 td {
	padding: 0.1rem;
}
.tabla4 {
	/* Tabla para datos verticales */
	/*margin: 1rem;*/
	/*width: 100%;*/
    /*margin: 1rem;*/
	border: 0.1rem dotted #000080; /*none, dashed, dotted, solid*/
	border-collapse: collapse;
}
.tabla4 th {
	background: var(--cfth4);
	border: 0.1rem solid #000080; /*none, dashed, dotted, solid*/
	color: #FFFFFF;
	text-align: left;
	padding-left:5px; padding-right:2px; padding-top:2px; padding-bottom:2px;
	font-weight: normal;
}
.tabla4 td {
	padding: 0.2rem;
	border: 0.1rem dotted #000080; /*none, dashed, dotted, solid*/
}
.tabla4 tr:nth-child(even) { 
	background: #EDEDED;
}
.tabla4 tr:nth-child(odd) {
	background: #DEDEDE;
}
.tabla5 {
	/* Tabla para datos horizontales */
	margin: 1rem;
	border: 0.1rem dotted #000080;
	border-collapse: collapse;
}
.tabla5 td {
	padding: 0.2rem 0.2rem 0.2rem 0.5rem;
	border: 0.1rem dotted #000080;
}
.tabla5 tr {
	background: #EDEDED;
}
/*
.tabla5 tr:nth-child(even) { 
	background: #EDEDED;
}
.tabla5 tr:nth-child(odd) {
	background: #DEDEDE;
}
*/
.tabla5 th {
    background: var(--cfth4);
	color: #FFFFFF;
	border: 0.1rem solid #000080;
	text-align: left;
	padding-left:5px; padding-right:2px; padding-top:2px; 
	padding-bottom:2px
}
.tabla6 {
	/* Tabla para submenúes*/
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	background: var(--cfth4);
	color: #FFFFFF;
}
.tabla6 a {
	color: #FFFFFF;
}
.tabla6 a:hover {
	color: #FF9595;
}
.input1 {
	border-style: dotted;
	border-width: 0.1rem;
	color: #22682F;
	height: 20;
	padding: 0;
	background-color: #C2F0CA;
	font-size: 1rem; 
	max-width: 90%;
}
.input2 { 
    padding: 10px 10px;
    font-size: 16px;
    border: 2px solid #BDC2C9;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
    max-width: 100%;
	/*Antes
    height: 30px;
	vertical-align: middle;
	display: inline-block;
	padding: 4px 6px;
	margin: 1px;
	font-size: 1rem;
	max-width: 90%;*/
}
.input2:focus {
    border-color: #6366f1;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.input3 {
	font-size: 1rem;
    -ms-transform: scale(1.2); /* IE */
    -moz-transform: scale(1.2); /* FF */
    -webkit-transform: scale(1.2); /* Safari y Chrome */
    -o-transform: scale(1.2); /* Opera */
	max-width: 90%;
}
.select2 { 
	/*height: 30px;
	font-size: 1rem;
    background-color: #FFF;*/
}
.textarea2 {
	height: auto;
	font-size: 1rem;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border: 2px solid #BDC2C9;
	vertical-align: middle;
	display: inline-block;
	padding: 4px 6px;
	margin: 1px;
}
.color1 {
	color:#990000;
}
.color2 {
	color: #336666;
}
.fondo1 {
	background-color: #2C639A;
}
.linea {
	color: #2C639A;
	background-color: #2C639A;
}
.boton0 {
	height: 36px;
	color: #000000;
	-webkit-border-radius: 0.5rem;
	-moz-border-radius: 0.5rem;
	border-radius: 0.5rem;
	padding: 4px 12px;
	text-align: center;
	border: 1px solid #aaaaaa;
	/*text-shadow: 5px 5px 10px rgba(0,0,0,0.8);*/
	background-image: linear-gradient(to bottom,#ffffff,#dddddd);
	margin: 2px 0px 2px 0px;
    font-size: 1rem;
}
:hover.boton0 {
	padding: 3px 11px;
	border: 2px solid #888888;
}
:active.boton0 {
	background-image: linear-gradient(to bottom,#EEEEEE,#CCCCCC);
	/*background: #DDDDDD;*/
}
.boton1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px; /*Antes 4px 12px*/
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--cfb1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    //Antes en boton 1 background-image: linear-gradient(to bottom,#0000ff,#0000dd);
    //Antes en boton 1 text-shadow: 5px 5px 10px rgba(0,0,0,0.8);
}
.boton1:hover {
    background-color: var(--chb1);
    transform: translateY(-2px); /* Pequeña elevación */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.boton1:active {
    filter: grayscale(0.5);
}
.boton2 {
    background: transparent;
    border: 2px solid var(--cfb1);
    color: var(--primary);
    padding: 11px 23px; /* 1px menos para compensar el borde */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
	/*Antes text-shadow: 5px 5px 10px rgba(0,0,0,0.8);
	background-image:linear-gradient(to bottom,#804040,#C08080);*/
}
.boton2:hover {
    background-color: rgba(99, 102, 241, 0.1); /* Indigo muy suave */
    transform: translateY(-2px); /* Elevación sutil */
    border-color: var(--chb1); 
}
.boton2:active {
    filter: grayscale(0.5);
}
.bibliotecatitulo {
	font-family: BenchGrinderTitling, Arial;
	font-size: 3rem;
	color: #000000;
}
.bibliotecatexto {
	font-family: SimplePrint, Arial;
	font-size: 1.1rem;
	color: #000000;
}
.menu3 {
	width: 100%;
	background: var(--cfth4);
	color: #FFFFFF;
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
}
.dropline3 {
	padding: 0;
	list-style: none;
	text-align: left;
	margin: 1;
}
.dropline3 li {
	width: 100%;
	display: inline;
	margin: 0;
	padding-right: 1rem;
	padding-left: 1rem;
	text-align: center;
}
.dropline3 a {
	color: #FFFFFF;
}
.bibliotecatexto2 {
	font-family: SimplePrint, Arial;
	font-size: 1.1rem;
	color: #FFFFFF;
}
.boton3 {
	height: 36px;
	color: #FFFFFF;
	-webkit-border-radius: 0.5rem;
	-moz-border-radius: 0.5rem;
	border-radius: 0.5rem;
	padding: 4px 12px;
	text-align: center;
	border: 1px solid #BB0000;
	text-shadow: 5px 5px 10px rgba(0,0,0,0.8);
	background-image:linear-gradient(to bottom,#990000,#FF0000);
	margin: 2px 0px 2px 0px;
    font-size: 1.1rem;
}
:hover.boton3 {
	background-image:linear-gradient(to bottom,#FF0000,#990000);
}
:active.boton3 {
	background: #FF0000;
}
.prtTitulo { FONT-WEIGHT: bold; FONT-SIZE:12px; COLOR: lightskyblue; FONT-FAMILY: Tahoma, Verdana, Arial; }
.prtSubtitu { FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: Tahoma, Verdana, Arial; }
.prtSubtitu1 { FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: Tahoma, Verdana, Arial; }
.prtCabecera { FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: Tahoma, Verdana, Arial; BACKGROUND-COLOR: gainsboro; }
.prtDetCampo { FONT-SIZE: 8px; COLOR: black; FONT-FAMILY: Tahoma, Verdana, Arial; BACKGROUND-COLOR: gainsboro; }
.prtSaltoDePagina { PAGE-BREAK-BEFORE: always; }
#video-background {
	height: 100%;
	position: fixed;
	width: 100%;
	z-index: -100;
}
@media screen and (max-width: 600px) {
	#login { display: none; }
	#lema { display: none; }
	#sidebar { display: none; }
	#main { width: 100%; margin: 0.5rem; }
    #logotitulo { display: none; }
    #subhead { margin: 0.5rem; }
    footer { margin: 0; }
}

@media screen and (min-width: 600px) {
	#login2 { display: none; }
	#lema2 { display: none; }
}

@media screen and (max-width: 1000px) {
	#derecha { display: none; }
}

/*-------------------------------------------------*/
#container.open-sidebar {
    left: 240px;
}
#main .content{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
	padding-left: 60px;
	width: 100%;
}
#main .content h1{
    font-weight: 100;
}
#main .content p{
    width: 100%;
    line-height: 160%;
}
#main #sidebar-toggle {
    background: #2290c9;
    border-radius: 3px;
    display: block;
    position: relative;
    padding: 10px 7px;
    float: left;
}
#main #sidebar-toggle .bar{
     display: block;
    width: 18px;
    margin-bottom: 3px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;   
}
#main #sidebar-toggle .bar:last-child{
     margin-bottom: 0;   
}
/* ESCRITORIO: Abierto por defecto. Cuando se desmarca: Se vuelve mini. Ocultar texto cuando no está marcado */ 
@media (min-width: 1024px) {
    /* Estado inicial (Checked): Ancho completo */
    .sidebar { width: 70px; }
    .sidebar .text { opacity: 0; }
    /* Cuando el script o el usuario lo marcan: */
    #btn-menu:checked ~ #container .sidebar { width: 250px; }
    #btn-menu:checked ~ #container .sidebar .text { opacity: 1; margin-left: 20px; }
}

/* MÓVIL: Cerrado por defecto.*/ 
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        left: calc(-1 * 250px);
        width: 250px;
        height: 100%;
        z-index: 999;
    }
    #btn-menu:checked ~ #container .sidebar { left: 0; }   
    .title-img { display: none; } /* Ahorrar espacio en móvil */
}

/* CK Editor 5 */
.ck-editor__editable_inline {
    min-height: 250px;
}
