/* =========================================================
   GESTIÓN DE PRODUCTOS — ESTILOS
   ========================================================= */

/* SUB-NAVEGACIÓN */
.gp-subnav {
    display: flex;
    gap: 4px;
    padding: 16px 20px 0;
    border-bottom: 2px solid #2a2a2a;
    background: #1a1a1a;
    flex-wrap: wrap;
}

.gp-subnav-btn {
    padding: 10px 18px;
    background: transparent;
    color: #999;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
}

.gp-subnav-btn:hover {
    color: #fff;
    background: #2a2a2a;
}

.gp-subnav-btn.active {
    color: #e63946;
    border-bottom-color: #e63946;
    background: #2a2a2a;
}

/* CONTENIDO DE TABS */
.gp-tab-content {
    display: none;
    padding: 24px 20px;
    animation: gpFadeIn 0.2s ease;
}

.gp-tab-content.active {
    display: block;
}

@keyframes gpFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORMULARIO */
.gp-form {
    /* max-width: 960px; */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* SECCIÓN */
.gp-section {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.gp-section-header {
    padding: 12px 18px;
    background: #252525;
    font-weight: 700;
    font-size: 14px;
    color: #e63946;
    border-bottom: 1px solid #2a2a2a;
    letter-spacing: 0.3px;
}

.gp-section-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CAMPOS */
.gp-field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.gp-field label {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gp-field input,
.gp-field select,
.gp-field textarea {
    background: #121212;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 9px 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gp-field input:focus,
.gp-field select:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.gp-field input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gp-required {
    color: #e63946;
}

/* BARRA DE BÚSQUEDA */
.gp-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.gp-search-bar input {
    flex: 1;
    background: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.gp-search-bar input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.gp-search-bar button {
    padding: 10px 20px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.gp-search-bar button:hover {
    background: #c1121f;
}

.gp-search-bar button:active {
    transform: scale(0.97);
}

/* TABLAS DINÁMICAS */
.gp-dyn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gp-dyn-table th {
    background: #1a1a1a;
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.gp-dyn-table td {
    padding: 5px 6px;
    border-bottom: 1px solid #222;
}

.gp-dyn-table input {
    width: 100%;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    color: #e0e0e0;
    padding: 7px 9px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.gp-dyn-table input:focus {
    outline: none;
    border-color: #e63946;
}

/* BOTÓN ELIMINAR FILA */
.gp-btn-del-row {
    background: transparent;
    border: 1px solid #444;
    color: #e63946;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.gp-btn-del-row:hover {
    background: rgba(230, 57, 70, 0.12);
}

/* INPUTS DE LISTA SIMPLE (imágenes, equivalencias) */
.gp-list-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.gp-list-item input {
    flex: 1;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 8px 10px;
    font-size: 13px;
}

.gp-list-item input:focus {
    outline: none;
    border-color: #e63946;
}

/* BOTÓN AGREGAR */
.gp-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: #e63946;
    border: 1px dashed #e63946;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

.gp-btn-add:hover {
    background: rgba(230, 57, 70, 0.08);
}

/* BOTONES DE ACCIÓN */
.gp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
}

.gp-btn-primary {
    padding: 11px 24px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.gp-btn-primary:hover {
    background: #c1121f;
}

.gp-btn-primary:active {
    transform: scale(0.97);
}

.gp-btn-secondary {
    padding: 11px 24px;
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.gp-btn-secondary:hover {
    background: #333;
    color: #fff;
}

.gp-btn-danger {
    padding: 11px 24px;
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.gp-btn-danger:hover {
    background: #991b1b;
    color: #fff;
}

/* MENSAJES DE STATUS */
.gp-status-msg {
    font-size: 14px;
    padding: 4px 0;
    min-height: 22px;
    font-weight: 600;
}

.gp-status-msg.ok {
    color: #4ade80;
}

.gp-status-msg.err {
    color: #f87171;
}

.gp-status-msg.info {
    color: #93c5fd;
}

/* CARD (para masivo e importar) */
.gp-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    /* max-width: 760px; */
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gp-card h3 {
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* HINT */
.gp-hint {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.gp-hint code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e2b96f;
    font-size: 12px;
}

/* PREVIEW BOX */
.gp-preview-box {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.gp-preview-box h4 {
    color: #aaa;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* TABLA DE PREVIEW */
.gp-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gp-preview-table th {
    background: #1a1a1a;
    color: #999;
    padding: 7px 10px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
}

.gp-preview-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #1e1e1e;
    color: #ddd;
}

.gp-preview-table tr:hover td {
    background: #1e1e1e;
}

/* BARRA DE PROGRESO */
.gp-progress-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gp-progress-bar {
    flex: 1;
    height: 10px;
    background: #2a2a2a;
    border-radius: 99px;
    overflow: hidden;
}

#gp-i-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e63946, #c1121f);
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s ease;
}

#gp-i-progress-label {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    min-width: 120px;
}

/* INPUT FILE */
input[type="file"] {
    background: #121212;
    border: 1px dashed #444;
    border-radius: 8px;
    color: #bbb;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #e63946;
}