@import "reset.css";
@import "./fonts.css";
@import "utilidades.css";



/*--------------------------------------------*\
estilos generales
\*--------------------------------------------*/

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-gray-200);
  color: var(--color-neutral-800);
  font-family: var(--font-family-primary);
  font-size: var(--f-size-md);
  line-height: 1.8;
  margin: 0;
  
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secundary-color);
  font-family: "Patria", sans-serif;
  font-weight: 700;
  margin: 0;
}

h3 {
  color: var(--color-neutral-800);
  font-family: "Noto sans", sans-serif;
  font-size: var(--space-lg);
  font-weight: bold;
  margin-bottom: var(--space-md);
}

p {
  margin-top: 0;
}

.container {
  margin: 0 auto;
  max-width: 1240px;
}

.navbar {
  align-items: center;
  background-color: var(--c-guinda-dark);
  display: flex;
  justify-content: space-between;
  padding: var(--sp-xs) var(--sp-md);
}

.navbar-nav {
  display: flex;
  gap: var(--sp-xl);
  list-style: none;
}

.nav-link {
  color: var(--c-white);
  font-size: var(--f-size-md);
  text-decoration: none;
}

.navbar-secundary {
  background-color: var(--c-guinda-light);
  color: var(--c-white);
  font-family: var(--font-family-decorative);
  font-size: var(--f-size-md);
  padding: var(--sp-xs) var(--sp-lg);
  text-transform: uppercase;
}

.hero {
  background-color: var(--c-fondo);
  background-image: url("../img/bg.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: rgba(100, 100, 111, 0.5) 0px 7px 29px 0px;
  color: var(--c-gray-300);
  margin-bottom: 3rem;
  padding: var(--sp-xxxl) 0;
}

.hero-content {
  max-width: 610px;
}

.hero-title {
  color: var(--c-white);
  font-size: 43px;
  margin-bottom: var(--sp-sm);
}

.hero-blockquote {
  border-left: 4px solid var(--c-gray-300);
  color: var(--c-gray-100);
  font-style: italic;
  line-height: 1.8;
  margin: var(--sp-md) 0;
  padding: 0 var(--sp-md);
}

@media screen and (max-width: 768px) {
  .hero {
    background-image: none;
    padding: var(--sp-lg) var(--sp-md);
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-blockquote {
    font-size: 14px;
    padding: var(--sp-xs) var(--sp-sm);
  }
}

.data {
  background-color: var(--c-gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--space-lg) var(--space-md);
}

.tabla {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1240px;

  overflow-x: auto; 
}

.header {
  border-bottom: 1px solid #e9ecef;
  color: var(--c-gray-700);
  font-weight: 700;
  padding: 20px;
  text-align: center;
}

.header a {
  color: #007bff;
  text-decoration: none;
}

.header a:hover {
  text-decoration: underline;
}

.table-container {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

th {
  border-bottom: 2px solid #dee2e6;
  color: var(--c-gray-700);
  cursor: pointer;
  font-size: 700;
  font-weight: 700;
  padding: 12px 15px;
  position: relative;
  text-align: left;
}

th:hover {
  background-color: #e9ecef;
}

th::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #adb5bd;
  content: "";
  height: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

td {
  border-bottom: 1px solid #dee2e6;
  color: var(--c-gray-700);
  padding: 12px 15px;
}

tr:hover {
  background-color: #f8f9fa;
}
 
.pagination {
  align-items: center;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.pagination-left {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 14px;
  gap: 10px;
    justify-content: flex-end;
}

.pagination-select {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  padding: 5px 10px;
}

.pagination-right {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 14px;
  gap: 15px;
}

.pagination-nav {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.pagination-btn {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #495057;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
}

.pagination-btn:hover {
  background-color: #e9ecef;
}

.pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .container {
    margin: 0 10px;
  }

  th,
  td {
    font-size: 12px;
    padding: 8px 10px;
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }
}

/*--------*/
.excel-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; 
}

.checkall-text {
  color: #007BFF  ; 
  font-weight: bold;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #ced4da;
    padding: 8px 12px;              
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    width: 250px;    
    max-width: 100%;
    margin-left: 10px;
}

.dataTables_filter {
    float: right;
    margin-bottom: 10px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 15px; 
     padding-right: 10px;   
}
.dataTables_paginate a {
    display: inline-flex;          
    align-items: center;            
    justify-content: center;        
    min-width: 36px;                
    height: 36px;                   
    padding: 0 10px;              
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-family: inherit;
    line-height: normal;            
    box-sizing: border-box;
    box-shadow: none;
}
.dataTables_paginate a:hover {
    background-color: #e9ecef;
}

.dataTables_length {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: #666;
  padding-left: 10px;   
}

.dataTables_length label {
  margin: 0;              
  font-weight: 500;
}

.dataTables_length select {
  border: 1px solid #ced4da;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: #333;
  width: 70px; 
  cursor: pointer;
}



.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 350px;
    margin: 0 auto;
    margin-top: 80px;
}
.login-container h2 {
    text-align: center;
    font-family: 'Noto sans', sans-serif;
    margin-bottom: 1.5rem;
    color: #333;
}

.linehr {
  width: 90px;
  height: 1px;
  background-color: #FF4C4C;
  border: none;
  margin: 0 auto 30px auto;
  border-radius: 2px;
  opacity: 0.9;
}

.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 14px;
}
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #999;
    background-color: #fff;
    outline: none;
}

.btn {
    width: 40%;
    padding: 0.7rem;
    border: none;
    background-color: #545454;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 300;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #696969;
}

.linehr {
  color: #FF0000;
}

.error-message {
    color: #c0392b;
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
}

.dataTables_paginate .current {
        background-color: #BBBFC2 !important;  
        color: #6b737a !important;         
        border-radius: 4px;
        padding: 5px 10px;
        box-shadow: 0 0 2px rgba(0, 64, 128, 0.3);
        font-weight: bold;
    }

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.custom-modal.show {
  display: flex; 
}

.custom-modal-content {
  background-color: #eeeeee;
  border-radius: 8px;
  overflow: hidden; 
  width: 90%;
  max-width: 800px; /* <-- cambiar el tamaño */

  max-height: 80vh;       
  overflow-y: auto;       
}

.custom-modal-header {
  background-color: #9b2247;
  color: white;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.close-btn:hover {
  color: #ccc;
}

.custom-modal-info {
    padding: 12px 20px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  border-color: #9b2247; 
  outline: none;
  background-color: #fff;
}

input[type="text"]::placeholder {
  color: #aaa;
}

.flatpickr-input {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  width: 100%;
}

.flatpickr-calendar {
  border: 1px solid #9b2247;
  border-radius: 8px;
  font-family: inherit;
}

select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%204%205'%3E%3Cpath%20fill%3D'%239b2247'%20d%3D'M2%200L0%202h4L2%200zM2%205L0%203h4L2%205z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  cursor: pointer;
}

select:focus {
  border-color: #9b2247;
  outline: none;
  background-color: #fff;
}

select option {
  color: #333;
  background-color: #fff;
}

 #seleccionados {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    white-space: pre-line;
  }

  #modalItemStatus {
    font-weight: bold;
    margin-left: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 15px;
  }

  .file-label {
        font-size: 0.8rem;
        font-weight: bold;
        text-transform: uppercase;
        color: #333;
    }

    .file-link {
        color: #007bff;
        text-decoration: none;
        font-size: 0.9rem;
        white-space: nowrap; 
    }

    .file-link:hover {
        text-decoration: underline;
    }

    .file-row {
        margin-bottom: 8px;
        white-space: nowrap; 
    }

    .show { display: block; }
    .modal { display: none; /* modal base styling */ }


     .alinear-derecha {
      text-align: right;
      padding-right: 10px; 
      margin-top: 10px;
      margin-bottom: 20px;
    }
    

.boton-admin {
      background-color: #545454; 
      color: #fff;
      padding: 12px 12px;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 300;
      cursor: pointer;
      transition: background-color 0.3s ease;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .boton-admin:hover {
      background-color: #696969; 
    }

    .boton-admin:active {
      background-color: #696969;
    }
   
  .boton-reemplazar {
  background-color: #8c8c8c; 
  color: #fff;
  padding: 12px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.boton-reemplazar:hover {
  background-color: #a0a0a0;
}
.boton-reemplazar:active {
  background-color: #a0a0a0;
}


.close-admin {
  background-color: #911809; 
  color: #fff;
  padding: 12px 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.close-admin:hover {
  background-color: #691c12;
}
.close-admin:active {
  background-color: #691c12;
}

.swal2-container {
  z-index: 9999 !important;
}