/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNzcyIsInNvdXJjZXMiOlsiY3VzdG9tLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */

/*# sourceMappingURL=custom.css.map */
#previewImagen {
  border-radius: 50%;
  position: absolute;
  float: inline-start;
}
.login-page {
  /* Establece una imagen de fondo por defecto */
  background-image: url("../img/fondo-pc.jpg");

  /* Establece un degradado lineal como fondo */
  background: linear-gradient(
      to bottom,
      rgba(212, 214, 211, 0.8),
      rgba(0, 35, 51, 0.8)
    ),
    url("../img/fondo-pc.jpg");
  /* Establece una altura mínima para que el contenido se muestre correctamente */
  min-height: 100vh;
  margin: 0;
  padding: 0 20px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;

  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
}

.login-form {
  background-color: rgba(255, 255, 255, 0.9);
  /* Fondo del formulario con opacidad */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  /* Sombra para dar profundidad al formulario */
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el resto del contenido del formulario */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-form button {
  background-color: #353c48;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #1b1c1f;
}

.logo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: url("../img/logo.png") no-repeat center;
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
}

.tagline {
  text-align: center;
  color: #777;
}

/* Estilos para el logo de Track-CRM */
.logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(32, 137, 126, 0.3));
}

.sidebar-brand img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Estilos para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
  .login-page {
    /* Cambia la imagen de fondo para pantallas pequeñas */
    background: linear-gradient(
      to bottom,
      rgba(212, 214, 211, 0.8),
      rgba(0, 35, 51, 0.8)
    );
    background-image: url("../img/fondo-celular.jpg");
    min-height: 100vh;
    margin: 0;
    padding: 0 20px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;

    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
  }
}

/* ========================= */
/*  Responsive app overrides  */
/* ========================= */

/* Ajustes generales móviles/tablet */
@media (max-width: 991.98px) {
  .main-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 1040;
    transform: translateX(-260px);
    transition: transform 0.25s ease;
  }

  /* Mostrar sidebar cuando el toggle del template agrega la clase */
  body.sidebar-show .main-sidebar,
  .main-sidebar.active {
    transform: translateX(0);
  }

  /* Contenido principal ocupa todo el ancho cuando el sidebar está oculto */
  .main-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 0 !important;
  }

  /* Tablas horizontales desplazables */
  .table-responsive,
  .dataTables_wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Evitar que las tablas colapsen demasiado en DataTables */
  table.dataTable {
    min-width: 600px;
  }

  /* Formularios a ancho completo en columnas */
  .form-group .form-control,
  .select2-container--default .select2-selection--single {
    width: 100% !important;
  }

  /* Ajustar cards y secciones */
  .card {
    margin-bottom: 15px;
  }

  /* Navbar ajustes */
  .navbar {
    padding: 10px;
  }

  /* Botones más grandes para touch */
  .btn {
    min-height: 44px;
    padding: 10px 15px;
  }

  /* Modal responsive */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-lg {
    max-width: calc(100% - 20px);
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
  .main-content {
    padding: 15px !important;
  }

  .card-statistic-1 .card-body {
    font-size: 18px;
  }

  table.dataTable {
    min-width: 700px;
  }

  /* Grid ajustes para tablet */
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-lg-2 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Móviles pequeños */
@media (max-width: 575.98px) {
  .main-content {
    padding: 8px !important;
  }

  .section-header h1 {
    font-size: 18px;
  }

  /* Card header con botón - IMPORTANTE para visibilidad del botón */
  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }

  .card-header.d-flex {
    flex-wrap: wrap;
  }

  .card-header h4 {
    font-size: 14px;
    width: 100%;
    margin-bottom: 5px;
  }

  .card-header .btn,
  .card-header button {
    width: 100%;
    justify-content: center;
    font-size: 14px !important;
    padding: 12px 15px !important;
  }

  .card-header .btn-lg {
    font-size: 15px !important;
  }

  .card-statistic-1 .card-body {
    font-size: 16px;
  }

  .card-statistic-1 .card-header h4 {
    font-size: 10px;
  }

  /* Tablas más compactas */
  table.dataTable {
    font-size: 12px;
    min-width: 500px;
  }

  table.dataTable th,
  table.dataTable td {
    padding: 6px 8px;
  }

  /* Botones en móvil */
  .btn {
    font-size: 13px;
    padding: 8px 12px;
  }

  .btn-sm {
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Formularios */
  .form-group label {
    font-size: 13px;
  }

  .form-control {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Breadcrumb oculto en móvil */
  .section-header-breadcrumb {
    display: none;
  }

  /* Grid en móvil - una columna */
  .col-md-2, .col-md-3, .col-md-4, .col-lg-2, .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  /* Cards estadísticas en móvil */
  .card-statistic-1 {
    margin-bottom: 10px;
  }

  .card-statistic-1 .card-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .card-statistic-1 .card-icon i {
    font-size: 18px;
  }

  /* Modal en móvil */
  .modal-body {
    padding: 15px;
  }

  .modal-header, .modal-footer {
    padding: 10px 15px;
  }

  /* Sidebar menú items */
  .sidebar-menu li a {
    padding: 12px 20px;
  }

  /* DataTables paginación */
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Select2 */
  .select2-container .select2-selection--single {
    height: 40px;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    font-size: 14px;
  }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    padding-top: 60px !important;
  }

  .modal-body {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Overlay opcional si el template la usa */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1035;
}

body.sidebar-show .sidebar-overlay {
  display: block;
}

/* Mejoras generales de touch */
@media (hover: none) and (pointer: coarse) {
  /* Dispositivos táctiles */
  .btn, .nav-link, .dropdown-item, a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Inputs más grandes */
  input, select, textarea {
    font-size: 16px !important; /* Evita zoom en iOS */
  }

  /* Scrollbar más visible */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
  }
}

/* Botón flotante para móviles (FAB - Floating Action Button) */
.fab-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .fab-mobile {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6777ef, #3d4db7);
    color: white;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(103, 119, 239, 0.5);
    z-index: 1050;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .fab-mobile:hover,
  .fab-mobile:active {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(103, 119, 239, 0.7);
    color: white;
  }
}

/* Print styles */
@media print {
  .main-sidebar, .navbar, .btn, .dataTables_filter, .dataTables_paginate {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
  }
}
