
/*cambios de estilos
tamaño logo
button:hover color fondo
@media only screen and (max-width: 768px) {
.menu-toggle:hover color fondo
.toolbar li > a:hover { color fondo
.toolbar .sub-menu li > a:hover { color fondo

.toolbar li > a:hover { color fondo
.toolbar .sub-menu li > a:hover { color fondo
.btn-volver:hover { color fondo
.btn-nuevo:hover { color fondo
.btn-tabla:hover { color fondo
.table-hover tbody tr:hover { color fondo y fuente
 hr {  color fondo
.btn-doc:hover { color fondo

*/

body.index {
  background-color: #fff;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 420px;
  width: 100%;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
}


.logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: 0.5;
  animation: logoAnimation 2s infinite alternate;
}

.logo_pag {
  position: relative;
  width: 250px;
  height: 250px;
  opacity: 0.5;
  animation: logoAnimation 2s infinite alternate;
  
}

.logo_peq {
  width: 85px;
  height: 85px;
}

.logo_medio {
  width: 200px;
  height: 200px;
}

@keyframes logoAnimation {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

#usuario {
  color: white;
  font-size: 14px;
  background-color: #9aa7ab !important;
  text-decoration: none;
}

video {
  width: 300px;
  border-radius: 20px !important;
}

th {
  background-color: #f0f0f0 !important;
  color: #6f7174 !important;
  font-size: 11px !important;
}

h1.index {
  font-size: 24px;
  margin-bottom: 20px;
}

h5 {
  color: #6f7174 !important;
}

h4 {
  color: #6f7174 !important;
}

h3 {
  color: #6f7174 !important;
  text-align: center; /* Centrar horizontalmente */
}

span{
  color: #6f7174 !important;
}

label {
  color: #6f7174 !important;
  text-align: right !important;
}

hr {
   border: none; /* Quita el borde predeterminado */
   border-top: 2px solid #3cd0ac; /* Establece un borde superior*/
   height: 1px; /* Establece la altura del hr */
   background-color: #3cd0ac; /* Cambia el color de fondo */
   margin: 10px 0; /* Agrega márgenes superior e inferior */
}
   
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  box-sizing: border-box;
}

button {
  display: block;
  width: 90px;
  padding: 10px;
  background-color: #9aa7ab !important;
  color: white !important;
  font-size: 16px !important;
  border-radius: 5px !important;
  border: none !important;
  cursor: pointer;
  transition: background-color 0.4s ease;
  text-decoration: none;
}

button:hover {
  background-color: #e3891d !important;
}

a {
  text-decoration: none;
}

.cambio {
  display: block;
  width: 80%;
  padding: 10px;
  background-color: white;
  color: #000;
  font-size: 11px;
  border-radius: 5px;
  border: 1px;
  border-color: #fff;
  cursor: pointer;
}

.cambio:hover {
  background-color: white;
}

body.menu {
  background-color: #fff;
  font-family: Calibri, sans-serif;
}

body.menu header {
  background-color: #0099cc;
  color: #fff;
  padding: 20px;
}

body.menu h1 {
  margin: 0;
  font-size: 24px;
}

.contenido {
  
  background-color: #f0f0f0;
  padding: 5px;
  margin: 5px auto;
  width: 90%;
  text-align: center;
  font-family: Calibri, sans-serif;

}

.contenido2 {
  background-color: white !important;
  padding: 10px;
  margin: 30px auto;
  width: 90%;
  text-align: center;
  font-family: Calibri, sans-serif;
}

body.menu h2 {
  color: #0099cc;
}

body.menu p {
  color: #666;
  margin-bottom: 20px;
}

.titulo {
  color: #0c446b;
  font-family: Calibri, sans-serif;
}

.btn-volver {
  font-size: 14px;
  background-color: #9aa7ab;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn-volver:hover { 
  background-color: #e3891e !important;
  color: white !important;
}

.btn-atras {
  background-color: #ee4e4f;
  color: white;
  padding: 2px 4px;
  text-decoration: none;
  border-style: none;
  font-size: 12px !important;
  border-radius: 5px;
}

.btn-importar {
  background-color: #ee4e4f;
  color: white;
  padding: 8px 50px;
  text-decoration: none;
  border-style: none;
  font-size: 14px;
  border-radius: 5px;
}

.btn-importar:hover { 
  background-color: #0c446b;
  color: white !important;
}

.btn-volver:hover { 
  background-color: #0c446b;
  color: white !important;
}

.btn-nuevo {
  background-color: #9aa7ab;
  color: white;
  padding: 3px 40px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.4s ease;
}

.btn-nuevo:hover {
  background-color: #e3891e;
  color: white !important;
}

.btn-tabla {
  background-color: #9aa7ab;
  color: white;
  padding: 2px 10px;
  margin-top: 1px;
  text-decoration: none;
  border-radius: 5px;
}

.btn-tabla:hover {
  background-color: #e3891e;
  color: white !important;
}

.table-hover tbody tr:hover {
  background-color: #3eabd5;
  color:white;
}

.btn-doc {
  background-color: #f0f0f0;
  color: white;
  padding: 1px 9px;
  margin-top: 1px;
  text-decoration: none;
  border-radius: 25px;
}

.btn-doc:hover {
  background-color: #e3891e;
  color: white !important;
}

.btn-doc-act {
  background-color: #e3891e;
  color: white;
  padding: 1px 9px;
  margin-top: 1px;
  text-decoration: none;
  border-radius: 25px;
}

.btn-doc-act:hover {
  background-color: #f0f0f0;
  color: white !important;
}

.navbar {
  background-color: #9aa7ab;
  color: white;
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-left {
  display: flex;
  align-items: center;
  font-family: Calibri, sans-serif;
  margin-left: 10px;
}

.username {
  margin-right: 10px;
  font-size: 12px;
}

.navbar-right {
  display: flex;
  align-items: center;
  margin-rigth: 10px;
}

.logout-btn {
  background-color: #9aa7ab;
  color: white;
  font-size: 14px;
  padding: 3px 5px;
  text-decoration: none;
  border-radius: 4px;
  font-family: "Calibri", sans-serif;
}

.logout-btn:hover {
  background-color: #e3891d;
  color: white !important;
  font-size: 14px;
  padding: 3px 5px;
  text-decoration: none;
  border-radius: 4px;
  font-family: "Calibri", sans-serif;
}

section .toolbar {
      background-color: #f2f2f2;
      color: #85929E;
      display: flex;
      justify-content: right;
      padding: 0px;
      align-items: center;
      overflow: auto;
    }

section .toolbar2 {
      background-color: #f2f2f2;
      color: #85929E;
      display: flex;
      justify-content: right;
      padding: 0px;
      align-items: center;
      overflow: auto;
    }

.volver {
  float: left;
}

    .toolbar {
      background-color: white;
      color: #fff;
      display: flex;
      justify-content: center;
      padding: 5px;
      align-items: center;
    }

    .toolbar .user {
      text-align: left;
    }
    
    .toolbar .logout {
      text-align: right;
    }
    
    .toolbar ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .toolbar li {
      display: inline-block;
      position: relative;
    }

    .toolbar li > a {
      display: block;
      padding: 10px;
      color: black;
      background-color: white;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border-radius: 1px;
      transition: background-color 0.3s ease;
    } 

    .toolbar li > a:hover {
      background-color: #e3891e;
      color: white !important;
      transition: background-color 0.4s ease;
    }

    .toolbar .sub-menu {
      display: none;
      position: absolute;
      background-color: white;
      padding: 1px;
      box-shadow: 0 0px 0px rgba(0, 0, 0, 0.3);
      left: 0;
      top: 100%;
      min-width: 200px;
      z-index: 10;
    }

    .toolbar li:hover .sub-menu {
      display: block;
    }

    .toolbar .sub-menu li {
      display: block;
    }

    .toolbar .sub-menu li > a {
      padding: 10px;
      background-color: #f0f0f0;
      color: black;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: background-color 0.4s ease;
    }

    .toolbar .sub-menu li > a:hover {
      background-color: #e3891e;
      color: white;
    }

    /* Estilos para el menú lateral en dispositivos móviles */
    .menu-toggle {
      display: none;
    }

@media only screen and (max-width: 768px) {
  .toolbar {
    display: none;
  }
 
  .menu-toggle {
    font-size: 16px;
    display: block;
    position: static;
    bottom: 10px; /* Cambiar la posición vertical */
    left: 10px;
    padding: 5px;
    color: #6f7174;
    background-color: white;
    z-index: 3;
    cursor: pointer;
    flex-direction: column;
    transition: background-color 0.5s ease, bottom 0.5s ease; /* Agregar una transición suave */
  }

  .menu-toggle:hover {
    background-color:  #e3891e;
    color: white;
  }

  .menu-toggle.active {
    background-color: white;
    color:#6f7174;
  }

  .menu-toggle.active + .toolbar {
    display: block;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ccc !important;
    width: 300px;
    padding-top: 20px;
    bottom: 60px;
  }

  .toolbar ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .toolbar > ul > li {
    position: relative;
  }

  .toolbar li {
    display: block;
    margin-bottom: 10px;
  }

  .toolbar li:last-child {
    margin-bottom: 0;
  }

  .toolbar li > a {
    display: block;
    padding: 10px;
    color: #6f7174;
    text-decoration: none;
    transition: background-color 0.4s ease;
    background-color: white;
  }

  .toolbar li > a:hover {
    background-color: #e3891e;
  }

  .toolbar .sub-menu {
    display: none;
    background-color: #f0f0f0;
    padding: 0;
    margin-left: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
  }

  .toolbar li:hover > .sub-menu {
    display: block;
  }

  .toolbar .sub-menu li {
    display: block;
    margin-bottom: 5px;
  }

  .toolbar .sub-menu li:last-child {
    margin-bottom: 0;
  }

  .toolbar .sub-menu li > a {
    padding: 5px;
    color: #333;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
  }

  .toolbar .sub-menu li > a:hover {
    background-color: #e3891e;
    color: white;
  }
}

.dropdown-menu {
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.select {
  position: relative;
  border: 0.5px solid #ccc !important;
  width: 300px;
  height: 28;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  color:  #6f7174 ;
  z-index: 1;
}

.selectind {
  position: relative;
  border: 0.5px solid #ccc !important;
  width: 300px;
  height: 28;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  color:  #6f7174 ;
  z-index: 1;
}

.selectdos {
  position: relative;
  border: 1px solid #ccc !important;
  width: 150px !important;
  height: 25 !important;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
  color:  #6f7174 ;
  z-index: 1;
}

.selectdos-nuevo {
  position: relative;
  border: 1px solid #ccc !important;
  width: 150px !important;
  height: 25 !important;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
  color:  #6f7174 ;
  z-index: 1;
}

.select:focus {
  outline: none; /* Quita el borde de enfoque */
}

/* Estilos para alinear texto a la izquierda en Select2 */
.select2-container .select2-selection--single {
  text-align: left;
  height: 28 !important;
  font-size: 14px;
  padding: 0px;
  border: 0.5px solid #ccc;
  border-radius: 4px; 
}

.tool {
  position: relative;
  z-index: 10;
}

/* filtros */
    .filtros {
      color: black;
      display: flex;
      justify-content: center;
      padding: 1px;
      align-items: center;
    }
    
    .filtros .user {
      text-align: left;
    }
    
    .filtros .logout {
      text-align: right;
    }
    
    .filtros ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .filtros li {
      display: inline-block;
      position: relative;
    }

    .filtros li > a {
      display: block;
      padding: 1px;
      color: black;
      background-color: white;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border-radius: 1px;
      transition: background-color 0.3s ease;
    } 

    .filtros li > a:hover {
      background-color: #ee4e4f;
      color: white;
      transition: background-color 0.4s ease;
    }
/* fin filtros */


input[type="text"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  border: 0.5px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="number"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 0.5px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

#inputcosto [type="text"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 0.5px solid #ccc;
  border-radius: 4px; 
  width: 150px !important;
  height: 28px;
}

input[type="email"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="tel"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="password"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="date"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="datetime-local"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 28px;
}

input[type="file"] {
  background-color: white;
  color: #6f7174;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 44px;
}

input[type="checkbox"] {
  background-color: white;
  color: #6f7174;
  font-size: 7px;
  border-radius: 4px; 
  width: 15px;
  height: 15px;
}

button[type="submit"] {
  background-color: #0c446b;
  color: white;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 35px;
}

button[type="button"] {
  background-color: #0c446b;
  color: white;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px; 
  width: 300px;
  height: 35px;
}

input:focus {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  outline: none; /* Quita el borde de enfoque */
} 

    .form-group {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .form-group input {
      margin-bottom: 5px;
      text-align: left;

    }

    .form-group img{
      align-items: inherit;
      margin-bottom: 10px;
      width: 12px;

    }

    .buttons {
      margin-top: 10px;
      text-align: left;
      display: flex;
      justify-content: space-between;
    }

    .buttons button {
      margin-right: 10px;
      margin-left: 10px;
    }

    .buttons div {
      flex: 1;
    }

   .scrolling-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    width: 220px; /* Ajusta el ancho según tus necesidades */
    margin: 0 auto; /* Centra horizontalmente el div */
  }

  .scrolling-label {
    display: inline-block;
    animation: marquee 20s linear infinite;
    opacity: 0; /* Comienza con opacidad 0 */
    animation-delay: 0s; /* Retraso en la animación para el desvanecimiento */
  }

  .scrolling-label.show {
    opacity: 0; /* Al final de la animación, muestra completamente el contenido */
  }

  @keyframes marquee {
    0% {
      transform: translateX(200%);
      opacity: 0; /* Al inicio de la animación, establece opacidad 0 */
    }
    5%, 95% {
      opacity: 1; /* Durante la mayor parte de la animación, mantiene la opacidad 1 */
    }
    100% {
      transform: translateX(-100%);
      opacity: 0; /* Al final de la animación, establece opacidad 0 */
    }
  }

  .scrolling-label2 {
    display: inline-block;
    animation: marquee2 20s linear infinite;
    opacity: 0; /* Comienza con opacidad 0 */
    animation-delay: 10s; /* Retraso en la animación para el desvanecimiento */
  }

  .scrolling-label2.show {
    opacity: 0; /* Al final de la animación, muestra completamente el contenido */
  }

    @keyframes marquee2 {
    0% {
      transform: translateX(100%);
      opacity: 0; /* Al inicio de la animación, establece opacidad 0 */
    }
    15%, 95% {
      opacity: 1; /* Durante la mayor parte de la animación, mantiene la opacidad 1 */
    }
    100% {
      transform: translateX(-200%);
      opacity: 0; /* Al final de la animación, establece opacidad 0 */
    }
  }


  #excelTableContainer table {
    border-collapse: collapse;
    font-size: 12px;
  }

  #excelTableContainer th,
  #excelTableContainer td {
    border: 1px solid black;
    padding: 8px;
  }

.select-container {
  display: flex;
  align-items: center;
}


.select-icon {
  width: 10px;
  align-items: flex-end;
} 

.select-icon-mas {
  width: 30px !important;
  align-items: flex-end;
}    

/* Estilos para los botones de DataTable */
.dataTables_wrapper .dt-buttons {
  margin-bottom: 5px !important; /* Margen inferior entre los botones y la tabla */
}

.dataTables_wrapper .dt-buttons button {
  padding: 0px 16px !important;
  border: none !important;
  border-radius: 4px !important;
  background-color: #9aa7ab !important; /* Color de fondo del botón */
  cursor: pointer !important;
  margin-right: 10px !important; /* Espacio entre botones */
  height: 30px !important;
  font-size: 12px !important;
}

.dataTables_wrapper .dt-buttons button:hover {
  background-color: #1d6f42 !important; /* Color de fondo del botón al pasar el ratón */
}

.tabladatos_wrapper .scrollBody {
        background-color: #1d6f42 !important; /* Cambia el color de fondo del scroll */
    }

/* Estilo compacto para filtros */
.filters select {
    padding: 2px 25px 2px 8px !important;
    font-size: 12px;
    border-radius: 6px;
    min-width: 100px;
}


/* Fuente más pequeña en Select2 */
.select2-container .select2-selection--single {
    font-size: 12px;
    height: 28px !important;
    line-height: 28px !important;
}

.select2-container--default .select2-results__option {
    font-size: 12px;
}

/* Ajustar posición de la X al lado derecho */
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: -54px; /* distancia desde el borde derecho */
    top: 15%;
    transform: translateY(-50%); /* centrar verticalmente */
    color: #000;
    font-size: 14px;
    background: none !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2; /* que quede encima del texto */
}

/* Quitar borde de fondo gris */
.select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
    height: 25px;
}

.btn-eliminar-evidencia {
    font-size: 9px;
    padding: 0.15rem 0.4rem;
    line-height: 1;
}
/*Ancho de los boton guardar*/
.btn-guardar {
    width: 300px;
}

#tablaItems td,
#tablaItems th {
  padding: 0px 6px;   /* reduce espacio interno */
  line-height: 0.8;   /* compacta altura */
  height: 20px !important;       /* fuerza un alto menor */
  vertical-align: middle; /* centra contenido */
}

.semaforo {
    font-weight: bold;
}

.semaforo.vigente {
    color: #28a745 !important; /* verde */
}

.semaforo.por-vencer {
    color: #fd7e14 !important; /* naranja */
}

.semaforo.vencido {
    color: #dc3545 !important; /* rojo */
}

.semaforo.neutro {
    color: #6c757d !important; /* gris */
}

/* Ocultar todo por defecto */
.col-oculta {
    display: none;
}

/* Contenedor centrado */
.tabla-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 15px;
  text-align: center;
}

.tabla-scroll {
  width: 100%;
  overflow-x: auto;   /* 🔹 Scroll horizontal si se desborda */
  -webkit-overflow-scrolling: touch; /* 🔹 Mejor experiencia móvil */
}

/* Tabla base */
.tabla-campos {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
}

.tabla-campos th, .tabla-campos td {
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.tabla-campos th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

/* Inputs */
.input-texto, .input-numero, .input-general, .select-lista {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.input-texto:focus, 
.input-numero:focus, 
.input-general:focus, 
.select-lista:focus {
  border-color: #007bff;
}

 Responsive 
@media (max-width: 768px) {
  .tabla-campos thead { display: none; }
  .tabla-campos, .tabla-campos tbody, .tabla-campos tr, .tabla-campos td {
    display: block;
    width: 100% !important;
  }
  .tabla-campos tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .tabla-campos td {
    text-align: left;
    padding: 10px 8px;
    position: relative;
    border: none;
    white-space: normal;
  }
  .tabla-campos td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}


/* Botón eliminar circular (aplica a preview y guardado) */
.btn-eliminar-preview,
.btn-eliminar-evidencia {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    border: none;
    background: #dc3545;   /* rojo Bootstrap */
    color: white;
    font-size: 11px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.btn-eliminar-preview:hover,
.btn-eliminar-evidencia:hover {
    background: #a71d2a;   /* rojo oscuro al pasar mouse */
}

.chk-personalizado {
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 🔹 Inputs fuera de rango */
input.fuera-rango {
    border-color: red !important;
    background-color: #ffe6e6;
}

/* 🔹 Mensaje de rango */
.mensaje-rango {
    color: red;
    font-size: 12px;
    margin-top: 2px;
}

/* 🔹 Ajustes para tarjetas */
.tarjeta-campo {
    position: relative;
}

/* 🔹 Ajuste para tabla */
.tabla-campos td {
    position: relative;
}

/* 🔹 Opcional: animación ligera al detectar fuera de rango */
input.fuera-rango {
    transition: border-color 0.2s, background-color 0.2s;
}

/* ===== LOGIN RESPONSIVE ===== */
@media (max-width: 768px) {

  .container {
    max-width: 100%;
    padding: 15px;
  }

  .logo {
    max-width: 160px;
  }

  form {
    width: 100%;
  }

  form input,
  button[type="submit"] {
    width: 100% !important;
    max-width: 100%;
  }

  h1.index {
    font-size: 20px;
  }
}
