@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&display=swap');
:root {
  /*fondos*/
  --fondo-blanco:#FFF;
  --fondo-general: #f7f7f7;
  --fondo-menu: ghostwhite;
  --fondo-boton-claro: #fff;
  --fondo-boton-oscuro: #5f6368;
  --fondo-hover: #686868;
  --fondo-activo: #4CAF50;
  --fondo-inactivo: #e1e1e1;
  --error: #a60000;
  --exito: #4CAF50;
  --fondo-gestion: #d0b600;
  --borde: #dbe4ec;
  /*textos*/
  --texto-boton-claro: #fff;
  --texto-boton-oscuro: #000;
  --texto-boton-inactivo: #686868;
}
.modo-oscuro {
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  align-items: center;
  background: var(--fondo-blanco);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 900;
  font-family: "Comfortaa", sans-serif;
  justify-content: space-between;
  width: 100%;
  height: 100vh; /* Ajustar el body al 100% del viewport */
  margin: 0;
}
h1 {
  align-items: center;gap: 5px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  font-size: 1.4em;
  padding: 0.5em;
  color: var(--texto-boton-oscuro);
  width: fit-content;
  text-align: center;
  border-bottom: 3px solid var(--borde);
}
/*informacion titles*/
[data-title]:hover:after {
  opacity: 1;
  transition: all 0.5s ease 0.5s;
  visibility: visible;
}
[data-title]:after {
  content: attr(data-title);
  background-color: var(--fondo-activo);
  color: var(--texto-boton-claro);
  font-size: 1em;
  position: absolute;
  padding: 5px;
  white-space: nowrap;
  opacity: 1;
  z-index: 99999;
  visibility: hidden;
  border-radius: 3px;
  margin-bottom: 70px;
}
[data-title] {
  position: relative;
}
/*botones*/
a {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 3px;
  justify-content: center;
  padding: 3px 5px;
  text-decoration: none;
  text-transform: capitalize;
  border-radius: 3px;
  cursor: pointer;
}
a:hover {
  transition: all 0.3s;
  background-color: rgba(0, 0, 0, 0.3);
}
a:active {
  color: var(--texto-boton-claro);
  background-color: var(--fondo-activo);
}
.activo {
  background-color: var(--fondo-activo);
  color: var(--texto-boton-claro);
  border-radius: 3px;
}
.inactivo {
  background-color: var(--fondo-inactivo);
  color: var(--texto-boton-inactivo);
  border-radius: 3px;
}
.tool-a {
  background-color: var(--fondo-boton-oscuro);
  color: var(--texto-boton-claro);
  border-radius: 3px;
}
.normal {
  background-color: var(--fondo-boton-oscuro);
  color: var(--texto-boton-claro);
  border-radius: 3px;
  background-size: cover;
}
.footer-a {
  color: var(--texto-boton-oscuro);
  border-radius: 3px;
}
/*mensajes*/
.error {
  background-color: var(--error);
  color: var(--texto-boton-claro);
}
.exito {
  background-color: var(--exito);
  color: var(--texto-boton-claro);
}
.blanco{
  background-color: var(--fondo-blanco);
  color: var(--texto-boton-oscuro);
}
.gestion {
  background-color: var(--fondo-gestion);
  color: var(--texto-boton-claro);
  border-radius: 3px;
}
/*inputs*/
input {
  padding: 5px;
  background-color: #fff;
  border: none;
  border-radius: 3px;
  color: var(--texto-boton-oscuro);
  text-align: center;
  flex-grow: 1;
}
input[type="submit"] {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 3px;
  justify-content: center;
  padding: 3px 5px;
  text-decoration: none;
  text-transform: capitalize;
  border-radius: 3px;
  cursor: pointer;  
  background-color: var(--exito);
  color: var(--texto-boton-claro);
  border: none;
}
input[type="submit"]:hover {
  background-color: var(--fondo-inactivo);
  color: var(--texto-boton-oscuro);
  transition: all linear 0.5s;
  opacity: 0.3;
}/*
input[type="file"] {
  /display: none;
}*/
button{
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 3px;
  justify-content: center;
  text-decoration: none;
  text-transform: capitalize;
  border-radius: 3px;
  cursor: pointer;  
  background-color: var(--exito);
  color: var(--texto-boton-claro);
  border: none;
  padding: 0 3px;
}
button:hover {
  background-color: var(--fondo-inactivo);
  color: var(--texto-boton-oscuro);
  transition: all linear 0.5s;
  opacity: 0.3;
}
table{
  background-color: var(--fondo-blanco);
  width: 100%;
  border: 1px solid var(--borde);
  font-size: 1em;
}
th{
  background-color: var(--exito);
  color: var(--fondo-blanco);
  font-weight: bolder;
  padding: 5px;
}
tr{
  padding: 3px;
  background-color: var(--fondo-general);
  margin-bottom: 5px;
}
td{
  text-align: center;
  padding: 5px;
}
details{
  background-color: var(--fondo-boton-claro);
  border: 1px solid var(--borde);
  border-radius: 3px;
  display: flex;
  flex-flow: row wrap;
  gap: 2px;
  width: 100%;
  padding:3px;
}
details summary{
  display: flex;
  align-items: center;
  cursor: pointer;
}
/* Estilo para el botón personalizado */
.custom-file-upload {
  display: inline-block;
  padding: 5px 10px;
  cursor: pointer;
  background-color: var(--exito);
  color: white;
  border-radius: 3px;
  font-weight: bold;
  transition: background-color 0.3s, border-color 0.3s;
}
.custom-file-upload:hover {
  background-color: var(--fondo-hover);
  color: var(--texto-boton-claro);
}
textarea {
  background-color: var(--fondo-blanco);
  width: -webkit-fill-available;
  min-height: 25px;
  padding: 3px;
  border: none;
  text-transform: uppercase;
}
select {
  border: none;
  padding: 5px;
}
/*barra top*/
.header {
  align-items: center;
  background-color: var(--fondo-menu);
  border: var(--borde);
  border-bottom: 3px solid var(--borde);
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  padding: 5px 0;
  position: sticky;
  top: 0;
}
.logo {
  max-width: 100px;
}
.logo img {
  width: 100%;
  margin: 0 5px;
}
.titulo-pagina {
  font-size: 1.5em;
  color: var(--titulo-pagina);
  padding: 0 0.5em;
  text-align: center;
  font-weight: 900;
}
.totales-camps {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: left;
  font-size: 1em;
  gap: 1px;
}
.totales-camps p {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 5px 10px;
}
.header-usuario {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
  justify-content: center;
  padding: 0 5px;
  max-width: 200px;
}
.header-usuario p {
  align-items: center;
  display: flex;
  text-align: center;
  gap: 3px;
  flex-grow: 3;
}
.header-usuario img {
  max-width: 30px;
  border-radius: 50%;
  flex-grow: 1;
}
/*barra footer*/
footer {
  align-items: center;
  background-color: var(--fondo-menu);
  border-top: 3px solid var(--borde);
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  justify-content: center;
  padding: 5px 0;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.menu-footer {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
  justify-content: space-evenly;
  width: 100%;
}

/*tools*/
.tools {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 1px;
  justify-content: center;
  width: fit-content;
  max-width: 95%;
  margin: 0 auto;
  padding: 10px 0.5em;
}
.tool-a {
  display: flex;
  flex-flow: row wrap;
  flex-grow: 1;
}
.tool-a p {
  font-size: 0.9em;
}
/*main*/
main {
  align-items: center;
  background-color: var(--fondo-menu);
  border-top: 3px solid var(--borde);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1em;
  max-width: 1600px;
  margin: auto;
  width: 100%;
  flex-grow: 1;
  box-shadow: 0 10px 10px #ddd;
}
/*lista*/
.lista {
  align-items: center;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  padding: 5px;
  width: 100%;
}
.fila {
  background-color: var(--fondo-boton-claro);
  border: 1px solid var(--borde);
  border-bottom: 5px solid var(--borde);
  border-radius: 3px;
  display: flex;
  flex-flow: row wrap;
  gap: 2px;
  width: 100%;
  padding:3px;
}
.fila-titulo {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  cursor: pointer;
  width: 100%;
}
.titulo-legend {
  font-size: 1em;
  font-weight: bolder;
  word-break: break-all;
}
.date-legend {
  font-size: 0.8em;
}
.item {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 3px;
  justify-content: center;
}
.titulo-item-fila {
  align-items: center;
  background-color: var(--fondo-general);
  padding: 3px;
  font-size: 10px;
  font-weight: bold;
  gap: 3px;
  border-radius: 3px;
  display: flex;
  width: -webkit-fill-available;
  justify-content: center;
}
.texto-item-fila {
  align-items: center;
  display: flex;
  flex-flow: row;
  padding: 3px 5px;
  gap: 3px;
  border-radius: 3px;
  flex-grow: 1;
  justify-content: center;
}
.fila:target {
  border: 3px solid red;
  position: fixed;
  top: 50%;
  box-shadow: 0 0 50px #000;
}
.totalleads {
  align-items: center;
  display: flex;
  gap: 1px;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  flex-grow: 1;
}
audio {
  height: 1.6em;
  width: -webkit-fill-available;
}
.lead-a {
  width: 140px;
  font-size: 0.9em;
  background-color: var(--fondo-general);
}
.totalleads-valor {
  align-items: center;
  display: flex;
  width: 20px;
  justify-content: center;
  flex-grow: 1;
}
.fila_gestion {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  justify-content: space-between;
  gap: 3px;
}
.titulo-item-fila-gestion {
  align-items: center;
  display: flex;
  padding: 4px;
  font-size: 0.9em;
  border-radius: 0;
  text-transform: capitalize;
  width: 10%;
}
.gestion_lead {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 3px;
  flex-grow: 1;
}
.gestion_lead_column{
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 3px;
  flex-grow: 1;
  gap: 5px;
  justify-content: center;
}
/*duplicados*/
.duplicados {
  position: fixed;
  top: 100px;
  margin: auto;
  box-shadow: 0px 0px 15px #000;
  width: 80%;
  margin: auto;
}
/*paginador*/
.paginador {
  align-items: center;
  background-color: var(--fondo-boton-claro);
  border: 1px solid var(--borde);
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
  justify-content: center;
  padding: 3px;
}
.paginador div {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
  justify-content: center;
  background-position: center;
}

/*login*/
.header-login {
  align-items: center;
  background-color: var(--fondo-menu);
  border: var(--borde);
  border-bottom: 3px solid var(--borde);
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
  padding: 5px 0;
}
.login {
  align-items: center;
  backdrop-filter: blur(50px);
  border: 3px solid var(--borde);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  justify-content: space-between;
  margin: auto;
  padding: 1em;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}
.login .password {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5px;
  cursor: pointer;
}
.llamar {
  display: none;
}
/* Estilos básicos para el popup y la barra de progreso */
#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
#progress-bar {
  width: 100%;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
}
#progress-bar div {
  height: 20px;
  width: 0;
  background-color: #4caf50;
}
.success {
  display: none;
  padding: 10px;
  margin-top: 10px;
}
.success { color: green; }
@media (width <= 766px) {
  .header {
    justify-content: center;
    gap: 3px;
  }
  .titulo-pagina {
    font-size: 1.2em;
  }
  
  a {
    flex-direction: column;
  }
  .tools {
    width: 100%;
  }
  .tool-a {
    flex-direction: column;
  }
  .tool-a p {
    font-size: 0.8em;
  }
  .fila-titulo {
    width: fit-content;
  }
  .texto-item-fila {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  .activo {
    border-radius: 0;
  }
  .titulo-item-fila-gestion{
    width: 100%;
    font-size: .8em;
    padding: 3px ;
  }
  .llamar {
    display: flex;
  }
  .footer-a{
    font-size: 1.5em;
  }
}