/* =========================================================
   NZT · Tutorial Categorías
   Archivo aislado. No toca categorias.css ni categorias.js.
   ========================================================= */

.nzt-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Botón Tutorial */
#btnTutorialCategorias {
    appearance: none;
    -webkit-appearance: none;

    width: 58px;
    min-width: 58px;
    height: 48px;
    padding: 0 4px;
    margin: 0;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    border-radius: 16px;
    border: 1px solid rgba(71, 245, 255, 0.42);
    background: rgba(8, 18, 40, 0.92);
    color: #47f5ff;

    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);

    overflow: hidden;
    flex-shrink: 0;

    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

#btnTutorialCategorias:hover {
    border-color: rgba(71, 245, 255, 0.82);
    background: rgba(10, 28, 58, 0.98);
    transform: translateY(-1px);
}

#btnTutorialCategorias i {
    display: block;
    font-size: 15px;
    line-height: 1;
    color: #ffffff;
}

#btnTutorialCategorias span {
    display: block;
    width: 100%;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: #47f5ff;
}

/* Overlay */
.nzt-categorias-tuto-overlay {
    position: fixed;
    inset: 0;
    z-index: 99980;
    pointer-events: none;
}

.nzt-categorias-tuto-spotlight {
    position: fixed;
    z-index: 99981;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(2, 8, 23, 0.72);
    outline: 2px solid rgba(71, 245, 255, 0.92);
    outline-offset: 4px;
    pointer-events: none;
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

.nzt-categorias-tuto-target {
    position: relative !important;
    z-index: 99982 !important;
    box-shadow: 0 0 0 3px rgba(71, 245, 255, 0.24);
    border-radius: 14px;
}

/* Caja movible */
.nzt-categorias-tuto-card {
    position: fixed;
    left: 50%;
    bottom: 22px;

    transform:
        translateX(calc(-50% + var(--nzt-categorias-tuto-drag-x, 0px)))
        translateY(var(--nzt-categorias-tuto-drag-y, 0px));

    width: min(440px, calc(100vw - 28px));
    z-index: 99983;

    background: rgba(5, 13, 31, 0.97);
    border: 1px solid rgba(71, 245, 255, 0.35);
    border-radius: 22px;
    color: #f8fafc;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
    overflow: hidden;

    cursor: grab;
    touch-action: none;
    user-select: none;
}

.nzt-categorias-tuto-card.is-dragging {
    cursor: grabbing;
}

.nzt-categorias-tuto-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 8px;
}

.nzt-categorias-tuto-card-head span {
    display: block;
    margin-bottom: 6px;
    color: #47f5ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nzt-categorias-tuto-card-head h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 950;
}

.nzt-categorias-tuto-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.nzt-categorias-tuto-body {
    padding: 4px 18px 14px;
}

.nzt-categorias-tuto-body p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
}

.nzt-categorias-tuto-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.nzt-categorias-tuto-count {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.nzt-categorias-tuto-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nzt-categorias-tuto-btn {
    border-radius: 999px;
    padding: 11px 15px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    font-family: inherit;
}

.nzt-categorias-tuto-prev {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

.nzt-categorias-tuto-next {
    border: 0;
    background: linear-gradient(135deg, #47f5ff, #1d7cff);
    color: #020617;
}

@media (max-width: 640px) {
    .nzt-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nzt-categorias-tuto-card {
        bottom: 14px;
        border-radius: 20px;
    }

    .nzt-categorias-tuto-card-head {
        padding: 16px 16px 8px;
    }

    .nzt-categorias-tuto-body {
        padding: 4px 16px 12px;
    }

    .nzt-categorias-tuto-foot {
        padding: 13px 16px 16px;
    }
}