:root {
  --blue-50: #f8fafc;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --green-700-text: #166534;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-700: #b45309;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
  margin: 0;
  padding: 32px 16px;
  color: var(--slate-700);
}

.container {
  max-width: 950px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.header p {
  color: var(--slate-600);
  font-size: 1.125rem;
}

.action-button {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.action-button-download {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-primary {
  background-color: var(--green-600);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--green-700);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--slate-500);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--slate-600);
}

.btn-cyan {
  background-color: var(--cyan-500);
  color: white;
}

.btn-cyan:hover {
  background-color: var(--cyan-600);
}

.btn-amber {
  background-color: var(--amber-500);
  color: white;
}

.btn-amber:hover {
  background-color: var(--amber-600);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-shadow {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.icon-sm {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

.card {
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.card-content {
  padding: 0;
}

.card-mobile {
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.card-mobile-content {
  padding: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

.table th,
.table td {
  padding: 16px;
  text-align: left;
}

.table th {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--slate-700);
  background-color: rgba(241, 245, 249, 0.5);
  border-bottom: 1px solid var(--slate-200);
}

.table tr {
  border-bottom: 1px solid var(--slate-100);
}

.table tr:hover {
  background-color: rgba(241, 245, 249, 0.5);
}

.table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.9);
}

.table tr:nth-child(odd) {
  background-color: white;
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  width: 20px;
  height: 20px;
  color: var(--slate-400);
  flex-shrink: 0;
}

.file-name {
  color: var(--slate-700);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-signed {
  background-color: var(--green-100);
  color: var(--green-700-text);
}

.badge-pending {
  background-color: var(--amber-100);
  color: var(--amber-700);
}

.mobile-file {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-file-info {
  flex: 1;
  min-width: 0;
}

.mobile-file-name {
  font-weight: 500;
  color: var(--slate-700);
  font-size: 0.875rem;
  line-height: 1.25;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.footer {
  text-align: center;
  margin-top: 32px;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

.hidden-md {
  display: none;
}

@media (min-width: 768px) {
  .hidden-md {
    display: block;
  }
  .visible-md {
    display: none;
  }
}

@media (max-width: 767px) {
  .hidden-md {
    display: none;
  }
  .visible-md {
    display: block;
  }
  .header h1 {
    font-size: 2rem;
  }
}
/* Agrega esto a tu archivo CSS */
/* BADGES */
.feature-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  display: inline-block;
  margin-left: 4px;
}
.graphic-badge {
  background-color: #3b82f6; /* azul */
}
.tsp-badge {
  background-color: #06b6d4; /* cyan */
}
.badge-container {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* MODAL */
.config-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.modal-content label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}
.modal-content input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}
.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* BOTONES */
/* BOTONES */
.btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-primary {
  background-color: #3b82f6;
  color: white;
}
.btn-primary:hover {
  background-color: #2563eb;
}
.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
}
.btn-secondary:hover {
  background-color: #d1d5db;
}

/* CAMPOS DE ENTRADA */
.input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* OCULTAR MODAL */
.hidden {
  display: none;
}
.modal-content label.optional::after {
  content: " (opcional)";
  color: #6b7280;
  font-weight: normal;
  font-style: italic;
  font-size: 0.85rem;
}
.input-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.input-error::placeholder {
  color: #b91c1c;
}
label.optional::after {
  content: " (opcional)";
  font-size: 0.85rem;
  font-weight: normal;
  font-style: italic;
  color: #6b7280;
}
.input-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}
/* Aplica espaciado entre columnas */
.flex {
  display: flex;
  gap: 0.5rem; /* espacio entre columnas (8px) */
}

/* Hace que los hijos ocupen el mismo ancho */
.flex-1 {
  flex: 1;
}

/* Opcional para mejorar la apariencia de los inputs */
.input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 14px;
}

.optional {
  font-weight: normal;
  font-style: italic;
  opacity: 0.8;
}

/* Contenedor alineado */
.sig-graphic-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Estilo checkbox base aislado */
.sig-graphic-toggle input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #888;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

/* Check visual (tick) */
.sig-graphic-toggle input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.sig-graphic-toggle input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Etiqueta alineada y clara */
.sig-graphic-toggle label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}