/* ============================================================
   components.css
   Componentes reutilizables — prefijo .gst-
   Depende de las variables definidas en rootcolors.css y gesint.css
   ============================================================ */

/* ===== MODAL GENÉRICO (gst-img-modal) ===== */
.gst-img-modal {
    background-color: var(--subwhite-bg) !important;
    border: none;
    border-radius: 20px !important;
    overflow: hidden;
}

/* ── Header ── */
.gst-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    flex-shrink: 0;
}
.gst-modal-hd-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.gst-modal-hd-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.gst-modal-hd-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
}
.gst-modal-hd-sub {
    margin: 0;
    font-size: 0.72rem;
    opacity: 0.82;
    color: #ffffff !important;
}
.gst-modal-hd-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* ── Botón ícono (header) ── */
.gst-icon-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: rgba(255,255,255,0.18);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gst-icon-btn:hover          { background: rgba(255,255,255,0.32); }
.gst-icon-btn--close:hover   { background: rgba(239,68,68,0.65); }
.gst-icon-btn--locked        { opacity: 0.35; pointer-events: none; cursor: not-allowed; }

/* ── Banner de advertencia durante subida ── */
.gst-upload-lock-banner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #f59e0b;
    color: #1c1917;
    padding: 0.55rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 2px solid #d97706;
}
.gst-upload-lock-banner i { font-size: 1.05rem; flex-shrink: 0; }

/* ── Franja de producto ── */
.gst-product-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.5rem;
    background: var(--bg-primary-opacity-40);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.gst-product-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
}
.gst-product-cat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--slate-500);
}
.gst-product-desc {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gst-product-divider {
    width: 1px;
    height: 14px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ── Franja Alt SEO ── */
.gst-seo-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-primary-opacity-40);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    flex-shrink: 0;
}
.gst-seo-bar-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.gst-seo-bar-label i { font-size: 0.95rem; }
.gst-seo-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 0.28rem 0.6rem;
    font-size: 0.78rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.18s;
}
.gst-seo-input:focus { border-color: var(--primary-color); }
.gst-seo-counter {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 42px;
    text-align: right;
}
.gst-seo-counter--ok      { color: #22c55e; }
.gst-seo-counter--short   { color: var(--text-secondary); }
.gst-seo-counter--long    { color: #f59e0b; }
.gst-seo-counter--over    { color: #ef4444; }
.gst-seo-status { font-size: 0.78rem; flex-shrink: 0; }
.gst-seo-gen-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    border-radius: 7px;
    padding: 0.28rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}
.gst-seo-gen-btn span {
    color: white !important;
}

.gst-seo-gen-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.gst-seo-gen-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.gst-seo-gen-btn i { font-size: 0.85rem; }
.gst-seo-help-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
    padding: 0;
}
.gst-seo-help-btn:hover { background: var(--primary-color); color: white; }

/* ── Tabs ── */
.gst-tab-bar {
    padding: 0 1.5rem;
    background: var(--subwhite-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.gst-tab-bar .nav { gap: 0; border: none; }
.gst-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    border-radius: 0;
    margin-bottom: -1px;
    white-space: nowrap;
}
.gst-tab:hover { color: var(--primary-color); background: rgba(37,99,235,0.05); }
.gst-tab.active,
.gst-tab[aria-selected="true"] {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}
.gst-tab i { font-size: 1.05rem; }

/* ── Body ── */
.gst-modal-body {
    padding: 1.25rem 1.5rem;
    background: var(--subwhite-bg);
}

/* ── Footer ── */
.gst-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: var(--subwhite-bg);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
}
.gst-footer-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.73rem;
    color: var(--slate-500);
}
.gst-footer-actions { display: flex; gap: 0.5rem; align-items: center; }


/* ===== BOTONES (gst-btn) ===== */
.gst-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
}
.gst-btn--primary {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.28);
}
.gst-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.38);
}
.gst-btn--primary:disabled { opacity: 0.48; cursor: not-allowed; }
.gst-btn--outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.gst-btn--outline:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(37,99,235,0.05); }
.gst-btn--danger-outline {
    background: transparent;
    border: 1.5px solid var(--red-200);
    color: var(--red-600);
}
.gst-btn--danger-outline:hover { background: var(--red-50); border-color: var(--red-400); }
.gst-btn--ghost {
    background: transparent;
    color: var(--slate-500);
    border: 1.5px solid var(--border-color);
}
.gst-btn--ghost:hover { background: var(--bg-primary-opacity-40); }


/* ===== ESTADO VACÍO (gst-empty-state) ===== */
.gst-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2.5rem 1rem;
    color: var(--slate-400);
    text-align: center;
}
.gst-empty-state i     { font-size: 2.4rem; opacity: 0.5; }
.gst-empty-state p     { margin: 0; font-size: 0.88rem; }
.gst-empty-state small { font-size: 0.73rem; opacity: 0.8; }


/* ===== ZONA DE CARGA (gst-upload-zone) ===== */
.gst-upload-zone {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary-opacity-40);
    transition: border-color 0.2s;
}
.gst-upload-zone:focus-within { border-color: var(--primary-color); }

.gst-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    border: 2px dashed transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
}
.gst-upload-label:hover { background: rgba(37,99,235,0.05); }

.gst-upload-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--blue-100), var(--indigo-100));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
}
.gst-upload-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-primary);
}
.gst-upload-hint {
    font-size: 0.73rem;
    color: var(--slate-500);
}
.gst-upload-input { display: none; }

/* Modo preview dentro de la zona */
#gst-zone-preview { display: flex; flex-direction: column; }
.gst-zone-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary-opacity-40);
    gap: 0.5rem;
    flex-wrap: wrap;
}
.gst-preview-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Grids */
.gst-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.6rem;
    padding: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}
.gst-preview-grid::-webkit-scrollbar       { width: 5px; }
.gst-preview-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.gst-loaded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem;
    min-height: 100px;
}
.gst-loaded-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}


/* ===== PANEL DE PROGRESO ===== */
.gst-progress-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.125rem;
    margin-top: 1rem;
}
.gst-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gst-progress-title  { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.gst-phase-indicators{ display: flex; align-items: center; gap: 0.4rem; }
.gst-phase           { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--slate-400); }
.gst-phase-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--slate-300);
    transition: background 0.3s;
}
.gst-phase-dot.phase-dot--active { background: var(--primary-color); }
.gst-phase-dot.phase-dot--done   { background: var(--green-500); }
.gst-phase-line { width: 22px; height: 1px; background: var(--border-color); }

.gst-progress-track {
    height: 28px;
    background: var(--bg-clr);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
    border: 1px solid var(--border-color);
}
.gst-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4f46e5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    transition: width 0.3s ease;
    min-width: 40px;
}
.gst-progress-fill.phase-processing {
    background: linear-gradient(90deg, var(--green-500), #059669);
}
.gst-progress-msg {
    text-align: center;
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 0.875rem;
}

/* Stats */
.gst-stats-row  { display: flex; gap: 0.65rem; margin-bottom: 0.875rem; }
.gst-stat-card  { flex: 1; padding: 0.65rem; border-radius: 12px; text-align: center; }
.gst-stat--blue  { background: var(--blue-50);   border: 1px solid var(--blue-200);   }
.gst-stat--green { background: var(--green-50);  border: 1px solid var(--green-200);  }
.gst-stat--violet{ background: var(--violet-50); border: 1px solid var(--violet-200); }
.gst-stat-value  { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.gst-stat-label  { font-size: 0.7rem; color: var(--slate-500); margin-top: 0.1rem; }

/* Archivo actual en progreso */
.gst-current-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--bg-clr);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}
.gst-current-file-icon   { font-size: 1.4rem; flex-shrink: 0; }
.gst-current-file-info   { flex: 1; min-width: 0; }
.gst-current-file-name {
    font-size: 0.83rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gst-current-file-status { font-size: 0.73rem; color: var(--slate-500); }
.gst-file-progress-track {
    height: 5px; background: var(--border-color);
    border-radius: 3px; overflow: hidden; margin-top: 0.3rem;
}
.gst-file-progress-fill {
    height: 100%; background: var(--blue-400);
    border-radius: 3px; transition: width 0.2s;
}
.gst-current-file-pct { font-size: 0.76rem; font-weight: 700; color: var(--primary-color); flex-shrink: 0; }


/* ===== TARJETAS DE IMÁGENES (sortable-loaded-image) ===== */
.sortable-loaded-image { transition: transform 0.22s ease; }
.sortable-loaded-image:hover { transform: translateY(-4px); }

.sortable-ghost  { opacity: 0.25; transform: rotate(3deg); }
.sortable-chosen { transform: scale(1.03); z-index: 999; }
.sortable-drag   { transform: rotate(4deg); opacity: 0.9; }
.dragging        { z-index: 1000; }
.fade-during-drag{ opacity: 0.6; transform: scale(0.95); }

.gst-img-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.22s, border-color 0.22s;
}
.sortable-loaded-image:hover .gst-img-card {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-300);
}
.sortable-chosen .gst-img-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18), var(--shadow-xl);
}

.gst-img-card-thumb { position: relative; overflow: hidden; }
.gst-img-card-thumb img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease;
}
.sortable-loaded-image:hover .gst-img-card-thumb img { transform: scale(1.06); }

.gst-img-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s;
}
.sortable-loaded-image:hover .gst-img-card-overlay { opacity: 1; }

.gst-img-card-delete {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: rgba(239,68,68,0.88);
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    backdrop-filter: blur(4px);
}
.gst-img-card-delete:hover { background: var(--red-600); border-color: white; transform: scale(1.12); }

.gst-img-card-num {
    position: absolute;
    top: 7px;
    left: 7px;
    background: rgba(0,0,0,0.58);
    color: white;
    font-size: 0.68rem;
    padding: 2px 9px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.gst-img-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    cursor: grab;
    transition: background 0.15s;
    user-select: none;
}
.gst-img-card-footer:hover  { background: var(--bg-clr); }
.gst-img-card-footer:active { cursor: grabbing; }

.gst-img-card-filename {
    font-size: 0.66rem;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.gst-img-card-grip {
    font-size: 1.1rem;
    color: var(--slate-400);
    flex-shrink: 0;
    margin-left: 4px;
}
/* Alias para JS que actualiza el badge de orden */
.order-number { color: white !important; }


/* ===== OPCIONES DE ASISTENCIA (gst-att-*) ===== */

/* Lista vertical — un botón por fila */
.gst-att-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Botón base — fila horizontal con ícono + texto */
.gst-att-option {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.14s, box-shadow 0.18s;
    text-align: left;
    user-select: none;
    width: 100%;
    height: 80px;
}
.gst-att-option:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Ícono izquierdo */
.gst-att-option i { font-size: 1.4rem; flex-shrink: 0; }

/* Radio oculto — la label es el elemento clickable */
.gst-att-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* Área de texto (label + "Ya marcado" apilados) */
.gst-att-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
    min-width: 0;
}
.gst-att-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary) !important;
}
/* Indicador SVG derecho: dashed circle = pendiente, check verde = marcado */
.gst-att-indicator {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gst-att-indicator svg { width: 22px; height: 22px; }

/* ── Verde — Ingreso ── */
.gst-att-option--green i { color: var(--green-600); }
.gst-att-option--green:hover { border-color: var(--green-400); background: var(--green-50); }
.gst-att-option--green:has(.gst-att-radio:checked) {
    border-color: var(--green-500);
    background: var(--green-50);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.gst-att-option--green:has(.gst-att-radio:checked) .gst-att-label { color: var(--green-700) !important; }

/* ── Ámbar — Inicio de Almuerzo ── */
.gst-att-option--amber i { color: var(--amber-600); }
.gst-att-option--amber:hover { border-color: var(--amber-400); background: var(--amber-50); }
.gst-att-option--amber:has(.gst-att-radio:checked) {
    border-color: var(--amber-500);
    background: var(--amber-50);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.gst-att-option--amber:has(.gst-att-radio:checked) .gst-att-label { color: var(--amber-700) !important; }

/* ── Cyan — Fin de Almuerzo ── */
.gst-att-option--cyan i { color: var(--cyan-600); }
.gst-att-option--cyan:hover { border-color: var(--cyan-400); background: var(--cyan-50); }
.gst-att-option--cyan:has(.gst-att-radio:checked) {
    border-color: var(--cyan-500);
    background: var(--cyan-50);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.gst-att-option--cyan:has(.gst-att-radio:checked) .gst-att-label { color: var(--cyan-700) !important; }

/* ── Rojo — Salida ── */
.gst-att-option--red i { color: var(--red-500); }
.gst-att-option--red:hover { border-color: var(--red-400); background: var(--red-50); }
.gst-att-option--red:has(.gst-att-radio:checked) {
    border-color: var(--red-500);
    background: var(--red-50);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.gst-att-option--red:has(.gst-att-radio:checked) .gst-att-label { color: var(--red-700) !important; }

/* ── Slate — Permiso ── */
.gst-att-option--slate i { color: var(--slate-500); }
.gst-att-option--slate:hover { border-color: var(--slate-400); background: var(--slate-50); }
.gst-att-option--slate:has(.gst-att-radio:checked) {
    border-color: var(--slate-500);
    background: var(--slate-100);
    box-shadow: 0 0 0 3px rgba(100,116,139,0.12);
}
.gst-att-option--slate:has(.gst-att-radio:checked) .gst-att-label { color: var(--slate-700) !important; }

/* ── Estado bloqueado — prerequisito no cumplido ── */
.gst-att-option--locked {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.48;
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
    transform: none !important;
}
.gst-att-option--locked i { filter: grayscale(1); opacity: 0.5; }

/* ── Estado ya marcado — muestra el color de hover de forma permanente ── */
.gst-att-option--done {
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}
.gst-att-option--green.gst-att-option--done  { border-color: var(--green-400);  background: var(--green-50);  }
.gst-att-option--amber.gst-att-option--done  { border-color: var(--amber-400);  background: var(--amber-50);  }
.gst-att-option--cyan.gst-att-option--done   { border-color: var(--cyan-400);   background: var(--cyan-50);   }
.gst-att-option--red.gst-att-option--done    { border-color: var(--red-400);    background: var(--red-50);    }
.gst-att-option--slate.gst-att-option--done  { border-color: var(--slate-400);  background: var(--slate-50);  }

/* ── Siguiente paso sugerido — borde + sombra animados tipo Apple Intelligence ── */
@property --ai-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@property --ai-hue {
    syntax: '<number>';
    initial-value: 260;
    inherits: false;
}
@keyframes ai-border-spin { to { --ai-angle: 360deg; } }
@keyframes ai-hue-spin    { from { --ai-hue: 260; } to { --ai-hue: 620; } }

.gst-att-option--next {
    border: 2px solid transparent !important;
    background-color:  transparent !important;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        conic-gradient(from var(--ai-angle), #6366f1, #a855f7, #ec4899, #f97316, #06b6d4, #10b981, #6366f1) !important;
    background-origin: padding-box, border-box !important;
    background-clip:   padding-box, border-box !important;
    animation: ai-border-spin 2.5s linear infinite, ai-hue-spin 2.5s linear infinite;
    box-shadow:
        0 0 0 0px  hsl(var(--ai-hue) 80% 65% / 0.22),
        0 0 7px 2px hsl(var(--ai-hue) 70% 60% / 0.32) !important;
    /*box-shadow:
        0 0 0 3px  hsl(var(--ai-hue) 80% 65% / 0.22),
        0 0 18px 4px hsl(var(--ai-hue) 70% 60% / 0.32) !important;*/
}
.gst-att-option--next:hover {
    transform: translateY(-1px);
    background-color:  transparent !important;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        conic-gradient(from var(--ai-angle), #6366f1, #a855f7, #ec4899, #f97316, #06b6d4, #10b981, #6366f1) !important;
    background-origin: padding-box, border-box !important;
    background-clip:   padding-box, border-box !important;
    box-shadow:
        0 0 0 0px  hsl(var(--ai-hue) 80% 65% / 0.35),
        0 0 7px 2px hsl(var(--ai-hue) 70% 60% / 0.45) !important;
}
body.dark_mode .gst-att-option--next,
body.dark_mode .gst-att-option--next:hover {
    background-image:
        linear-gradient(var(--bg-primary), var(--bg-primary)),
        conic-gradient(from var(--ai-angle), #6366f1, #a855f7, #ec4899, #f97316, #06b6d4, #10b981, #6366f1) !important;
}


/* ===== DARK MODE ===== */
body.dark_mode .gst-product-badge      { background: rgba(37,99,235,0.18);  color: var(--blue-300); }
body.dark_mode .gst-upload-label:hover { background: rgba(37,99,235,0.07); }
body.dark_mode .gst-stat--blue         { background: rgba(37,99,235,0.1);   border-color: rgba(37,99,235,0.3); }
body.dark_mode .gst-stat--green        { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.3); }
body.dark_mode .gst-stat--violet       { background: rgba(139,92,246,0.1);  border-color: rgba(139,92,246,0.3); }


/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .gst-modal-hd       { padding: 0.875rem 1rem; }
    .gst-modal-hd-sub   { display: none; }
    .gst-product-info   { padding: 0.5rem 1rem; }
    .gst-modal-body     { padding: 1rem; }
    .gst-modal-footer   { padding: 0.75rem 1rem; flex-direction: column; }
    .gst-footer-actions { width: 100%; justify-content: flex-end; }
    .gst-tab-bar        { padding: 0 0.75rem; }
    .gst-tab            { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
    .gst-preview-grid,
    .gst-loaded-grid    { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}


/* ═══════════════════════════════════════════════════════════════
   MÓDULO ANALYTICS
   ═══════════════════════════════════════════════════════════════ */

.an-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  padding: 16px;
}

.an-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.an-card--blue { border-left: 4px solid #3b82f6; }

.an-card-icon { font-size: 1.8rem; color: var(--slate-400); flex-shrink: 0; }
.an-card--blue .an-card-icon { color: #3b82f6; }

.an-card-body { min-width: 0; }
.an-card-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.an-card-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.an-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.an-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.an-panel-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.an-panel-body { padding: 12px; min-height: 100px; }

.an-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  color: var(--slate-400);
  font-size: 1.4rem;
}

.an-loading-inline { color: var(--slate-400); font-size: 1rem; }

.an-list { display: flex; flex-direction: column; gap: 7px; }

.an-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.an-list-label {
  flex: 1;
  font-size: 0.77rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-list-val {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 38px;
  text-align: right;
  flex-shrink: 0;
}

.an-bar-wrap {
  width: 70px;
  height: 5px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.an-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.4s ease;
}

@media (max-width: 768px) {
  .an-two-col { grid-template-columns: 1fr; }
  .an-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
