/* ===== SCROLLBARS PERSONALIZADAS ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #C7D300;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8d300;
}

/* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
.modal-scroll-contenido::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll-contenido::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-scroll-contenido::-webkit-scrollbar-thumb {
  background: #C7D300;
  border-radius: 4px;
}

.modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
  background: #b8d300;
}

/* ===== RESET Y FUENTES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo-header {
  height: 40px;
  max-width: 200px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}


nav {
  margin-top: 10px;
}

nav button {
  background: #C7D300;
  color: black;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

nav button:hover,
nav button.active {
  background: #b8d30091;
  transform: translateY(-2px);
}

/* ===== MAIN Y PESTAÑAS ===== */
main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.tab {
  display: none;
  animation: fadeIn 0.4s;
}

.tab.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

/* ===== BOTONES ===== */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button:hover {
  opacity: 0.9;
}

#btn-importar,
#btn-nuevo-cliente,
#btn-importar-fra,
#btn-importar-objetivos,
#btn-importar-objetivos2,
#btn-nueva-cita {
  background: #28a745;
  color: white;
  margin-right: 10px;
  margin-bottom: 15px;
}

#btn-importar:hover,
#btn-nuevo-cliente:hover,
#btn-importar-fra:hover,
#btn-importar-objetivos:hover,
#btn-importar-objetivos2:hover,
#btn-nueva-cita:hover {
  background: #218838;
}

/* ===== FORMULARIOS ===== */
.formulario-oculto {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

.formulario-oculto.visible {
  display: block;
}

#cliente-form,
#cita-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  align-items: end;
}

#cliente-form input,
#cliente-form select,
#cliente-form textarea,
#cita-form input,
#cita-form select,
#cita-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

/* ===== BOTONES DE FORMULARIO ===== */
.formulario-oculto .botones-form {
  grid-column: span 2;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 10px;
}

.formulario-oculto .botones-form button {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  margin: 0;
}

#cliente-form button[type="submit"],
#cita-form button[type="submit"] {
  background: #007bff;
  color: #f1f1f1;
}

#cancelar-cliente,
#cancelar-cita {
  background: #6c757d;
  color: #f1f1f1;
}

/* ===== BÚSQUEDA ===== */
#buscar-cliente {
  width: 100%;
  max-width: 1500px;
  padding: 10px;
  margin: 15px 0 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

/* ===== FILTROS ===== */
.filtros,
.filtros-clientes,
.filtros-objetivos {
  margin: 15px 0 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.filtros label,
.filtros-clientes label,
.filtros-objetivos label {
  font-weight: 600;
  margin-bottom: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #444;
  margin-bottom: 12px;
}

/* ===== TABLA DE CLIENTES ===== */
.tabla-clientes {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.fila {
  display: grid;
  grid-template-columns: 0.6fr 2fr 1.2fr 0.8fr 3fr 0.9fr 1.2fr;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.fila.encabezado {
  background: #f1f1f1;
  font-weight: bold;
  color: #2c3e50;
  border-bottom: 2px solid #ddd;
}

.fila:last-child {
  border-bottom: none;
}

/* ===== GRÁFICOS ===== */
.graficos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 25px;
}

.grafico-contenedor {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  width: 100% !important;
}

.grafico-contenedor canvas {
  width: 100% !important;
  height: auto !important;
}

.grafico-contenedor h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.2rem;
}

/* ===== GRÁFICOS ===== */

.grafico-contenedor2 {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  width: 100% !important;
}

.grafico-contenedor2 canvas {
  width: 100% !important;
  height: 400px !important;

  aspect-ratio: 1 / 1;
}

.grafico-contenedor2 h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.2rem;
}

.graficos2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.kpi-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  font-size: 1em;
  font-weight: 600;
  color: #333;
}


.kpi-item {
  padding: 12px;
  text-align: center;
  background: rgb(255 249 249);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e3ec2b;
}

/* ===== MODAL DE CLIENTE ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido {
  background-color: white;
  margin: 2% auto;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90%;
  display: flex;
  flex-direction: column;
}

/* Cabecera del modal (con medalla al lado del título) */
.modal-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px 15px 25px;
  border-bottom: 1px solid #eee;
}

.cabecera-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Medalla ABC en el modal (dentro de filtros) */
.clasificacion-abc-modal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cabecera-titulo h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.abc-badge-modal {
  display: flex;
  align-items: center;
  gap: 6px;
}

.abc-badge-modal .medalla {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.abc-badge-modal .texto-medalla {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.acciones-cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-filtros-toggle {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

/* Filtros del modal */
.contenedor-filtros {
  padding: 0 25px 15px;
  display: none;
}

.contenedor-filtros.visible {
  display: block;
}

.filtros-modal {
  padding: 0;
  margin: 0;
  background: #f8f9fa;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.filtro-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filtro-grupo label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
  font-size: 0.9rem;
  padding-top: 6px;
}

.filtro-grupo select,
.filtro-grupo input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.rango-fechas {
  grid-column: span 2;
}

.rango-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contenedor con scroll */
.modal-scroll-contenido {
  overflow-y: auto;
  padding: 0 25px 25px;
  flex: 1;
  min-height: 100px;
}

/* Detalles del cliente: 4 columnas en escritorio, 2 en móvil */
.detalles-grid-4 {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.detalles-grid-4>div {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.detalles-grid-4 strong {
  display: block;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 4px;
}

.detalles-grid-4 span {
  font-size: 1em;
  font-weight: 600;
  color: #333;
}

.notas-completas {
  grid-column: 1 / -1 !important;
}

/* ===== SELECCIÓN DE GRÁFICOS EN MODAL ===== */
.selector-graficos {
  display: flex;
  gap: 10px;
  margin: 20px 0 15px;
  flex-wrap: wrap;
}

.selector-graficos button {
  padding: 8px 16px;
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.selector-graficos button.activo,
.selector-graficos button:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.contenedor-grafico {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 15px 0;
}

.contenedor-grafico canvas {
  width: 100% !important;
  height: 300px !important;
}

/* ===== CLASIFICACIÓN ABC ===== */
.medalla {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.medalla-a {
  background: linear-gradient(135deg, #5c7f48, #20af15);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.medalla-b {
  background: linear-gradient(135deg, #4c77af, #4a87c3);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.medalla-c {
  background: linear-gradient(135deg, #4b0000, #3a1919);
  box-shadow: 0 0 10px rgba(158, 158, 158, 0.5);
}

.medalla-tabla {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 20px;
  vertical-align: middle;
}

/* Porcentaje del período */
.porcentaje-periodo {
  display: block;
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.toast {
  background: #333;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease-out;
  word-break: break-word;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

.toast.info {
  background: #17a2b8;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  opacity: 0.8;
}

/* ===== ESTILO MODERNO PARA SELECTS ===== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 16px;
  font-size: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  min-width: 140px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

select:hover {
  border-color: #4CAF50;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15);
}

select:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

select option {
  padding: 8px 12px;
  color: #333;
}

/* ===== BLOCK SCROLL CUANDO MODAL ABIERTO ===== */
body.modal-abierto {
  overflow: hidden;
}

/* ===== BOTÓN CERRAR MODAL ===== */
#cerrar-modal-btn {
  background: #6c757d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 25px 25px;
  width: auto;
  align-self: center;
}

.cerrar-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.cerrar-modal:hover {
  color: #000;
}

/* ===== MENÚ LATERAL DE FILTROS EN MODAL ===== */
.panel-filtros-lateral {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 2001;
  padding: 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.filtro-grupo select,
.filtro-grupo input {
  max-width: 70%;
}

.filtro-grupo {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding-left: 2%;
    padding-top: 2%;
    padding-bottom: 2%;
    justify-content: space-around;
}

.panel-filtros-lateral.visible {
  right: 0;
}

.btn-filtros-toggle {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.mensaje-objetivo {
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  display: none;
}

.mensaje-objetivo.exito {
  background-color: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.mensaje-objetivo.fallo {
  background-color: #ffebee;
  color: #c62828;
  display: block;
}

.graficos-objetivos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

#proyeccion-objetivo {
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-top: 20px;
}

.mensaje-objetivo2 {
  padding: 12px;
  margin: 15px 0;
  border-radius: 2px;
  text-align: left;
  display: none;
  background-color: white;
  border: 2px solid #C7D300;
  box-shadow: 0 0 10px rgba(199, 211, 0, 0.6);
}

/* === RESUMEN ANUAL === */

.resumenanualdiv {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 12px;
  margin-bottom: 16px;
  background: white;
  border-color: #2c3e50;
  border: black;
  font-size: 1.2rem;
}

.paginacion {
  text-align: center;
  margin: 16px 0;
}

/* === AJUSTES DE PANTALLAS === */

/* Móviles */

@media (max-width: 768px) {
  .resumenanualdiv {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 80%;
  }

  .filtros,
  .filtros-clientes,
  .filtros-objetivos {
    margin: 15px 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 10px;
    flex-direction: column;
  }

  .kpi-dashboard {
    grid-template-columns: 1fr;
  }

  .graficos2 {
    grid-template-columns: 1fr;
  }

  .fila {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fila.encabezado {
    display: none;
  }

  .graficos-objetivos {
    grid-template-columns: 1fr;
  }

  .btn-filtros-toggle {
    display: block;
  }

  .abc-badge-modal .medalla {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .filtro-grupo select,
  .filtro-grupo input {
    max-width: 70%;
  }

  .rango-inputs {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    width: 90%;
  }

  .filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .modal-contenido {
    background-color: white;
    margin: 2% auto;
    border-radius: 12px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 95%;
    display: flex;
    flex-direction: column;
  }

  .detalles-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-filtros-lateral {
    width: 100vw;
    max-width: 400px;
    right: -100vw;
    z-index: 2001;
  }

  .panel-filtros-lateral.visible {
    right: 0;
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* Tablets */

@media (min-width: 768px) {
  .logo-header {
    height: 50px;
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* Móvil grande o tablet pequeña */

@media (min-width: 500px) {
  .fila {
    grid-template-columns: 0.5fr 1.8fr 1.1fr 0.6fr 2fr 0.8fr 1.1fr;
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* Móviles pequeños o móviles medianos */

@media (max-width: 600px) {
  .filtros-modal {
    grid-template-columns: 1fr;
  }

  .rango-fechas {
    grid-column: span 1;
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* PC */

@media (min-width: 992px) {
  .detalles-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* Tablet grande o portátil */

@media (min-width: 769px) {
  .detalles-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}

/* Resto */

@media (max-width: 991px) {
  .detalles-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ===== SCROLLBARS PERSONALIZADAS ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }

  /* ===== SCROLLBARS PERSONALIZADAS MODAL ===== */
  .modal-scroll-contenido::-webkit-scrollbar {
    width: 8px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb {
    background: #C7D300;
    border-radius: 4px;
  }

  .modal-scroll-contenido::-webkit-scrollbar-thumb:hover {
    background: #b8d300;
  }
}