/* Contenedor general centrado y estilizado */
.main-container {
    max-width: auto;
    margin: 40px auto;
    padding: 25px;
    background-color: #000000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

 .filecontainer_signal{
    position: relative;
    background: black;
 }

 .col-2_signal{
    flex: auto;
    background: rgba(255, 255, 255, 0);
    height : 84vh;
    width: 16.666667%
    
 }
 .col-3_signal {
    flex: auto;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);   /* blanco muy translúcido */
    backdrop-filter: blur(10px);             /* desenfoque de fondo */
    -webkit-backdrop-filter: blur(10px);     /* para Safari */
    border-radius: 12px;                     /* bordes redondeados */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* sombra suave */
    border: 1px solid rgba(255, 255, 255, 0.3);/* borde sutil */
    height: 84vh;
    width: 16.666667%;
    padding: 1rem;
  }
  
  #lista-archivos {
    /* Vinculamos al mismo estilo de tarjeta glassmórfica */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
  
    /* Resto de tus estilos */
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1em;
    color: #333;
  }
  
  

 .calculador .row .col-signal {
	height: 88%;
    width: 58.33333333%; /* igual que .col-7 de Bootstrap */
    float: left; /* o usa flexbox si tu contenedor lo requiere */
    border-radius: 5px;
}

/* Alinear los párrafos de entrada */
.main-container p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Inputs más modernos */
input[type="number"],
input[type="range"] {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #000000;
    font-size: 13px;
}

/* Estilo base de tablas */
table {
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
}

/* Dimensiones de celdas */
thead tr td,
thead tr th,
.signal td,
.signal th,
.preview td {
    width: 5px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    overflow: hidden;
    padding: 0;
    text-align: center;
}

/* Primera columna */
thead tr td:first-child,
thead tr th:first-child,
.signal td:first-child,
.signal th:first-child,
.preview td:first-child {
    width: 10px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Estética de celdas */
.signal,
.signal thead th,
.signal td {
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.signal td:hover {
    background-color: #f5faff;
}

/* Altura de filas */
.signal tr {
    height: 35px;
}

/*Lista desplegable para los archivos y carpetas */ 
/* === ORGANIZACIÓN DE CARPETAS Y ARCHIVOS === */
#archivos-lista {
    list-style: none;
    padding-left: 0;
  }
  
  #archivos-lista li {
    display: block;              /* ✅ cada carpeta/archivo en su propia línea */
    margin-bottom: 6px;
  }
  
  /* Sublista de archivos dentro de carpetas */
  #archivos-lista ul {
    list-style: none;
    padding-left: 1.8em;         /* ✅ sangrado para los archivos dentro */
    margin-top: 4px;
    margin-bottom: 4px;
  }
  
  #archivos-lista ul li {
    display: flex;               /* ícono + nombre + botones alineados */
    align-items: center;
    margin-bottom: 3px;
  }
  
  #archivos-lista .folder-item {
    font-weight: bold;
    margin-top: 8px;
  }
  
  #archivos-lista .file-item a {
    text-decoration: none;
    color: #0064a4;
    margin-right: 0.3em;
  }
  
  #archivos-lista .file-item a:hover {
    text-decoration: underline;
  }
  
  #archivos-lista button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    margin-left: 0.3em;
  }

  
  /*   */ 
.folder-item ul {
    margin-left: 1.5em;
    border-left: 1px dashed #888;
    padding-left: 0.5em;
  }
  

.preview {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.preview tr {
    height: 10px;
}

/* Estilos para estados de señal */
table tr .zero {
    border-bottom: 3px solid #222;
}

table tr .one {
    border-top: 3px solid #222;
}

table tr .change {
    border-left: 3px solid #222;
}

.signal .item {
    cursor: pointer;
    vertical-align: top;
    padding-left: 0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.signal .item:hover {
    background-color: #e6f7ff;
}
/* Contenedor de tabla preview */
.table-preview {
    overflow-x: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px;
    margin-top: 0px;
    background: #a0ceff;
}

/* Contenedor horizontal para scroll */
.table-container {
    overflow-x: auto;
    border: 2px solid #000000;
    border-radius: 5px;
    padding: 6px;
    margin-top: -10px;
}
.table-container_preview {
    overflow-x: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px;
    margin-top: 10px;
    background: white
}

label {
    color: white;
    
  }

.white-label {
    color: white;
  }
  
  .white-input {
    color: white;
    background-color: black; /* opcional */
    border: 1px solid white;
  }
  
/* Botones estilizados */
.button {
    padding: 6px 10px;
    border-radius: 4px;
    color: #ffffff;
    background-color: #007BFF;
    border: none;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    margin-right: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}
.active-button {
    background-color: #4CAF50 !important; /* verde como ejemplo */
    color: white;
}
/* Título centrado */
h3 {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    color: #333;
}
.item {
    position: relative;
}

.red-index {
    font-size: 0.7em;
    color: red;
    position: absolute;
    bottom: 2px;
    right: 4px;
}

.number-marker {
    font-size: 0.8em;
    color: black;
    position: absolute;
    top: 2px;
    left: 4px;
}



.repeat-count {
    position: relative;
    display: block;
    text-align: center;
}
.equality-counter {
    margin-top: 2px;
}
.preview-table {
    transform: scale(0.3); /* Escala del 30% */
    transform-origin: top left;
    border: 2px solid white;
    margin-top: 10px;
    width: fit-content;
    height: fit-content;
    pointer-events: none; /* evita clics en la vista previa */
    opacity: 0.8;
}


/*ALINEAR ICONOS EN GENERADOR*/

/* Cada ítem en lista como fila flex */
/*
#archivos-lista .file-item {
    display: flex;
    align-items: center;
    justify-content: normal; /* mantine juntos los botones 
    padding: 0.0em 0;
  }
  */

 
  /*
  /* Grupo de contenido (icono + enlace) a la izquierda */
  /*
  #archivos-lista .file-item .file-icon,
  #archivos-lista .file-item .file-link {
    margin-right: 0.5em;
  }
  
  /* Botón de eliminar al final */
  /*
  #archivos-lista .file-item .file-delete {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;     /* forzar al extremo derecho */
    /*
    transition: color .2s;
  }
  #archivos-lista .file-item .file-delete:hover {
    color: #ff4d4f;
  }
   */
  /* === MODAL MODERNO AJUSTADO === */
/* === MODAL COMPACTO Y ELEGANTE === */
.modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #222;
  padding: 8px 20px;
  border-radius: 14px;
  width: min(650px, 94vw);      /* más angosto */
  max-height: 88vh;             /* límite de altura */
  overflow-y: auto;             /* scroll interno */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid #ddd;
  position: relative;
  animation: modalZoom 0.25s ease-out;
}
.modal-content-token {
  background: #fff;
  color: #222;
  padding: 8px 20px;
  border-radius: 14px;
  width: auto;      /* más angosto */
  max-height: 88vh;             /* límite de altura */
  overflow-y: auto;             /* scroll interno */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid #ddd;
  position: relative;
  animation: modalZoom 0.25s ease-out;
}

/* Scroll moderno */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
.modal-content::-webkit-scrollbar-thumb:hover { background: #999; }

@keyframes modalZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h2 { 
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #007bff;
  text-align: left;
}

.close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 20px;
  color: #777;
  cursor: pointer;
  transition: 0.2s;
}
.close:hover { color: #000; transform: rotate(90deg); }

/* === Labels y campos compactos === */
.label_modal {
  display: block;
  margin-top: 6px;
  margin-bottom: 2px;
  font-weight: 600;
  color: #333;
  font-size: 12.5px;
}

/* Inputs */
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="url"],
.modal-content input[type="file"],
.modal-content textarea {
  width: 100%;
  padding: 1px 8px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.12);
}

/* Campo bloqueado */
#nombreArchivoModal[disabled] {
  background: #f2f2f2;
  color: #555;
  cursor: not-allowed;
}

/* Grid de 3 columnas */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
}

/* Textareas más compactas */
.modal-content textarea {
  min-height: 45px;
  resize: vertical;
}

/* Checkbox */
.modal-checkbox {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  font-weight: 500;
  font-size: 13px;
}
.modal-checkbox input[type="checkbox"] {
  accent-color: #007bff;
  transform: scale(1.1);
}

/* Botones */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.modal-buttons button {
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#btnConfirmarVenta {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: #fff;
}
#btnConfirmarVenta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background: #666;
  color: #fff;
}
.btn-secondary:hover {
  background: #555;
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.btn-descargar {
  margin-top: 10px !important;
  height: unset !important;
  color: #ffffff;
  font-size: 10px !important;
  width: 74% !important;
  border: 1px solid #a92e0a;
  background-color: #a92e0a;
}

.ms-3 {
  margin-left: 1rem !important;
}

/* Responsive */
@media (max-width: 420px) {
  .modal-content {
    width: 90%;
    padding: 16px;
  }
}
/* Texto negro solo para el label del checkbox "Este archivo necesita clave" */
#requiereClaveModal + label {
  color: #000 !important;
  font-weight: 500;
}
/* ======================= */
/* MODAL ESTILO FRUGITER   */
/* ======================= */

.venta-tech {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 18px;
  border: 1px solid #e9eef5;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: fadeInScale 0.25s ease-out;
}

/* HEADER */
.venta-tech-header {
  background: linear-gradient(135deg, #d6f1ff, #ffffff);
  color: #0054a8;
  padding: 14px 22px;
  font-weight: 700;
  border-bottom: 1px solid #dce7f2;
}

/* BODY */
.venta-tech-body {
  padding: 26px;
  background: #fafcff;
}

.venta-preview img {
  width: 190px;
  border-radius: 14px;
  border: 2px solid #cfe6ff;
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.10);
}

/* VIDEO BUTTON */
.venta-video-btn {
  margin-top: 10px;
  border-radius: 8px;
  font-weight: 600;
  background: #ff4d4d;
  color: white !important;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.18);
  transition: 0.25s;
}
.venta-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.25);
}

/* TEXTO Y TÍTULO */
.venta-title {
  font-size: 20px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 8px;
}

.venta-info p {
  margin: 3px 0;
  font-size: 14px;
  color: #34495e;
}

/* USUARIO */
.venta-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 15px;
}

.venta-user-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #c6e0ff;
  box-shadow: 0 2px 8px rgba(0, 90, 170, 0.15);
}

/* BOTÓN AMARILLO (DESCARGAR) */
.venta-download-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: linear-gradient(135deg, #ffe680, #ffd24d);
  color: #4a3c00;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 200, 0, 0.35);
  transition: 0.25s;
  cursor: pointer;
}

.venta-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 200, 0, 0.50);
}

/* FOOTER */
.venta-tech-footer {
  background: #f7faff;
  border-top: 1px solid #e3edf5;
  padding: 12px;
}

/* LAYOUT */
.venta-layout {
  display: flex;
  gap: 25px;
}

/* ANIMACIÓN */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.img-box-190{
  width:190px;
  height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;        /* opcional, para ver el cuadro */
  border-radius:8px;      /* opcional */
  overflow:hidden;        /* evita overflow */
}
.img-fit-contain{
  /* Se ajusta sin deformarse y sin recortar */
  width:100%;
  height:100%;
  object-fit:contain;
}
/*Estilo del icono*/
.icon-img{
  width:18px;height:18px;object-fit:contain;vertical-align:middle;margin-right:8px;
}


/*Estipo para la pagina de generar tokens */ 
/* ==========================
   TOKEN GENERATOR - FRUTIGER AERO STYLE
   ========================== */

   .token-wrapper {
    margin-top: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.token-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 0;
    background: rgba(255,255,255,0.10);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 25px;
    letter-spacing: 0.8px;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.token-table th {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
    text-align: center;
}

.token-table td {
    padding: 9px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    text-align: center;
}

.btn-token2 {
    display: block;
    margin: 25px auto 10px;
    padding: 2px 25px;
    background: linear-gradient(135deg, #4cc9f0, #3a8bd8);
    color: #000;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.btn-token2:hover {
    background: linear-gradient(135deg, #5bd9ff, #4ca8f0);
    transform: scale(1.03);
}

.token-box-result {
    background: rgba(0,255,150,0.15);
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: bold;
    color: #000000;
    word-break: break-all;
    display: none;
    text-align: center;
}

.btn-copy {
    background: #00ffa0;
    color: #000;
    margin-top: 10px;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.btn-copy:hover {
    background: #00d98c;
}


/*Estilo del modal*/
/* ==========================
   MODAL - FRUTIGER AERO STYLE
   ========================== */

   .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.65);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-box {
    width: 420px;
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 25px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}

.modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-content {
    max-height: 650px;
    overflow-y: auto;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #000000;
}

.btn-select {
    color: #4cc9f0;
    cursor: pointer;
    font-weight: bold;
}

.btn-select:hover {
    color: #6de1ff;
}

.modal-close {
    display: block;
    /*margin: 15px auto 5px;*/
    padding: 8px 20px;
    background: #4cc9f0;
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.modal-close:hover {
    background: #5bd9ff;
}

/* MODAL CONFIRM */
.modal-text {
  text-align: center;
  margin: 15px 0;
  color: #fff;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.btn-yes {
  padding: 10px 20px;
  background: #4cc9f0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

.btn-no {
  padding: 10px 20px;
  background: #ff4c4c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

 /* ———CSS PARA LA TABLA QUE CARGA LOS TOKENS GENERADOS POR EL USUARIO Frutiger-Aero vibes ——— */
 :root{
  --fa-bg: linear-gradient(135deg,#eaf7ff 0%,#f6fbff 30%,#ffffff 100%);
  --fa-glass: rgba(255,255,255,.55);
  --fa-glow: rgba(0,173,255,.25);
  --fa-border: rgba(0,0,0,.08);
  --fa-primary1:#00b3ff;
  --fa-primary2:#0077ff;
  --fa-text:#0b1b2b;
  --fa-muted:#5a6c7e;
}
.token-wrapper{
  background: var(--fa-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.token-wrapper::after{
  content:"";
  position:absolute; inset:-40% -10% auto auto;
  width:60%; height:60%;
  background: radial-gradient(600px 300px at 80% 0%, var(--fa-glow), transparent 60%);
  pointer-events:none;
  filter: blur(6px);
}
.token-title{ 
  font-weight:700; letter-spacing:.2px; color:var(--fa-text); 
  text-align:center; margin-bottom:16px;
}
.btn-token2{
  display:block; margin:0 auto 16px; padding:10px 20px;
  border-radius:999px; border:1px solid var(--fa-border);
  background: linear-gradient(180deg,#e8fbff,#cde7ff);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0,0,0,.08);
  font-weight:600; color:#024;
  transition:.2s transform ease, .2s box-shadow ease;
}
.btn-token2:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.btn-copy{ margin-left:8px }

.token-table{
  width:100%; border-collapse:separate; border-spacing:0;
  background: var(--fa-glass);
  backdrop-filter: blur(6px);
  border:1px solid var(--fa-border);
  border-radius:14px; overflow:hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.token-table thead th{
  background: linear-gradient(180deg, rgba(0,179,255,.12), rgba(0,119,255,.10));
  color:var(--fa-text); font-weight:700; font-size:.92rem;
  padding:12px 14px; text-align:left;
  border-bottom:1px solid var(--fa-border);
}
.token-table tbody td{
  padding:12px 14px; color:var(--fa-text); font-size:.92rem;
  border-bottom:1px solid rgba(0,0,0,.05);
}
.token-table tbody tr:nth-child(even){ background: rgba(255,255,255,.45); }
.token-table tbody tr:hover{ background: rgba(0,179,255,.07); }

/* Paginación */
.pager{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin-top:14px;
}
.pg-btn{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--fa-border);
  background: linear-gradient(180deg,#ffffff,#eaf3ff);
  box-shadow: 0 4px 10px rgba(0,0,0,.06), inset 0 1px 0 #fff;
  font-weight:700; color:var(--fa-primary2);
}
.pg-btn:disabled{ opacity:.45; cursor:not-allowed; }
.page-info{ color:var(--fa-muted); font-weight:600; }
/* Cabecera pegajosa y mejor hover */
.token-table thead th {
  position: sticky; top: 0; z-index: 2;
}
.token-table tbody tr:hover td {
  background: rgba(0,179,255,.09);
}

/* Estado deshabilitado de paginación un poco más tenue */
.pg-btn:disabled {
  opacity: .35;
}

.copy-token {
  cursor: pointer;
  margin-left: 6px;
  font-size: 16px;
  color: #0064a4;
  transition: 0.2s ease;
}

.copy-token:hover {
  color: #008cff;
  transform: scale(1.2);
}
.toast-copy {
  position: fixed;
  bottom: 100px;
  
  left: 1000px;
  background: #0064a4;
  color: #fff;
  padding: 12px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0px 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  transform: translateY(20px);
  z-index: 9999;
}

.toast-copy.show {
  opacity: 1;
  transform: translateY(0);
}

/* -------- ALERTAS  para generar_token_de_ventaFRUTIGER AERO -------- */

.aero-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 22px;
  border-radius: 14px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #fff;
  z-index: 99999;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-20px);
  animation: aeroSlide 0.4s ease forwards;
}

@keyframes aeroSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.aero-success {
  background: linear-gradient(135deg, #00c853, #1b5e20);
  border: 2px solid rgba(255,255,255,0.2);
}

.aero-error {
  background: linear-gradient(135deg, #d50000, #880e4f);
  border: 2px solid rgba(255,255,255,0.2);
}

.aero-alert h4 {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.aero-alert p {
  margin: 0;
  font-size: 14px;
}

/* ALERTA ESPECIAL PARA TOKEN GENERADO */
.aero-token {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 20px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00e676, #009624);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.5s forwards ease;
  z-index: 99999;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === AERO COPY === */
.aero-copy {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 18px 26px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #4CAF50, #087f23);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: aeroCopyShow .45s forwards ease;
  z-index: 99999;
}

@keyframes aeroCopyShow {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   FORMULARIO REGISTRO iOS 17
   Todo aislado dentro de .ios17-register
===============================*/

.ios17-register {
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.ios17-register h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
}

/* FILA */
.ios17-register .row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

/* LABEL */
.ios17-register label {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-bottom: 6px;
}

/* INPUTS */
.ios17-register input[type="text"],
.ios17-register input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: #f2f2f7;
  transition: all .2s ease;
}

.ios17-register input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.35);
}

/* BOTÓN */
.ios17-register .btn-ios17 {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #007aff, #0a84ff);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.ios17-register .btn-ios17:hover {
  opacity: 0.85;
}

.ios17-register .btn-ios17:active {
  transform: scale(.98);
}

/* ALERTA ELIMINADA PARA EVITAR CHOQUES */

/* CENTRAR FORMULARIO */
.ios17-center {
  display: flex;
  justify-content: center;
  width: 100%;
}
/* ============================================================
   TUTORIAL OVERLAY – Sistema de guía interactiva
   ============================================================ */

   .tutorial-overlay {
    position: fixed;
    top:0; 
    left:0;
    width:100%; 
    height:100%;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
}

#tutorial-box {
    position: absolute;
    max-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 0 20px #000;
}

.tutorial-btn {
    padding: 5px 10px;
    border:none;
    border-radius:5px;
    background:#2196F3;
    color:white;
    cursor:pointer;
    margin-left:5px;
}

.tutorial-btn.exit {
    background:#e91e63;
}

#tutorial-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid white;
    position: absolute;
}
/* Permitir que los elementos del tutorial sigan siendo interactivos */
.tutorial-overlay {
  pointer-events: none !important;
}

.tutorial-overlay .tutorial-box,
.tutorial-overlay #tutorial-box,
.tutorial-overlay #tutorial-arrow {
  pointer-events: auto !important;
}

.tutorial-free {
  position: relative;
  z-index: 999999 !important;
  pointer-events: auto !important;
}
/* ============================
   TUTORIAL CON AGUJERO / HOYO
   ============================ */

   .tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 99990;
    pointer-events: none; /* no bloquea inputs, pero sí bloquea visual */
}

/* capa que genera el hueco */
.tutorial-hole {
    position: fixed;
    z-index: 99991;
    pointer-events: none;
    backdrop-filter: blur(0px);
    -webkit-mask-composite: destination-out;
            mask-composite: exclude;
}

/* el elemento actual queda arriba */
.tutorial-free {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}
