/* Estilos generales */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

 Botones 
.btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius:25px;
}

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    color: #fff;
    border-radius:25px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/*.btn-danger:hover {*/
/*    background-color: #b52a36;*/
/*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/
/*}*/

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #212529;
    border-radius:25px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-warning:hover {
    background-color: #e0a800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-info {
    background-color: #17a2b8;
    border: none;
    color: #fff;
    border-radius:25px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-info:hover {
    background-color: #138496;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-success {
    background-color: #28a745;
    border: none;
    color: #fff;
    border-radius: 25px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-success:hover {
    background-color: #28a745;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Cartas */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: #212529;
    margin-bottom: 20px;
    
}

.card-header {
    font-weight: bold;
}

/* Tablas */
.table {
    border-collapse: collapse;
    width: 100%;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:hover {
    background-color: #e9ecef;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode #card-tabla {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


.dark-mode .card-header {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .btn-primary {
    background-color: #375a7f;
}

.dark-mode .btn-primary:hover {
    background-color: #2b4664;
}

.dark-mode .btn-danger {
    background-color: #a93226;
}

.dark-mode .btn-danger:hover {
    background-color: #87231e;
}

.dark-mode .btn-warning {
    background-color: #d39e00;
    color: #000;
}

.dark-mode .btn-warning:hover {
    background-color: #b38600;
}

.dark-mode .btn-info {
    background-color: #117a8b;
}

.dark-mode .btn-info:hover {
    background-color: #0d5c70;
}

.dark-mode .table {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2a2a2a;
}

.dark-mode .table-striped tbody tr:hover {
    background-color: #343a40;
}

.dark-mode .alert {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .alert-success {
    background-color: #1d4122;
    color: #b5f0b5;
}

.dark-mode .alert-danger {
    background-color: #441f1f;
    color: #f5b7b7;
}

.dark-mode .alert-warning {
    background-color: #4f4224;
    color: #ffd700;
}

.dark-mode .alert-info {
    background-color: #1d3c4e;
    color: #a9d8e5;
}

/* Evitar cambios en dark mode */
@media (prefers-color-scheme: dark) {
  .btn-taxi,
  .btn-joinup,
  .btn-freenow,
  .btn-cabify,
  .btn-uber,
  .btn-bolt,
  .btn-otro {
    filter: none !important;
    background-clip: padding-box;
  }
}

.btn-taxi {
  position: relative; /* Necesario para que el pseudo-elemento ::before se posicione en relación al botón */
  display: inline-block;
  padding: 5px 15px; /* Reducción del tamaño del botón */
  font-size: 14px;
  font-weight: bold;
  color: red;
  background: #fff; /* Fondo principal del botón */
  border: 1px solid blue;
  border-radius: 5px;
  overflow: hidden; /* Esconde el pseudo-elemento que sale del área del botón */
  cursor: pointer;
  transition: background 0.3s ease; /* Efecto suave al pasar el cursor */
}

.btn-taxi:hover {
  background: #89aeea; /* Cambio de color al pasar el cursor */
  color: red;
}

.btn-taxi::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Comienza fuera del lado izquierdo del botón */
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* Una capa blanca semitransparente */
  transform: skewX(-45deg); /* Inclinación del pseudo-elemento */
  transition: left 0.5s ease; /* Efecto suave de deslizamiento */
}

.btn-taxi:hover::before {
  left: 100%; /* El pseudo-elemento se desliza hacia el lado derecho */
}


/* Botón Cabify */
.btn-cabify {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: #b19cd9; /* Texto lila/morado */
  background-color: #001f54; /* Azul marino */
  border: 2px solid #b19cd9;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-cabify:hover {
  background-color: #2a3b8f; /* Un azul un poco más claro al pasar el mouse */
  color: #ffffff;
}

.btn-cabify::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* Capa blanca semitransparente */
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-cabify:hover::before {
  left: 100%;
}
/* Botón Otros */
.btn-otros {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: white; /* Texto lila/morado */
  background-color: #485782; /* Azul marino */
  border: 2px solid #b19cd9;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-otros:hover {
  background-color: #2a3b8f; /* Un azul un poco más claro al pasar el mouse */
  color: #ffffff;
}

.btn-otros::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* Capa blanca semitransparente */
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-otros:hover::before {
  left: 100%;
}


/* Botón Joinup */
.btn-bolt {
  position: relative;
  display: inline-block;
  padding: 5px 15px; /* Reducción del tamaño del botón */
  font-size: 14px; /* Fuente más pequeña */
  font-weight: bold;
  color: white;
  background-color: green;
  border: 2px solid #5dc37a;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-bolt:hover {
  background-color: #5dc37a;
  color: #fff;
}

.btn-bolt::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #5dc37a;
  transform: skewX(-45deg);  transition: left 0.5s ease;
}

.btn-bolt:hover::before {
  left: 100%;
}

/* Botón FreeNow */
.btn-freenow {
  position: relative;
  display: inline-block;
  padding: 5px 15px; /* Reducción del tamaño del botón */
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #800000;
  border: 2px solid #800000;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-freenow:hover {
  background-color: white;
  color: #800000;
}

.btn-freenow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
  
}

.btn-freenow:hover::before {
  left: 100%;
}

/* Botón Otro */
.btn-uber {
  position: relative;
  display: inline-block;
  padding: 5px 15px; /* Reducción del tamaño del botón */
  font-size: 13px;
  font-weight: bold;
  color: white;
  background-color: black;
  border: 2px solid #888e88;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-uber:hover {
  background-color: #c3c6ca;
  border-color: black;
}

.btn-uber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-uber:hover::before {
  left: 100%;
}

/* Botón estilo Imbric */
.btn-imbric {
  position: relative;
  display: inline-block;
  padding: 5px 15px; /* Tamaño del botón */
  font-size: 14px;
  font-weight: bold;
  background: white;
  border: 2px solid #5dc37a;
  border-radius: 5px; /* Bordes redondeados */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-imbric {
  background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF); /* Colores degradados del logo */
  -webkit-background-clip: text; /* Aplica el degradado al texto */
  -webkit-text-fill-color: transparent; /* Hace que solo el degradado sea visible */
}

.btn-imbric:hover {
  background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF); /* Mantener el degradado en el fondo */
  -webkit-background-clip: border-box; /* Degradado visible en el fondo */
  -webkit-text-fill-color: white; /* Texto en blanco para contraste */
  color: white; /* Respaldo para navegadores */
  border: 2px solid #33C4FF; /* Borde azul */
}

.btn-imbric:focus,
.btn-imbric:active {
  background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF); /* Mantener el degradado */
  -webkit-background-clip: border-box; /* Asegura que el fondo sea visible */
  -webkit-text-fill-color: white; /* Texto blanco */
  color: white; /* Respaldo para navegadores */
  outline: none; /* Elimina el borde de enfoque predeterminado */
  border: 2px solid #FF6F61; /* Borde rojo anaranjado */
}

.btn-imbric:focus:not(:focus-visible) {
  outline: none;
}

.btn-imbric:focus-visible {
  outline: none; /* Garantiza que el botón pierda el enfoque visible */
}

/* Solución para evitar que el botón quede seleccionado */
.btn-imbric:focus:active {
  background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF); /* Volver al degradado */
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: white;
  color: white;
  border: 2px solid #33C4FF; /* Restaurar el borde original */
}




/*DATA TABLES*/


 /* Estilo para los botones de paginación */
   body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 5px 10px;
        margin: 2px;
        background-color: #71726d; /* Color de fondo */
        color: #edeeec; /* Color del texto */
        border: 1px solid #ffffff;
        border-radius: 5px;
        cursor: pointer;
    }

    body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #c5c3c6; /* Color al pasar el cursor */
        border-color: #0056b3;
    }

    body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #71726d; /* Color del botón activo */
        border-color: #28a745;
        
    }

    /* Estilo para el texto de información */
    body.dark-mode .dataTables_wrapper .dataTables_info {
        font-size: 20px;
        color: #c5c3c6;
    }

    /* Estilo para el selector de registros por página esto es el numero de registros que se ven (5) */
    body.dark-mode .dataTables_wrapper .dataTables_length select {
        border: 1px solid #ced4da;
        border-radius: 5px;
        padding: 2px;
    }
    
    body.dark-mode .dataTables_wrapper  label {
        color: #c5c3c6;
    }
    
    /* Inputs, selects y textareas */
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background-color: #333 !important;
    color: #d3d3d3 !important; /* Gris claro */
    border-color: #767575 !important;
}

body.light-mode input, body.light-mode select, body.light-mode textarea {
    background-color: #fff !important;
    color: #000 !important; /* Negro */
    border-color: #ccc !important;
}

/* Footer */
body.dark-mode footer {
    background-color: #1e1e1e !important;
    color: #d3d3d3 !important; /* Gris claro */
}

body.light-mode footer {
    background-color: #f8f9fa !important;
    color: #000000 !important; /* Negro */
}

body.dark-mode .card {
    margin:2px;
    border-color: #4a1466 !important; /* Borde morado más oscuro */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1), 0 8px 16px rgba(255, 255, 255, 0.2) !important;
}

/* Botón Gasolina */
.btn-gasolina {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #b22222; /* Rojo */
  border: 2px solid #b22222;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-gasolina:hover {
  background-color: white;
  color: #b22222; /* Rojo invertido */
}

.btn-gasolina::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-gasolina:hover::before {
  left: 100%;
}

/* Botón Diesel */
.btn-diesel {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #b22222; /* Rojo oscuro */
  border: 2px solid #b22222;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-diesel:hover {
  background-color: white;
  color: #b22222; /* Rojo oscuro invertido */
}

.btn-diesel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-diesel:hover::before {
  left: 100%;
}

/* Botón glp */
.btn-glp {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #b22222; /* Rojo fuego */
  border: 2px solid #b22222;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-glp:hover {
  background-color: white;
  color: #b22222; /* Rojo fuego invertido */
}

.btn-glp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.btn-glp:hover::before {
  left: 100%;
}
/* Botón guardar */
#btn-guardar {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #3e9834; /* Rojo fuego */
  border: 2px solid #3e9834;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#btn-guardar:hover {
  background-color: white;
  color: #3e9834; /* Rojo fuego invertido */
}

#btn-guardar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

#btn-guardar:hover::before {
  left: 100%;
}


/* Botón activo (invertir colores) */
.btn-active {
  color: white !important; /* Cambiar el texto a blanco */
  background-color: currentColor !important; /* Invertir el color del fondo */
  border: 2px solid currentColor !important; /* Borde coincide con el color principal */
}

/* Botón taxi (invertido) */
.btn-taxi.btn-active {
  background-color: blue !important; /* Fondo azul */
  color: white !important; /* Texto blanco */
}

/* Botón Joinup (invertido) */
.btn-bolt.btn-active {
  background-color: white !important; /* Fondo verde */
  color: green !important; /* Texto blanco */
  border: #800000;
}

/* Botón FreeNow (invertido) */
.btn-freenow.btn-active {
  background-color: white !important; /* Fondo rojo oscuro */
  color: #800000 !important; /* Texto blanco */
}

/* Botón Otro (invertido) */
.btn-uber.btn-active {
  background-color: white !important; /* Fondo gris claro */
  color: black !important; /* Texto negro */
}
.btn-cabify.btn-active {
  background-color: #b19cd9 !important; /* Fondo gris claro */
  color: black !important; /* Texto negro */
}
.btn-otros.btn-active {
  background-color: white !important; /* Fondo gris claro */
  color: #485782 !important; /* Texto negro */
}

/* Botón Imbric (invertido) */
.btn-imbric.btn-active {
  background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: #dc7a7a !important;
  border: 2px solid #33C4FF !important;
}

.info-imbric{
    background: linear-gradient(90deg, #FF6F61, #A5D655, #33C4FF);
    
}
.info-freenow{
    background: #a03030;
    
}
.info-taxi{
    background: #403a9b;
    color: black ;
   
    
}
.info-uber{
    background: black;
    font-size: 10px;
   
}
.info-app{
    background: #977bc7;
}
.info-cabify{
    background: #252970 !important;
    color: #b19cd9 !important;
}
.info-bolt{
    background: green !important;
    color: white !important;
}
.info-otros{
    background: #485782 !important;
    color: white !important;
    border: 1.5px solid #485782;
}


#notificaciones div {
    padding: 15px;
    margin: 5px 0;
    background-color: rgba(255, 69, 0, 0.9);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}




