/* ROOT Y VARIABLES */
@charset "utf-8";

:root{
	--colorPrincipal_1: #e9f3f5;
	--colorPrincipal_2: #d2e8ec;
	--colorPrincipal_3: #bcdce2;
	--colorPrincipal_4: #a5d0d8;
	--colorPrincipal_5: #8fc5cf;
	--colorPrincipal_6: #78b9c5;
	--colorSecundario_1: #d4e2e7;
	--colorSecundario_2: #a9c5cf;
	--colorSecundario_3: #7daab8;
	--colorSecundario_4: #4f8ea1;
	--colorSecundario_5: #00748b;
	--gris_1:#ededee;
	--gris_2:#dadbdc;
	--gris_3:#c8cacb;	
	--gris_4:#b5b8ba;	
	--gris_5:#a3a6a8;	
	/* Paleta basada en #78B9C5 */
	--color-base-1: #ECF7F9; /* claro */
	--color-base-2: #D9EEF2; /* medio-claro */
	--color-base-3: #9CD0D8; 
	--color-base-4: #78B9C5; 
	--color-base-5: #5896A0; 
}

/*Definir elementos que no se deben ver salvo en versión tablet y móvil*/
span.label,
#bt_display_thead{
  display: none;
}

/* ESTILOS GENERALES*/

*, *::before, *::after {
  box-sizing: border-box;
  font:Verdana, Geneva, sans-serif; 
  padding: 0;
  margin: 0;
  box-sizing:border-box;
}
html {	
	font-size: 10px;
	height: 100%;
}
body{
	width:100%;
	height: 100%;
  	display: flex;
  	flex-direction: column;
	min-height: 100vh;
	font-family: 'Poppins', sans-serif;
	padding: 0px;
	padding-bottom: 50px;
	background-color: #ffffff;
	color: #1d3557;
	margin: 0;
	padding: 0;
}

body > section {
  flex: 1;
  background-color: white;
}
.container_principal>div{
	/*background-color:#FFF;*/
	/*border-radius: 8px;*/
	/*-moz-border-radius: 8px 8px 8px 8px;*/
	/*-webkit-border-radius: 8px 8px 8px 8px;*/
	border: 0px solid #000000;
	width: 100%;
	margin: 0px;
	padding: 0px;
}
hr{
	height:2px; 
	background-color:var(--colorPrincipal_6);
	border-color:transparent;

}
h1 {
	font-size: 3rem;
	font-weight: 600;
	color: #1d3557;
	margin-bottom: 1rem;
	text-align: center;
}

h5{
	background-color:#E8E8E8;
	font-size:12px;
	color:#000;
	border:0px transparent;
	font-weight:normal;
	height:30px;
	padding-left:5px;
	padding-right:5px;
}


input[type=date]{
	border-radius:5px;
	background-color:transparent;
	border-color:transparent;
}

input[type="image"]{
    width: 25px;
}
input[type="image"]:hover {
    transform: scale(1.25);
}

input[type="email"]{
	border-radius:5px;
	background-color:transparent;
	border: transparent;
	width: 100%;
}
input[type=text]{
	border-radius:5px;
	background-color:transparent;
	border: transparent;
	width: 100%;
}

input[type=password]{
	border-radius:5px;
	background-color:transparent;
	border: transparent;
	width: 100%;
}

input[type=number]{
	border-radius:5px;
	background-color:transparent;
	border: transparent;
	width: 100%;
	text-align: right;
}
input:focus {
  outline: none;
  border: 1px solid var(--colorPrincipal_4);
}
.readonly-input {
  background-color: #f0f0f0; /* gris claro */
  color: #aaa;              /* texto gris */
  cursor: not-allowed;       /* icono de prohibido */
}


/* Estilo para los radio buttons */


.radio_group {
  display: flex;
  width: fit-content;
  gap: 1em;
  align-items: center;
  background-color:transparent;
}

.radio_option {
  width:fit-content;
  display: flex;
  align-items: center;
  background-color: transparent;
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

input[type="radio"] + label {
  display: flex;
  align-items: center;
  font-size: 1.25em;
  color: grey;
  cursor: pointer;
}

input[type="radio"] + label:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #78b9c5;
  margin-right: 6px;
  background-color: transparent;
}

input[type="radio"]:checked + label:before {
  background-color: #78b9c5;
}

label {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  user-select: none;
  color: #333;
}

main{
	background-color: transparent;
}

section{
	width: 100%;
	flex: 1; /* ocupa todo el espacio restante entre header y footer */
  	display: flex;
  	flex-direction: column;
	background-color:#78b9c5;
	padding-top: 0px;
	padding-bottom:0px;
	padding-left: 0%;
	padding-right: 0%;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left:0px;
	margin-right:0px;
	border-radius: 0 0 8px 8px;
}
span{
  pointer-events: none;
}

svg {
    background-color: lightblue;
}
svg g path{
    fill:gray;
	stroke:white;
}
svg g path:hover{
    fill:cyan;
}
textarea{
	border-radius:5px;
	background-color:transparent;
	font-family:Verdana, Geneva, sans-serif;
	font-size: 1.2rem;
}

/* COLORES */

.color_principal_0{
	background-color:white;
	color:#000;
	border:1px solid var(--color-base-1);
	padding-left:5px;
	padding-right:5px;
}
.color_principal_1{
	background-color:var(--color-base-1);
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}
.color_principal_2{
	/*background-color: #d2e8ec;*/
	background-color: var(--color-base-2);
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}
.color_principal_3{
	background-color: #bcdce2;
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}
.color_principal_4{
	background-color: #a5d0d8;
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}
.color_principal_5{
	background-color: #8fc5cf;
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}	
.color_principal_6{
	background-color: #78b9c5;
	color:#000;
	border:1px solid #FFF;
	padding-left:5px;
	padding-right:5px;
}
.gris1{
	background-color:#ededee;
}
.gris2{
	background-color:#dadbdc ;
}
.gris3{
	background-color:#c8cacb;
}
.gris4{
	background-color:#b5b8ba ;
}
.gris5{
	background-color:#a3a6a8 ;
}


/* CONTENEDORES GENERALES */

main {
	flex: 1;
	width: 100%;
	margin: 0;
	padding: 0 1rem;
	max-width: 100vw;
	box-sizing: border-box;
}
.container_header{
	width: 90%;
	height: 50px;
	background-color: transparent;
	display: flex;
	justify-content: start;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: auto;
	margin-right: auto;
}
.container_input{
	width: 100%;
	height: 100px;
	background-color: white;
	border-color: transparent;
	border-width: 1px;
	border-radius: 5px;
	padding: 0px;
}
.container_logo{
	background-color: transparent;
	width: 90%;
	margin: auto;	
}
.container_logo_header{
	width: 90%;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: auto;
	margin-right: auto;
	padding: 0px;
	background-color: transparent;
}
.container_menu_inicio{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 50px;
	gap: 10px; /* Esto añade separación entre botones */
	justify-content: center;
	width: 100%;
}
.container_principal{
	flex: 1;
  	display: flex;
  	flex-direction: column;
  	overflow: hidden; /* evita desbordes horizontales */
	background-color:white;
	width: 98%;
	height: auto;
	position: relative;
	margin-top: 0px;
	padding-top: 5px;
	margin-left: auto;
	margin-right: auto;
}
.container_principal_flex{
	background-color:transparent;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	height: auto;
}
.container_radios{
	display: flex;
	flex-direction: row;
	justify-content: end;
	align-items: flex-start;
	width: 25%;
	padding: 0px;
	box-sizing: border-box;
	border-radius: 10px; /* Bordes redondeados para el contenedor */
}
.container_subtitulo{
	padding-top: 25px;
	padding-bottom: 15px;
}
.container_table {
	background: #ffffff;
	padding: 0rem;
	border-radius: 10px;
	width: 100%;
	height: auto;
	max-width: 100vw;
	overflow-x: auto; /* solo scroll horizontal si es necesario */
	text-align: center;
	z-index: 0;
}
.container_titulo {
	padding-top: 2.5rem;
	padding-bottom: 1.55rem;
	margin-bottom: 0rem;
}
.layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
  }

/* ==== ESTILOS DE TABLA ==== */

table {     
	width: 100%;
	max-width: 100%;
	font-family:Verdana, Geneva, sans-serif;
    font-size: 1.2em;     
	background: #ffffff;
	text-align:center;
    text-indent: initial;
	border-collapse: separate; /* ✅ Mantener "separate" */
    border-spacing: 0px;
	border-radius: 10px;
	margin: 0 auto;
	table-layout: fixed;
}
thead th {
	position: sticky;
	top: 0;
	z-index: 5;
}
  
/* Fila de títulos */
.fila_titulos {
	/*background-color: #75b9c8;*/
	height: 3rem;
	background-color: var(--color-base-4);
}  
.fila_titulos th {
	color: white;
	font-weight: 300;
	font-size: 1.2rem;
	padding: 10px;
} 
.fila_titulos th:first-child {
	border-top-left-radius: 10px;
}  
.fila_titulos th:last-child {
	border-top-right-radius: 10px;
} 
/* Fila de búsqueda */
.fila_busqueda {
	height: 3rem; 
	background-color: var(--color-base-1);
	padding: 0px;
}  
.fila_busqueda td {
	padding: 0.4rem;
}  
.fila_busqueda input {
	width: 100%;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-family: 'Poppins', sans-serif;
	background-color: var(--colorPrincipal_1);
	color: #1d3557;
	outline: none;
	box-sizing: border-box;
}  
.fila_busqueda input::placeholder {
	color: #aaa;
	font-size: 1rem;
}

/*-----------Clases simulando tablas-------------- */


.div_table{
  display: flex;
  flex-direction: column;
}
.div_thead{
  display: flex;
  flex-direction: column;
}
.div_tbody{
  display: flex;
  flex-direction: column;
}
.div_tr{
  	display: flex;
  	flex-direction: row;
	min-height: 3em;
	height: fit-content;
}
.div_th{
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 3em;
	height: fit-content;
	font-size: 1.2em;
}
.div_td{
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 3em;
	height: fit-content;
	font-size: 1.2em;
}
  
/* Celdas normales */
th {  
	height: 40px; 
	font-size: 1.2rem; 
	font-weight:bold;     
	background-color:transparent;
	color:#000;
	text-align: center;
	border-radius: 5px;
	border: 1px solid #dbe9f4;
	padding-left:5px;
	padding-right:5px;
	padding-top: 0px;
	padding-bottom: 0px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
td {   
	height: 40px;    
	font-size: 1.2rem;     
	font-weight:lighter; 
	background-color:transparent;
	color:#000;
	text-align: left;
	border-radius: 5px;
	border: 1px solid #dbe9f4;
	padding-left:5px;
	padding-right:5px;
	padding-top: 5px;
	padding-bottom: 5px;
	/*overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;*/
	word-wrap: break-word;
	white-space: normal;
	overflow-wrap: break-word;
}

.text_input{
	background-color:transparent;
	font:Verdana, Geneva, sans-serif;
	border:none;
	font-weight:normal;
	width:100%;
	height:100%;
	padding-right: 5px;
}
  
/* Hover en las filas de datos */

tbody tr:hover {
	/*background-color: #f1f9fa;
	transition: background-color 0.3s ease;*/
}

/* PAGINACION */

.pagination-container {
	margin-top: 20px;
	text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 15px;
}
.page-button {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    background-color: var(--colorPrincipal_1);
    color: var(--colorPrincipal_6);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.page-button:hover {
    background-color: var(--colorPrincipal_2);
}
.page-button.active {
    background-color: var(--colorPrincipal_4);
    color: white;
}
.page-button.disabled {
    cursor: default;
    opacity: 0.5;
}

/* FILTRO ESTADO*/

.filtro_estado {
  display: flex;
  justify-content: flex-end; /* 🔁 Esto lo alinea a la derecha */
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-right: 1rem; /* Ajusta el margen derecho si lo necesitas */
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: #1d3557;
}

.filtro_estado input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--colorPrincipal_6); /* Color del check */
  cursor: pointer;
}

/* CheckBox seguimiento favoritos*/
.star-toggle {
  display: none;
}
.star-label img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.star-toggle + .star-label .estrella-activa {
  display: none;
}
.star-toggle:checked + .star-label .estrella-inactiva {
  display: none;
}
.star-toggle:checked + .star-label .estrella-activa {
  display: inline;
}

  
/*CLASES*/

.block{
	display: block;
}
.boton_enlace {
    padding: 10px 15px;
    background-color: transparent; /* Color de fondo del botón */
    color: #78b9c5; /* Color del texto del botón */
    border: solid 1px transparent;
    cursor: pointer;
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px;
    z-index: 100;
}
.bt{
	cursor: pointer;
	display: flex;
	width: 50px;
	height: 50px;
	justify-content: center;
	padding: 5px;
	margin-left: 10px;
	flex-grow: 0;
}

.ellipsis {
    padding: 6px 10px;
    color: var(--colorPrincipal_3);
    font-weight: bold;
}

.bt_submit{
	width: 200px;
	background-color:#C00;
	color: #FFF;
	font-size: 25px;
	border-radius: 10px;
	border:none;
	margin-left: auto;
	margin-right: auto;
	margin-top: 25px;
}
.buscador_principal{
	height: inherit;
	width: 100%;
	background-color: white;
	border-color: gray;
	outline: transparent;
	border-width: 1px;
	border-radius: 10px;
	margin: 0px;
	font-size: 1.5em;
	padding: 10px;
}
.cabecera{
	display: flex;
	padding-top:10px;
	padding-bottom:10px;
	justify-content: space-between;
	background-color: #F1F1F1 ;
}
.display_none{
	display: none;
}

.display_in_line{
	display: inline;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}
.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}


.flex{
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;

}

.index_contenedor{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.index_item{
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 50%;
}

.index_item img{
	height:40vh;
}

.index_item input{
	border: 1px solid #878686;
	border-radius: 10px;
	font-size: 50px;
	width: 100%;
	height: 75px;
}

.inline{
	display: inline-block;
}
.item_flex{
	display: flex;
	flex-direction: column;
	justify-content:flex-start;
	background-color:#F8F9F9 ;
	border-radius: 10px;
	height:fit-content;
	width: 13%;
	flex-grow: 0;
	flex-wrap:nowrap;
	margin: 5px;
}
.login{
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	padding: 0px;
	margin: 0px;
}

.login div{
	width: 70px;
	color: #566573 ;
}

.login a{
	color: #566573 ;
}
.logo_header{
	font-size: 50px;
	font-weight: bolder;
	color:white;
	text-align: left;
	margin-top: 0;
	padding: 0px;
	background-color: transparent;		
}
.logo_header:hover{
	cursor: pointer;	
}
.logo_slogan{
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	color:#78b9c5;
	text-align: center;	
}
.mas{
	cursor: pointer;
}

.select{
	width: 100%;
	height:30px;
	background-color:transparent;
	color:grey;
	font-size: 1.25em;
	border:transparent;
	border-radius: 10px;
	outline: transparent;
}

.select option{
	background-color:transparent;
}

.textarea_small{
	background-color:transparent;
	font:Verdana, Geneva, sans-serif;
	font-size:12px;
	color:#000;
	border:3px solid #FFF;
	font-weight:normal;
	height:30px;
	padding-left:5px;
	padding-right:5px;

}

.thead{
	background-color: transparent;
	border-color: #48C9B0;
	border: 1px;
}

.sticky  { 
	position: sticky;
	top: 0px;
	z-index: 10;
	background-color: transparent;
}

.sticky_column  { 
	position: sticky;
	left: 0px;
}


.invisible{
	display: none !important;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
	/*Establecer comportamiento MODO TABLA en versión general*/
	/*Las clases están definidas en estilos.css*/
	
  /*--Mostrar elementos ocultos en versión ordenador--*/

  #bt_display_thead{
	display: block;
}
  span.label{
    display: block;
    width: 100%;
    text-align: left;
    font-weight: bold;
  }
}
@media (max-width: 768px) {

	/*--Ocultar elementos genéricos en versión mobile--*/
	.not_mobile{
		display: none !important;
	}

	/*--Estilos de Tabla*/
	.container_table {
	  padding: 1rem;
	}
	thead th, tbody td {
	  font-size: 0.85rem;
	}
	.searching_box input {
	  font-size: 1 rem;
	}
}