:root {
  --yellow: #FFD13E;
  --orange: #FE802F;
  --green: #B1D354;
  --white: #f3f1f0;
  --red: #E41413;
  --gray: #9DA2AF;
  --darkgray: #0F1727;
  --blue: #5BC0C1;
  --lightYellow:#FFDB5E;
}


.orange{
  color: var(--orange);
}

.yellow{
  color: var(--yellow);
}

.blue{
  color: var(--blue);
}





@font-face {
  font-family: Mellon-Bold;
  src: url(fonts/PFMellon-Bold-subset.otf);
}

/*@font-face {
  font-family: Teresa-Semibold;
  src: url(../fonts/Teresa-Semibold.ttf);
}

@font-face {
  font-family: Karla-Italic;
  src: url(../fonts/Karla-Italic-VariableFont_wght.ttf);
}

@font-face {
  font-family: Karla;
  src: url(../fonts/Karla-VariableFont_wght.ttf);
}*/

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-weight: unset;
  font-family: 'Karla', sans-serif;
 }
html{
  scroll-behavior: smooth;
}
body{
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100vh;
	background-color: white;
	overflow-x: hidden;
}

img{
	width: 100%;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] { -moz-appearance:textfield; }


select {
  -webkit-appearance: none; /* Eliminamos el estilo predeterminado */
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: url('../img/arrow-select.svg') !important; /* Ruta de la imagen SVG */
  background-repeat: no-repeat !important;
  background-position: right 15px center !important; /* Posicionamos la flecha */
  background-size: 15px !important; /* Ajustamos el tamaño de la flecha */
}

select .label{
  padding-right: 30px;
}

button{
	opacity: 1;
	background: none;
	border: none;
  cursor: pointer;
}
button:hover{
}

button:focus{
	outline: none;
}

a{
	text-decoration: none;
  all: none;
	cursor: pointer;
  transition: all 0.5s ease;
}

h2{
  font-family: Mellon-Bold;
  margin: 0;
  padding-bottom: 10px;
}
p{
  color: var(--darkgray);
  margin: 0;
  padding-bottom: 10px;
  font-size: 0.8rem;
}

small{
  font-size: 0.6rem;
  color: #E41413;
}

.fullscreen{
  width: 100%;
  min-height: 100vh;
}

.blackback{
  background-color: black;
}

.flex-center{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.jc-ar{
  justify-content: space-around;
}

.login-form{
  width: 300px;
  margin: auto;
}


.card{
  border-radius: 10px;
  padding: 20px 0 0 ;
  overflow: hidden;
  position: relative;
  width: 95%;
  min-width: 150px;
  box-shadow: 1px 2px 8px 0px #9da2af12;
}

.card-mw{
  max-width: 300px;
}

.icon-button{
  width: 20px;

}



.cardOrange:before, .cardBlue:before, .cardYellow:before{
  content: "";
  height: 20px;
  background-size: 25px;
  background-position: center;
  background-repeat: repeat-x;
  top: 0;
  width: 100%;
  position: absolute;
}

.cardOrange{
  border: solid 2px var(--orange);
}

.cardBlue{
  border: solid 2px var(--blue);
}

.cardYellow{
  border: solid 2px var(--yellow);
}

.cardOrange:before{
  background-color: var(--orange);
  background-image: url(../img/pattronOrange.svg);
}

.cardBlue:before{
  background-color: var(--blue);
  background-image: url(../img/pattronBlue.svg);
}

.cardYellow:before{
  background-color: var(--yellow);
  background-image: url(../img/pattronYellow.svg);
}

.cardContent{
  padding: 15px;
}

a:hover .cardOrange{
  background-color: var(--orange);
}

a:hover .cardBlue{
  background-color: var(--blue);
}

a:hover .cardYellow{
  background-color: var(--yellow);
}



a:hover .card h2, a:hover .card p{
  color: white;
}



.whiteback{
  background-color: white;
}

.inputContainer{
  position: relative;
  height: 38px;
  line-height: 40px;
  width: 100%;
}

.textInput{
  position: absolute;
  width: 100%;
  outline: none;
  font-size: 1em;
  padding: 0 25px;
  line-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--darkgray);
  background: transparent;
  transition: 0.1s ease all;
  z-index: 50;
}


.label{
  position: absolute;
  font-size: 0.8em;
  color: grey;
  padding: 0 5px;
  margin: 0 25px;
  transition: 0.2s ease all;
  background-color: white;
}



.textInput:valid{
  color: black;
  border: 1px solid var(--orange);
}

.inputok{
  border: 1px solid var(--green);
}

.inputbad{
  border: 1px solid var(--red);
}

.textInput:focus{
  color: black;
  border: 2px solid var(--orange);
}

.inputok + .label{
  color: var(--green);
}


.inputbad + .label{
  color: var(--red);
}



.textInput:focus + .label,
.textInput:valid + .label  {
  color: var(--orange);
  height: 15px;
  line-height: 15px;
  transform: translate(-8px,-6px) scale(0.88);
  z-index: 51;
}


.yellowButton{
  display: block;
  width: 100%;
  height: 42px;
  text-align: center;
  background: var(--yellow);
  background-size: 100%;
  border-radius: 15px;
  color: black;
  background-image: url(../img/pattron1.svg);
  transition: all 0.5s ease;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 30px;
}
.yellowButton:hover{
  background-color: var(--lightYellow);
}

.icon-yellowButton{
  width: 25px;
  margin: auto;
}

.mb-15{
  margin-bottom: 15px !important;
}
/*Header*/
header{
  background-color: black;
  width: 100%;
  height: 76px;
  display: flex;
  justify-content: space-between;
  padding: 8px 30px;
  align-items: center;
  position: fixed;
  z-index: 99;
  box-shadow: 0 2px 7px 0px #0f17277a;
}

.logo-header{
  width: 25px;
}
/*Hamburger*/

.nav {
  background: none;
  width: 45px;
  height: 54px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.nav svg {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease; /* Añadimos transición suave */
}

.nav svg use:nth-of-type(1) {
  opacity: 1;
  stroke-dashoffset: 221;
  stroke-dasharray: 46 249;
  transition: stroke-dashoffset 0.12s linear 0.2s, stroke-dasharray 0.12s linear 0.2s, opacity 0s linear 0.2s;
}

.nav svg use:nth-of-type(2) {
  animation: stroke-animation-reverse 1.2s ease-out forwards;
}

.nav #hamburgerButton {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
}


.nav .showsarrow + svg {
  transform: rotate(180deg); /* Rota el ícono 180 grados */
}

.nav .showsarrow + svg use:nth-of-type(1) {
  stroke-dashoffset: 175;
  stroke-dasharray: 0 295;
  opacity: 0;
  transition: stroke-dashoffset 0.07s linear 0.07s, stroke-dasharray 0.07s linear 0.07s, opacity 0s linear 0.14s;
}

.nav .showsarrow + svg use:nth-of-type(2) {
  animation: stroke-animation 1.2s ease-out forwards;
}

@keyframes stroke-animation {
  0% {
    stroke-dashoffset: 295;
    stroke-dasharray: 25 270;
  }
  50% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
  65% {
    stroke-dashoffset: 59;
    stroke-dasharray: 59 236;
  }
  100% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
}

@keyframes stroke-animation-reverse {
  0% {
    stroke-dashoffset: 68;
    stroke-dasharray: 59 236;
  }
  50% {
    stroke-dashoffset: 290;
    stroke-dasharray: 25 270;
  }
  65% {
    stroke-dashoffset: 295;
    stroke-dasharray: 25 270;
  }
  100% {
    stroke-dashoffset: 290;
    stroke-dasharray: 25 270;
  }
}

/*sidebar*/
.sidebar{
  width: 300px;
  position: fixed;
  top: 0;
  right: -230px;
  height: 100vh;
  padding: 76px 0 0 0;
  z-index: 98;
  background-color: var(--yellow);
  box-shadow:-3px 0px 7px 0px #0f17271c;
  transition: all 0.4s ease; /* Animación suave */
}

.side_button_container{
  overflow: hidden;
  height: 75px;
  background-color: var(white);
  width: 100%;
}

.side_button{
  display: flex;
  width: 100%;
  color: black;
  background-image: url(../img/pattron1.svg);
  background-color: var(--yellow);
  border-bottom: dashed 2px black;
  padding: 0 30px;
  align-items: center;
  height: 75px;
  gap: 30px;
}

.side_button:hover{
  background-color: var(--lightYellow);
}

.sidebarText{
  font-size: 1.8rem;
  font-family: Mellon-Bold;
}

.showsidebar{
  right: 0 !important; /* El sidebar entra en pantalla */
}

.container{
  padding-top: 76px;
  padding-right: 70px;
  width: 100%;
  min-height: 100vh;
}

.dashHeader{
  display: flex;
  width: 100%;
  padding: 30px;
  align-items: center;
  justify-content: space-between;
}

.Title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.Title br{
  display: block;
  height: 0;
}
.iconTitle{
  width: 25px;
}

.sub-title{
  font-size: 0.8rem;
  color: var(--darkgray);
  font-family: sans-serif;
}

.content{
  padding: 20px;

}

.textTitle{
  font-size: 2rem;
  font-family: Mellon-Bold;
  color: black;
}

.list-container{
  padding: 0 20px;
  width: 100%;
}

.list-item{
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  box-shadow: 1px 2px 8px 0px #9da2af12;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.info{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 1;
  gap: 10px;
}

.text-primary{
  color: var(--orange);
  font-weight: bold;
  font-size: 0.9rem;
}

.text-secondary{
  color: var(--darkgray);
  font-weight: bold;
  font-size: 0.9rem;
  border-left: var(--gray) solid 1px;
  padding-left: 10px
}
.innerText{
  color: var(--darkgray);
  font-size: 0.8rem;
}
.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-left: var(--orange) solid 1px;
  padding: 0 0 0 10px;
}
.icon-button{
  width: 25px;
  padding: 5px;
  transition: all 0.5s ease;
  border: var(--blue) solid 2px;
  display: block;
  border-radius: 5px ;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1);
  background-color: white;
  box-shadow: 0px 0px 0px 0px #9da2af00;
}

.icon-button:hover{
  transform: scale(1.1);
  box-shadow: 1px 2px 2px 0px #9da2af40;
}

.b-danger{
  border: var(--red) solid 2px;
}

.form-container{
  width: 95%;
  margin: auto;
  max-width: 450px;
}


.alert{
  color: var(--red);
}

.search-box, .filter-box{
  padding: 0 15px 15px 15px;
}

.searchInput{
  display: flex;
}

.searchInput .textInput{
  border-radius: 10px 0 0 10px;
  border-right: none;
}

.searchInput .yellowButton{
  border-radius: 0 10px 10px 0;
  width: 50px;
  padding: 0;

}

.filter-box{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}


.filterInput, .filter-box .yellowButton{
  width: 300px;
}

/*PAGINACION*/
/* Estilo base para la paginación */
/* Estilo base para la paginación */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

/* Estilos para los enlaces de paginación */
/* Estilo base para la paginación */
/* Estilo base para la paginación */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

/* Estilos para los enlaces de paginación */
.page-item {
    margin: 0 5px;
}

/* Números de la paginación: fondo blanco, texto negro, borde amarillo */
.page-item .page-link {
    color: black;
    background-color: white;
    border: 2px solid var(--yellow);
    padding: 5px 12px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Flechas (anterior y siguiente) en negro */
.page-item .page-link svg {
    fill: black; /* Flechas negras */
}

/* Hover para los números de la paginación */
.page-item .page-link:hover {
    background-color: var(--yellow);
    color: black;
    border-color: var(--yellow);
}

/* Enlace activo: fondo amarillo, texto negro */
.page-item.active .page-link {
    background-color: var(--yellow);
    color: black;
    border-color: var(--yellow);
}

/* Deshabilitado (para flechas o botones que no pueden ser clickeados) */
.page-item.disabled .page-link {
    color: #999;
    background-color: white;
    border: 2px solid var(--yellow);
    padding: 5px 12px;
    border-radius: 5px;
}

/**/

.fast-add{
  width: 100%;
  max-width: 250px;
}


/*switch*/

/* Estilos para el container */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 15px;
}

/* Estilos para el label a la izquierda del switch */
.switch-label {
  margin-right: 15px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Estilos del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E41413;
    transition: 0.4s;
    border-radius: 34px;
    max-width: 34px;
    max-height: 23px;
}

.slider:before {
 position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Cambios de color y animación al activar el checkbox */
input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(11px);
}

.check-container{
      display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.submenu{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding:0 20px;
  width: 100%;
  background-color: var(--yellow);
}

.submenuButton{
  padding: 8px;
  font-weight: 600;
  transition: all0.5s ease;
}

.submenuButton:hover{
  background-color: black;
  color: var(--yellow);
}

/* Ajustes responsivos */
@media screen and (max-width: 768px) {
    .sidebar{
      width: 100%;
      right: -100%;
   }
   .continer{
    padding-right: 0;
   }
   .list-item{
      flex-direction: column;
      align-items: flex-start;
   }

   .info{
    flex-direction: column;
    gap: 10px;
   }

   .text-secondary {
      border: none;
   }

   .actions{
    flex-wrap: nowrap;
    border-left: none;
    border-top: var(--orange) solid 1px;
    padding: 10px 290px 0 0;
   }
   .yellowButton {
    height: 41px;
    font-size: 0.7rem;
    padding: 7px 10px;
    }
}

@media screen and (min-width: 769px) {

}
/* Estilo del Overlay (opcional) */
#overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
    z-index: 999; /* Debe estar detrás del popup */
}

/* Estilo del Popup */
.popup {
    background-color: var(--white)!important; /* Color de fondo del popup */
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 400px;
    padding: 20px 0 0;    
    top: 50%; /* Centrado verticalmente */
    left: 50%; /* Centrado horizontalmente */
    z-index: 1000; /* Asegúrate de que el popup esté sobre otros elementos */
    overflow: hidden;
    position: fixed;
    transform: translate(-50%, -50%); /* Ajusta la posición para centrar */
    
}

/* Título del Popup */
.popup h2 {
    font-family: Mellon-Bold;
    color: var(--orange);
    margin-bottom: 15px;
    text-align: center;
}

/* Contenido del Popup */
.popup p {
    color: var(--darkgray);
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

/* Botones dentro del Popup */
.popup .button-container {
    display: flex;
    justify-content: space-between;
}

.popup button {
    background: var(--yellow);
    border: none;
    border-radius: 5px;
    color: black;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Cambiar el color de fondo al pasar el mouse */
.popup button:hover {
    background-color: var(--lightYellow);
}

/* Cerrar el Popup */
.popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--darkgray);
}

.popup:before {
  background-color: var(--orange);
  background-image: url(../img/pattronOrange.svg); /* Asegúrate de que esta ruta sea correcta */
}

.popup:before{
  content: "";
    height: 20px;
    background-size: 25px;
    background-position: center;
    background-repeat: repeat-x;
    top: 0;
    width: 100%;
    position: absolute;
}
.popup{
  border: solid 2px var(--orange);
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
    z-index: 999; /* Detrás del popup */
}