body {
    background: #e7ecf4 url('https://wallpapercave.com/wp/wp9307169.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
}

.modal-backdrop {
  display: none !important;
}

/* WIDGET DEL CLIMA */
.weather-drag-widget-vertical {
    display: none;
    position: fixed;
    top: 100px;
    right: 40px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    padding: 12px 10px 10px 10px;
    min-width: 230px;   /* MÁS ANCHO */
    max-width: 260px;   /* MÁS ANCHO */
    font-size: 12px;
    font-family: 'Segoe UI', Arial, sans-serif;
    border: 1.2px solid rgba(205, 216, 230, 0.07);
    backdrop-filter: blur(11px) saturate(120%);
    -webkit-backdrop-filter: blur(11px) saturate(120%);
    user-select: none;
    cursor: grab;
    transition: box-shadow 0.18s;
    pointer-events: auto;
    overflow: visible;
}

.weather-drag-widget-vertical:active {
    cursor: grabbing;
    box-shadow: 0 6px 24px #ffffff;
}

.weather-forecast-hours-vertical {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    overflow: visible; /* Nunca muestra scrolls */
    max-height: none;
}

.weather-hour-v {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    background: rgba(255, 253, 253, 0.32);
    backdrop-filter: blur(11px) saturate(120%);
    -webkit-backdrop-filter: blur(11px) saturate(120%);
    border-radius: 7px;
    padding: 3px 6px 2.5px 6px;
    min-width: 150px;
    font-size: 11.5px;
    box-shadow: 0 1px 3px #b2c6e508;
}

.weather-hour-v .icon { font-size: 1.08em; color: #2c2c2c; width: 22px; text-align: center;}
.weather-hour-v .hour { font-size: 0.95em; color: #001c3c; font-weight: 500; min-width: 34px;}
.weather-hour-v .temp { font-weight: 600; color: #0071bf; min-width: 30px;}
.weather-hour-v .desc { font-size: .92em; color: #3d3c3c; flex: 1 1 auto; white-space:nowrap;}



/* scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
   border: 10px solid transparent;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(255, 255, 255, 0.3);
}



/* =============================
   ESTILOS GENERALES PARA DATATABLES
   ============================= */

/* 1) Tamaño de fuente general para todas las tablas DataTables */
table.dataTable,
table.dataTable th,
table.dataTable td {
  font-size: 0.80rem;        /* letra más pequeña (≈13.6px si 1rem=16px) */
  line-height: 1.2;          /* algo más compacto verticalmente */
}

/* 2) Reducir padding de celdas (th/td) para compactar filas */
table.dataTable th,
table.dataTable td {
  padding: 0.4rem 0.6rem;     /* ajusta según necesites (valores entre 0.3rem y 0.6rem suelen funcionar bien) */
  white-space: nowrap;       /* previene saltos de línea no deseados */
}

/* 3) Ajustar padding y tamaño de letra en encabezado */
table.dataTable thead th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #f8f9fa; /* color de fondo ligeramente gris (Bootstrap: bg-light) */
  border-bottom: 1px solid #dee2e6;
  font-weight: 500;          /* un poco más destacado, pero no muy grande */
}

/* 4) Estado de “hover” en fila para destacarla */
table.dataTable tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05); /* un azul muy tenue al pasar el mouse */
}

/* 5) Ajustar estilo de paginación, filtro, info y length (controles que DataTables inyecta) */
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.8rem;        /* letra aún más pequeña para los controles */
  color: #495057;           /* gris oscuro similar a text-secondary */
}

/* 6) Margen y padding de los inputs de búsqueda */
.dataTables_wrapper .dataTables_filter input {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  border: 1px solid #ced4da; /* mismo estilo de inputs de Bootstrap */
  margin-left: 0.3rem;
}

/* 7) Ajustar ancho de select “mostrar X entradas” */
.dataTables_wrapper .dataTables_length select {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  border: 1px solid #ced4da;
  margin-left: 0.3rem;
}

/* 8) Espaciado entre los controles de paginación (botones Prev/Next y números) */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.2rem 0.5rem !important;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

/* 9) Iconos de paginación (siguiente/anterior) más chicos */
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous {
  font-size: 0.8rem;
}

/* 10) Ajustar estilo de ordenamiento (flechas de orden) para que no ocupen tanto espacio */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  font-size: 0.7rem;        /* flechitas más pequeñas */
}

/* 11) Hace que la tabla pueda “encajar” mejor en pantallas estrechas (opcional) */
table.dataTable {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
  /* Opcional: scroll horizontal si se hace muy angosta */
  /* overflow-x: auto; */
}

/* 12) Si usas filas con “striped” de Bootstrap, ajusta un poco el color */
table.dataTable.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(248, 249, 250, 0.5); /* un gris claro semitransparente */
}

/* ======================================
   FIN DE ESTILOS GENERALES PARA DATATABLES
   ====================================== */

/* =================================================================
   VARIABLES DE COLOR (AJUSTA SEGÚN TU PALETA CORPORATIVA SI LO DESEAS)
   ================================================================= */
:root {
  --color-primary:   #0a66c2;
  --color-info:      #0277bd;
  --color-warning: #ffc076;
  --color-success: rgba(0, 143, 11, 0.68);
  --color-danger:    #c62828;
  --color-dark:      #424242;
  --color-secondary: rgba(241, 241, 241, 0.78);
  --color-light-bg:  rgba(245, 245, 245, 0.9);
  --color-light-text:#333;

  /* Definimos los canales RGB para poder usar en rgba() */
  --color-primary-rgb:   10, 102, 194;
  --color-info-rgb:       3, 169, 244;
  --color-warning-rgb:   255, 193,   7;
  --color-success-rgb:     76, 175,  80;
  --color-danger-rgb:    244,  67,  54;
  --color-dark-rgb:        66,  66,  66;
  --color-secondary-rgb:   66,  66,  66;
}

/* ==============================================
   1) ESTILO BASE PARA TODOS LOS BOTONES .btn
   ============================================== */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s ease,
              color 0.15s ease,
              box-shadow 0.2s ease,
              transform 0.1s ease,
              text-shadow 0.2s ease !important;
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Hover y active comunes */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   2) ESTILO PARA BOTONES CON FONDO (no outline) .btn-*
   ============================================================ */

/* 2.1. .btn-primary */
.btn-primary {
  background-color: rgba(var(--color-primary-rgb), 0.15) !important;
  color: var(--color-primary) !important;
}
.btn-primary:hover {
  /* 1) Fondo sólido del color primario */
  background-color: var(--color-primary) !important;
  /* 2) Texto en blanco */
  color: #fff !important;
  /* 3) Glow neón intenso alrededor del botón */
  box-shadow:
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary),
    0 0 30px rgba(var(--color-primary-rgb), 0.7),
    inset 0 0 10px rgba(var(--color-primary-rgb), 0.5);
  /* 4) Glow neón en el texto */
  text-shadow:
    0 0 5px #fff,
    0 0 10px rgba(var(--color-primary-rgb), 0.8);
}
.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb), 0.25) !important;
}
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: rgba(var(--color-primary-rgb), 0.08) !important;
  color: rgba(var(--color-primary-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.2. .btn-info */
.btn-info {
  background-color: rgba(var(--color-info-rgb), 0.15) !important;
  color: var(--color-info) !important;
}
.btn-info:hover {
  background-color: var(--color-info) !important;
  color: #fff !important;
  box-shadow:
    0 0 10px var(--color-info),
    0 0 20px var(--color-info),
    0 0 30px rgba(var(--color-info-rgb), 0.7),
    inset 0 0 10px rgba(var(--color-info-rgb), 0.5);
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.74),
    0 0 10px rgba(var(--color-info-rgb), 0.8);
}
.btn-info:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-info-rgb), 0.25) !important;
}
.btn-info:disabled,
.btn-info.disabled {
  background-color: rgba(var(--color-info-rgb), 0.08) !important;
  color: rgba(var(--color-info-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.3. .btn-warning */
.btn-warning {
  background-color: rgba(var(--color-warning-rgb), 0.15) !important;
  color: var(--color-warning) !important;
}
.btn-warning:hover {
  background-color: var(--color-warning) !important;
  color: #333 !important;
  box-shadow:
    0 0 10px var(--color-warning),
    0 0 20px var(--color-warning),
    0 0 30px rgba(var(--color-warning-rgb), 0.7),
    inset 0 0 10px rgba(var(--color-warning-rgb), 0.5);
  text-shadow:
    0 0 5px #fff,
    0 0 10px rgba(var(--color-warning-rgb), 0.8);
}
.btn-warning:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-warning-rgb), 0.25) !important;
}
.btn-warning:disabled,
.btn-warning.disabled {
  background-color: rgba(var(--color-warning-rgb), 0.08) !important;
  color: rgba(var(--color-warning-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.4. .btn-success */
.btn-success {
  background-color: rgba(var(--color-success-rgb), 0.50) !important;
  color: var(--color-success) !important;
}
.btn-success:hover {
  background-color: var(--color-success) !important;
  color: #fff !important;
}
.btn-success:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-success-rgb), 0.25) !important;
}
.btn-success:disabled,
.btn-success.disabled {
  background-color: rgba(var(--color-success-rgb), 0.08) !important;
  color: rgba(var(--color-success-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.5. .btn-danger */
.btn-danger {
  background-color: rgba(var(--color-danger-rgb), 0.50) !important;
  color: var(--color-danger) !important;
}
.btn-danger:hover {
  background-color: var(--color-danger) !important;
  color: #fff !important;
  box-shadow:
    0 0 10px var(--color-danger),
    0 0 20px var(--color-danger),
    0 0 30px rgba(var(--color-danger-rgb), 0.7),
    inset 0 0 10px rgba(var(--color-danger-rgb), 0.5);
  text-shadow:
    0 0 5px #fff,
    0 0 10px rgba(var(--color-danger-rgb), 0.8);
}
.btn-danger:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-danger-rgb), 0.25) !important;
}
.btn-danger:disabled,
.btn-danger.disabled {
  background-color: rgba(var(--color-danger-rgb), 0.08) !important;
  color: rgba(var(--color-danger-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.6. .btn-dark */
.btn-dark {
  background-color: rgba(var(--color-dark-rgb), 0.30) !important;
  color: var(--color-dark) !important;
}
.btn-dark:hover {
  background-color: var(--color-dark) !important;
  color: #fff !important;
  box-shadow:
    0 0 10px var(--color-dark),
    0 0 20px var(--color-dark),
    0 0 30px rgba(var(--color-dark-rgb), 0.7),
    inset 0 0 10px rgba(var(--color-dark-rgb), 0.5);
  text-shadow:
    0 0 5px #fff,
    0 0 10px rgba(var(--color-dark-rgb), 0.8);
}
.btn-dark:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-dark-rgb), 0.25) !important;
}
.btn-dark:disabled,
.btn-dark.disabled {
  background-color: rgba(var(--color-dark-rgb), 0.08) !important;
  color: rgba(var(--color-dark-rgb), 0.6) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* 2.8. .btn-light */
.btn-light {
  background-color: var(--color-light-bg) !important;
  color: var(--color-light-text) !important;
}
.btn-light:hover {
  background-color: rgba(235, 235, 235, 0.95) !important;
  color: var(--color-light-text) !important;
  box-shadow:
    0 0 10px rgba(245, 245, 245, 0.8),
    0 0 20px rgba(245, 245, 245, 0.6),
    inset 0 0 10px rgba(245, 245, 245, 0.5);
  text-shadow:
    0 0 5px #fff,
    0 0 10px rgba(245, 245, 245, 0.8);
}
.btn-light:focus {
  box-shadow: 0 0 0 0.25rem rgba(235, 235, 235, 0.5) !important;
}
.btn-light:disabled,
.btn-light.disabled {
  background-color: rgba(255, 255, 255, 0.6) !important;
  color: rgba(80, 80, 80, 0.5) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* (Opcional) Efecto “glow” para botones “Agregar más” */
.btn-success-add {
  position: relative;
  overflow: hidden;
  background: rgba(32, 255, 196, 0.66);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.16);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-radius: 10px;
  font-size: 15px;
}

.btn-success-add:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      60deg,
      #3eb4fd,
      #ffb2ee,
      #fcff5a,
      #46ffff,
      #e88aff,
      #5fdbfa,
      #02dbac
    );
  background-size: 900%;
  border-radius: 10px;
  filter: blur(8px);
  animation: glowing 30s linear infinite;
}

@keyframes glowing {
  0%   { background-position: 0 0;   }
  50%  { background-position: 400% 0; }
  100% { background-position: 0 0;   }
}

