/* ---------------------- */
/* Variables Globales    */
/* ---------------------- */
:root {
  /* Colores personalizados */
  --color-primario: #232523;
  --contraste-primario: #EAE8E2;
  --texto-primario: #232523;
  --superficie-one: #ffffff;
  --boton-secundario: #2f312f;
  --boton-secundario-borde: #373a37;
  --azul-borde: #60a5fa;
  --azul-fondo: #3b82f6;
  --azul-activo: #2563eb;
  --gris-borde: #d1d5db;
  --gris-texto: #4b5563;
}

/* ---------------------- */
/* Fuentes               */
/* ---------------------- */
@font-face {
  font-family: 'Italian Plate No 2 Md';
  src: url('https://s3.amazonaws.com/appforest_uf/f1653263864423x369398250181703230/ItalianPlateNoTwo-Md.otf');
}
@font-face {
  font-family: 'Italian Plate No 1 Extrabold';
  src: url('https://s3.amazonaws.com/appforest_uf/f1653263891442x766837804069760800/ItalianPlateNo1-Extrabold.otf');
}
@font-face {
  font-family: 'Sailec Regular';
  src: url('https://s3.amazonaws.com/appforest_uf/f1653263830305x727370285149920600/Sailec-Regular.otf');
}

* {
  font-family: 'Sailec Regular';
  
}

.font-sailer {
  font-family: 'Sailec Regular', sans-serif;
}
.font-italian-plate {
  font-family: 'Italian Plate No 1 Extrabold', sans-serif;
  text-transform: uppercase;
}

/* ---------------------- */
/* Generales             */
/* ---------------------- */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ---------------------- */
/* Clases Globales       */
/* ---------------------- */

/* Botones */
.button_secondary {
  background-color: var(--boton-secundario) !important;
  color: white !important;
  border: 1px solid var(--boton-secundario-borde) !important;
  padding: 0.25rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}
.button_secondary:hover {
  background-color: var(--boton-secundario) !important;
}

/* Labels e Inputs */
.input-label {
  color: var(--texto-primario);
  font-weight: 600;
}
.input-field {
  border: 1px solid var(--gris-borde);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}
.input-field:focus {
  box-shadow: 0 0 0 2px var(--azul-borde);
  border-color: var(--azul-borde);
}
/*SCROL*/
/* Scrollbar personalizado al estilo jConfirm */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3); /* Blanco translúcido */
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
}


/* ---------------------- */
/* JConfirm              */
/* ---------------------- */
.jconfirm .jconfirm-overlay {
  z-index: 999 !important;
}
.jconfirm {
  z-index: 1000 !important;
  padding: 0 !important;
}
.custom-popup {
  z-index: 9999 !important;
}
.jconfirm .jconfirm-box.custom-width {
  width: 900px;
  max-width: 100%;
}
@media (max-width: 900px) {
  .jconfirm-box {
    width: auto !important;
    max-width: calc(100% - 6%) !important;
    margin: 0 3% !important;
    left: 0 !important;
    border-radius: 0 !important;
  }
  .jconfirm .jconfirm-holder {
    width: 100%;
  }
}

/* ---------------------- */
/* DataTables - General   */
/* ---------------------- */
#dataTables {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(167, 45, 45, 0.1);
    background: #fff;
}

#dataTables thead {
    background: #f9fafb; /* bg-gray-50 */
    color: #6b7280;      /* text-gray-500 */
    text-align: left;
    font-family: 'Italian Plate No 1 Extrabold', sans-serif;
    text-transform: uppercase;
}

#dataTables thead .dt-column-title {
    font-family: 'Italian Plate No 1 Extrabold', sans-serif;
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}

/* Filas cuerpo */
#dataTables tbody {
    background: #ffffff; /* bg-white */
}

#dataTables tbody tr {
    border-bottom: 1px solid #e5e7eb; /* divide-y divide-gray-200 */
    transition: background 0.2s ease, color 0.2s ease;
}

#dataTables tbody tr:hover {
    background: #f9fafb; /* hover:bg-gray-50 */
    color: #111827;      /* text-gray-900 */
}

/* Celdas */
#dataTables tbody td,
#dataTables th {
    padding: 10px 24px;
    color: #374151;
    text-align: left;
    font-size: 1rem; /* text-base */
    max-width: 150px; /* Trunca texto largo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alineación */
#dataTables th.text-right,
#dataTables td.text-right {
    text-align: right;
}

#dataTables th.text-left,
#dataTables td.text-left {
    text-align: left;
}

/* Tabla responsive - scroll horizontal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    min-width: 600px; /* Ajusta según columnas */
}

/* ---------------------- */
/* Animaciones            */
/* ---------------------- */
@layer utilities {
    @keyframes slide-bar {
        0%, 100% { left: 0%; }
        50% { left: 100%; transform: translateX(-100%); }
    }

    .animate-slide {
        animation: slide-bar 2s ease-in-out infinite;
    }
}

.fade-in {
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scaleY(0.95); }
    to { opacity: 1; transform: scaleY(1); }
}

/* ---------------------- */
/* Responsive             */
/* ---------------------- */
@media (max-width: 768px) {
    .ocultar-en-pequeno {
        display: none;
    }

    #dataTables td, #dataTables th {
        padding: 6px 12px; /* reduce padding */
        font-size: 0.875rem; /* 14px */
    }
}

@media (max-width: 600px) {
    .modal_notificaciones {
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }
}

@media (max-width: 430px) {
    #alerta_button {
        display: none;
    }
    .show-on-mobile {
        display: inline !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 431px) {
    .show-on-mobile {
        display: none !important;
    }
    .hide-on-mobile {
        display: inline !important;
    }
}

/* Mostrar todo el contenido al hacer hover */
#dataTables td:hover {
    white-space: normal;
    overflow: visible;
    background: #f3f4f6;
    position: relative;
    z-index: 1;
}



/* ---------------------- */
/* DataTables - General   */
/* ---------------------- */
#tables {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(167, 45, 45, 0.1);
    background: #fff;
}

#tables thead {
    background: #f9fafb; /* bg-gray-50 */
    color: #6b7280;      /* text-gray-500 */
    text-align: left;
    font-family: 'Italian Plate No 1 Extrabold', sans-serif;
    text-transform: uppercase;
}

#tables thead .dt-column-title {
    font-family: 'Italian Plate No 1 Extrabold', sans-serif;
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}

/* Filas cuerpo */
#tables tbody {
    background: #ffffff; /* bg-white */
}

#tables tbody tr {
    border-bottom: 1px solid #e5e7eb; /* divide-y divide-gray-200 */
    transition: background 0.2s ease, color 0.2s ease;
}

#tables tbody tr:hover {
    background: #f9fafb; /* hover:bg-gray-50 */
    color: #111827;      /* text-gray-900 */
}

/* Celdas */
#tables tbody td,
#tables th {
    padding: 10px 24px;
    color: #374151;
    text-align: left;
    font-size: 1rem; /* text-base */
    max-width: 150px; /* Trunca texto largo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alineación */
#tables th.text-right,
#tables td.text-right {
    text-align: right;
}

#tables th.text-left,
#tables td.text-left {
    text-align: left;
}

/* Tabla responsive - scroll horizontal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    min-width: 600px; /* Ajusta según columnas */
}

/* ---------------------- */
/* Animaciones            */
/* ---------------------- */
@layer utilities {
    @keyframes slide-bar {
        0%, 100% { left: 0%; }
        50% { left: 100%; transform: translateX(-100%); }
    }

    .animate-slide {
        animation: slide-bar 2s ease-in-out infinite;
    }
}

.fade-in {
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scaleY(0.95); }
    to { opacity: 1; transform: scaleY(1); }
}

/* ---------------------- */
/* Responsive             */
/* ---------------------- */
@media (max-width: 768px) {
    .ocultar-en-pequeno {
        display: none;
    }

    #tables td, #tables th {
        padding: 6px 12px; /* reduce padding */
        font-size: 0.875rem; /* 14px */
    }
}

@media (max-width: 600px) {
    .modal_notificaciones {
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }
}

@media (max-width: 430px) {
    #alerta_button {
        display: none;
    }
    .show-on-mobile {
        display: inline !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 431px) {
    .show-on-mobile {
        display: none !important;
    }
    .hide-on-mobile {
        display: inline !important;
    }
}

/* Mostrar todo el contenido al hacer hover */
#tables td:hover {
    white-space: normal;
    overflow: visible;
    background: #f3f4f6;
    position: relative;
    z-index: 1;
}