/* ==========================================================================
   TUTORIAL INTERACTIVO GDPTEC — ESTILOS ULTRA-LIGEROS & MINIMALISTAS
   ========================================================================== */

/* Foco Spotlight sobre el elemento activo */
.tour-highlight {
    position: relative !important;
    z-index: 10001 !important;
    box-shadow: 0 0 0 9999px rgba(10, 18, 36, 0.82), 0 0 0 3px #f38020, 0 0 24px rgba(243, 128, 32, 0.4) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease-in-out !important;
    pointer-events: auto !important;
}

/* Capa de bloqueo para clicks no intencionados */
#tour-blocker {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
    pointer-events: auto;
}

/* Card Flotante del Tutorial */
#tour-box {
    position: absolute;
    z-index: 10002;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: rgba(18, 26, 43, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 16px 18px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    animation: tourFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tour-step-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f38020;
    background: rgba(243, 128, 32, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

.tour-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-desc {
    margin: 0 0 14px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #94a3b8;
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.tour-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.tour-dot.active {
    width: 16px;
    border-radius: 4px;
    background: #f38020;
}

.tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-btn-skip {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.tour-btn-skip:hover {
    color: #ffffff;
}

.tour-btn-next {
    background: #f38020;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.tour-btn-next:hover {
    background: #e06f14;
    transform: translateY(-1px);
}

/* Modal de Finalización */
#tour-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 36, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: tourFadeIn 0.25s ease;
}

.tour-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.tour-modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(243, 128, 32, 0.12);
    color: #f38020;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.tour-modal-card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.tour-modal-card p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Botonera de Selección de Rol (Estilo Login) */
.role-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.role-card-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.role-card-btn:hover {
    background: #f1f5f9;
    border-color: #f38020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 128, 32, 0.12);
}

.role-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(37, 68, 123, 0.08);
    color: #25447b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.role-card-btn:hover .role-icon-box {
    background: #f38020;
    color: #ffffff;
}

.role-info {
    flex: 1;
}

.role-info-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 2px;
}

.role-info-desc {
    font-size: 11.5px;
    color: #64748b;
    display: block;
}

.role-arrow {
    color: #94a3b8;
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.role-card-btn:hover .role-arrow {
    color: #f38020;
    transform: translateX(3px);
}

/* Barra superior del modo tutorial */
.tutorial-top-bar {
    background: #1e293b;
    color: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    z-index: 100;
    position: sticky;
    top: 0;
}

.tutorial-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tutorial-top-badge strong {
    color: #f38020;
}

.tutorial-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
