/* *********************************  NAV BAR Y RESPONSIVIDAD *********************************  */

.navbar {
  background-color: #66C2D0;
  height: 120px;
  margin: 10px;
  border-radius: 16px;
  padding: 0.1rem;
  position: static;
}

.navbar-brand {
  font-weight: 500;
  color: #006e7e ;
  font-size: 24px;
  transition: 0.3s color;
}

.navbar-toggler {
  border: none;
  padding: 0.1rem;
  width: auto;
  font-size: 1.26rem;
  margin-right: 10px;
}

.nav-link {
  color: #006b7b;
  font-weight: 500;
  position: relative;
}

.navbar-toggler:focus,
.navbar-toggler:hover,
.btn-close:focus,
.btn-close:hover {
  background-color: transparent;
  color: inherit;
  box-shadow: none;
  outline: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fafafa;
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #006e7e ;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .offcanvas-footer {
    display: none;
  }
  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }
}

@media (max-width: 991px) {
  .offcanvas {
    text-align: center;
    height: auto;
    max-width: 220px;
  }

  .offcanvas-header {
    justify-content: center;
    background-color: #fafafa;
    padding: 1.25rem;
  }

  .offcanvas-body {
    color: #fafafa;
    background-color: #66C2D0;;
    padding: 0.1rem;
  }

  .navbar-brand {
    font-size: 20px;
  }

  .navbar-brand img {
    height: 80px;
  }

    .nav-link:hover,
    .nav-link.active {
      color: #c5f0f8 ;
    }
  .nav-link {
    margin-top: 10px;
    font-size: 16px;
    color: #006b7b;
  }

  .offcanvas-footer {
    background-color: #66C2D0; ;
    height: 90px;
  }
}

  
  /* *****************************************  BODY ****************************************  */
  
  body {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    cursor: url("../IMAGENES/favicon-32x32.png"), auto;
    background-image: url("../IMAGENES/Fondi.svg"); 
    background-position: center;
    background-repeat: no-repeat; 
    background-size: cover;
  }


main {
    flex: 1; 
  }
  
  
  /* ***************************************** FOOTER ****************************************  */
  
  
  footer {
    background-color: #66C2D0;
    height: 125px;
    margin: 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-shrink: 0
  }
  
  .footer-image {
    width: 80%;
    height: auto;
  }
  
  @media (max-width: 900px) {
    footer {
      padding: 0.5rem;
      height: auto;
    }
  
    .footer-image {
      height: 100%;
      width: 100%;
    }
  }
  
  /* ****************************  CONTAINER Y RESPONSIVIDAD ********************************  */
  
  .container {
    margin-top: 2rem;
    background-color: #fff;
    padding: 1.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 2rem;
    width: 97%; 
    max-width: 100vw;
    box-sizing: border-box; 
  }
  .header {
    margin-top: 1.25rem;
    background-color: #006e7e ;
    text-align: center;
    padding: 1rem 0;
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  
  @media (max-width: 600px) {
    .container {
      max-width: 90%;
    }
  
    .header {
      font-size: 1.5rem;
    }
  
  }
  @media (min-width: 601px) and (max-width: 900px) {
    .container {
      max-width: 90%;
    }
    .header {
      font-size: 1.75rem;
    }
  }
  
  

  /* *********************** CONTAINER TABLE Y RESPONSIVIDAD ********************************* */
  
/****************************************************** TABLA  ******************************************************/

.container-table {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; 
    text-align: center;
}

.container-table th,
.container-table td {
    width: 21%; 
    font-size: small;
    text-align: center;
    border: 1.5px solid #006e7e;
    padding: 4px;
    word-wrap: break-word;
    overflow: hidden;
}

.container-table input {
    text-align: center;
    width: 100%;
    padding: 0.5px;
    border: none;
    border-radius: 4px;
    outline: none;
}

/**************************** BARRA DE PROGRESO ***************************/

.container-table progress {
    margin-top: 4px;
    width: 100%;
    height: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

/****************************** RESPONSIVIDAD ****************************/

@media (min-width: 550px) and (max-width: 1000px) {
    .container-table th,
    .container-table td {
        width: 1000px;
        font-size: small;
        white-space: nowrap;
    }

    .container-table input {
        width: 150px;
    }

    .container-table progress{
        width: 150px;
    }

    .container-table table {
        display: block;
        overflow-x: auto;
    }

}

@media (max-width: 549px) {
    .container-table table {
        display: block;
        overflow-x: auto;
    }

    .container-table input {
        width: 150px;
    }

    .container-table progress{
        width: 150px;
    }

    .container-table th,
    .container-table td {
        white-space: nowrap;
        font-size: smaller;
    }
}

/************************************************ BARRA DE PROGRESO ***********************************************/


/* Fondo general en navegadores basados en WebKit */
progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}
/* Colores para los diferentes rangos */
.progress-red::-webkit-progress-value {
    background-color: #ff0000;
}
.progress-orange::-webkit-progress-value {
    background-color: #ff9800;
}
.progress-yellow::-webkit-progress-value {
    background-color: #ffeb3b;
}
.progress-lime::-webkit-progress-value {
    background-color: #b5c430;
}
.progress-green::-webkit-progress-value {
    background-color: #4caf50;
}
.progress-purple::-webkit-progress-value {
    background-color: #a015f1;
}

/* Fondo general en navegadores basados en WebKit */
progress::-webkit-progress-bar {
  background-color: #e0e0e0;
}


/* Para navegadores Firefox */
.progress-red::-moz-progress-bar {
    background-color: #ff0000;
}
.progress-orange::-moz-progress-bar {
    background-color: #ff9800;
}
.progress-yellow::-moz-progress-bar {
    background-color: #ffeb3b;
}
.progress-lime::-moz-progress-bar {
    background-color: #b5c430;
}
.progress-green::-moz-progress-bar {
    background-color: #4caf50;
}
.progress-purple::-moz-progress-bar {
    background-color: #a015f1;
}